24 { HASH_ALGORITHM_SHA1_GUID, HASH_ALG_SHA1 },
25 { HASH_ALGORITHM_SHA256_GUID, HASH_ALG_SHA256 },
26 { HASH_ALGORITHM_SHA384_GUID, HASH_ALG_SHA384 },
27 { HASH_ALGORITHM_SHA512_GUID, HASH_ALG_SHA512 },
28 { HASH_ALGORITHM_SM3_256_GUID, HASH_ALG_SM3_256 },
46 for (Index = 0; Index <
sizeof (mTpm2HashMask)/
sizeof (mTpm2HashMask[0]); Index++) {
47 if (
CompareGuid (HashGuid, &mTpm2HashMask[Index].Guid)) {
48 return mTpm2HashMask[Index].Mask;
69 &DigestList->digests[DigestList->count],
71 sizeof (Digest->digests[0])
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
BOOLEAN EFIAPI CompareGuid(IN CONST GUID *Guid1, IN CONST GUID *Guid2)
UINT32 EFIAPI Tpm2GetHashMaskFromAlgo(IN EFI_GUID *HashGuid)
VOID EFIAPI Tpm2SetHashToDigestList(IN OUT TPML_DIGEST_VALUES *DigestList, IN TPML_DIGEST_VALUES *Digest)