summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/Library/Tpm2CommandLib
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2016-09-13 19:12:07 +0800
committerStar Zeng <star.zeng@intel.com>2016-09-21 18:20:17 +0800
commitf28ab8494664411ac9b3ec22b82d714d8a3ca4c1 (patch)
tree4e6ff9f0a5302b0d269ccee3388d2f9e4c302be2 /SecurityPkg/Library/Tpm2CommandLib
parentd4b9b2c32cb38c8aefed52de12368ba644dfb0b5 (diff)
downloadedk2-f28ab8494664411ac9b3ec22b82d714d8a3ca4c1.tar.gz
edk2-f28ab8494664411ac9b3ec22b82d714d8a3ca4c1.tar.bz2
edk2-f28ab8494664411ac9b3ec22b82d714d8a3ca4c1.zip
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>
Diffstat (limited to 'SecurityPkg/Library/Tpm2CommandLib')
-rw-r--r--SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c
index b40c2ab09d..2df18dfe07 100644
--- a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c
+++ b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c
@@ -168,19 +168,19 @@ CopyAuthSessionResponse (
/**
This function get digest from digest list.
- @param HashAlg digest algorithm
- @param DigestList digest list
- @param Digest digest
+ @param[in] HashAlg Digest algorithm
+ @param[in] DigestList Digest list
+ @param[out] Digest Digest
- @retval EFI_SUCCESS Sha1Digest is found and returned.
- @retval EFI_NOT_FOUND Sha1Digest is not found.
+ @retval EFI_SUCCESS Digest is found and returned.
+ @retval EFI_NOT_FOUND Digest is not found.
**/
EFI_STATUS
EFIAPI
GetDigestFromDigestList (
IN TPMI_ALG_HASH HashAlg,
IN TPML_DIGEST_VALUES *DigestList,
- IN VOID *Digest
+ OUT VOID *Digest
)
{
UINTN Index;
@@ -199,4 +199,4 @@ GetDigestFromDigestList (
}
return EFI_NOT_FOUND;
-} \ No newline at end of file
+}