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
This commit is contained in:
jyao1 2014-01-16 02:03:10 +00:00 committed by jyao1
parent 94e0955d3e
commit b9ababa39d
1 changed files with 3 additions and 2 deletions

View File

@ -105,7 +105,7 @@ typedef union {
@param[out] HashSize Holds the returned size of the algorithm's hash. @param[out] HashSize Holds the returned size of the algorithm's hash.
@retval EFI_SUCCESS Hash size returned successfully. @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 @retval EFI_UNSUPPORTED The algorithm specified by HashAlgorithm is not supported
by this driver. by this driver.
@ -135,7 +135,8 @@ EFI_STATUS
array will contain the result of the hash computation. array will contain the result of the hash computation.
@retval EFI_SUCCESS Hash returned successfully. @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 @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. driver. Or, Extend is TRUE, and the algorithm doesn't support extending the hash.