SecurityPkg/TPM2: Move GetDigestFromDigestList() to Tpm2CommandLib
This patch just moves function Tpm2GetDigestFromDigestList() from drivers to library as GetDigestFromDigestList() and no functionality change. Cc: Chao B Zhang <chao.b.zhang@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
This commit is contained in:
@@ -988,4 +988,22 @@ GetHashSizeFromAlgo (
|
||||
IN TPMI_ALG_HASH HashAlgo
|
||||
);
|
||||
|
||||
/**
|
||||
This function get digest from digest list.
|
||||
|
||||
@param HashAlg digest algorithm
|
||||
@param DigestList digest list
|
||||
@param Digest digest
|
||||
|
||||
@retval EFI_SUCCESS Sha1Digest is found and returned.
|
||||
@retval EFI_NOT_FOUND Sha1Digest is not found.
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
GetDigestFromDigestList(
|
||||
IN TPMI_ALG_HASH HashAlg,
|
||||
IN TPML_DIGEST_VALUES *DigestList,
|
||||
IN VOID *Digest
|
||||
);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user