From b9ababa39d90959c48348198f8fddab210fb89c2 Mon Sep 17 00:00:00 2001 From: jyao1 Date: Thu, 16 Jan 2014 02:03:10 +0000 Subject: [PATCH] Follow UEFI2.4.a spec, add more description on parameter check. Signed-off by: jiewen yao Reviewed by: qin long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15127 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Protocol/Hash.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/Protocol/Hash.h b/MdePkg/Include/Protocol/Hash.h index 1f9b3b32ae..0bee694a5b 100644 --- a/MdePkg/Include/Protocol/Hash.h +++ b/MdePkg/Include/Protocol/Hash.h @@ -105,7 +105,7 @@ typedef union { @param[out] HashSize Holds the returned size of the algorithm's hash. @retval EFI_SUCCESS Hash size returned successfully. - @retval EFI_INVALID_PARAMETER HashSize is NULL + @retval EFI_INVALID_PARAMETER HashSize is NULL or HashAlgorithm is NULL. @retval EFI_UNSUPPORTED The algorithm specified by HashAlgorithm is not supported by this driver. @@ -135,7 +135,8 @@ EFI_STATUS array will contain the result of the hash computation. @retval EFI_SUCCESS Hash returned successfully. - @retval EFI_INVALID_PARAMETER Message or Hash is NULL + @retval EFI_INVALID_PARAMETER Message or Hash, HashAlgorithm is NULL or MessageSize is 0. + MessageSize is not an integer multiple of block size. @retval EFI_UNSUPPORTED The algorithm specified by HashAlgorithm is not supported by this driver. Or, Extend is TRUE, and the algorithm doesn't support extending the hash. -- 2.39.2