summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorjyao1 <jyao1>2014-01-16 02:03:10 +0000
committerjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>2014-01-16 02:03:10 +0000
commitb9ababa39d90959c48348198f8fddab210fb89c2 (patch)
treed358fc596ebee06126cba931f309f31c591a1efa /MdePkg
parent94e0955d3e8a3d949e3f00fe69b2827a637058c3 (diff)
downloadedk2-platforms-b9ababa39d90959c48348198f8fddab210fb89c2.tar.xz
Follow UEFI2.4.a spec, add more description on parameter check.
Signed-off by: jiewen yao <jiewen.yao@intel.com> Reviewed by: qin long <qin.long@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15127 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/Protocol/Hash.h5
1 files 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.