SecurityPkg/TPM2: Update function header of GetDigestFromDigestList()

Update the return status description and use OUT identifier instead of
IN for Digest parameter, no functionality change.

Cc: Chao B Zhang <chao.b.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
This commit is contained in:
Star Zeng 2016-09-13 19:12:07 +08:00
parent d4b9b2c32c
commit f28ab84946
2 changed files with 13 additions and 13 deletions

View File

@ -991,19 +991,19 @@ GetHashSizeFromAlgo (
/** /**
This function get digest from digest list. This function get digest from digest list.
@param HashAlg digest algorithm @param[in] HashAlg Digest algorithm
@param DigestList digest list @param[in] DigestList Digest list
@param Digest digest @param[out] Digest Digest
@retval EFI_SUCCESS Sha1Digest is found and returned. @retval EFI_SUCCESS Digest is found and returned.
@retval EFI_NOT_FOUND Sha1Digest is not found. @retval EFI_NOT_FOUND Digest is not found.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
GetDigestFromDigestList( GetDigestFromDigestList(
IN TPMI_ALG_HASH HashAlg, IN TPMI_ALG_HASH HashAlg,
IN TPML_DIGEST_VALUES *DigestList, IN TPML_DIGEST_VALUES *DigestList,
IN VOID *Digest OUT VOID *Digest
); );
#endif #endif

View File

@ -168,19 +168,19 @@ CopyAuthSessionResponse (
/** /**
This function get digest from digest list. This function get digest from digest list.
@param HashAlg digest algorithm @param[in] HashAlg Digest algorithm
@param DigestList digest list @param[in] DigestList Digest list
@param Digest digest @param[out] Digest Digest
@retval EFI_SUCCESS Sha1Digest is found and returned. @retval EFI_SUCCESS Digest is found and returned.
@retval EFI_NOT_FOUND Sha1Digest is not found. @retval EFI_NOT_FOUND Digest is not found.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
GetDigestFromDigestList ( GetDigestFromDigestList (
IN TPMI_ALG_HASH HashAlg, IN TPMI_ALG_HASH HashAlg,
IN TPML_DIGEST_VALUES *DigestList, IN TPML_DIGEST_VALUES *DigestList,
IN VOID *Digest OUT VOID *Digest
) )
{ {
UINTN Index; UINTN Index;