]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Follow UEFI2.4.a spec, add more description on parameter check.
authorjyao1 <jyao1>
Thu, 16 Jan 2014 02:03:10 +0000 (02:03 +0000)
committerjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 16 Jan 2014 02:03:10 +0000 (02:03 +0000)
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

MdePkg/Include/Protocol/Hash.h

index 1f9b3b32ae3903044c5bd62f3098179486ccef11..0bee694a5b10d2b7b1b138631c86e4aff4f7e28f 100644 (file)
@@ -105,7 +105,7 @@ typedef union {
   @param[out] HashSize              Holds the returned size of the algorithm's hash.\r
 \r
   @retval EFI_SUCCESS           Hash size returned successfully.\r
-  @retval EFI_INVALID_PARAMETER HashSize is NULL\r
+  @retval EFI_INVALID_PARAMETER HashSize is NULL or HashAlgorithm is NULL.\r
   @retval EFI_UNSUPPORTED       The algorithm specified by HashAlgorithm is not supported \r
                                 by this driver.\r
 \r
@@ -135,7 +135,8 @@ EFI_STATUS
                             array will contain the result of the hash computation.\r
   \r
   @retval EFI_SUCCESS           Hash returned successfully.\r
-  @retval EFI_INVALID_PARAMETER Message or Hash is NULL\r
+  @retval EFI_INVALID_PARAMETER Message or Hash, HashAlgorithm is NULL or MessageSize is 0.\r
+                                MessageSize is not an integer multiple of block size.\r
   @retval EFI_UNSUPPORTED       The algorithm specified by HashAlgorithm is not supported by this\r
                                  driver. Or, Extend is TRUE, and the algorithm doesn't support extending the hash.\r
 \r