28 IN UINT8 *Sha256Digest
31 DigestList->count = 1;
32 DigestList->digests[0].hashAlg = TPM_ALG_SHA256;
34 DigestList->digests[0].digest.sha256,
51 OUT HASH_HANDLE *HashHandle
59 ASSERT (Sha256Ctx !=
NULL);
63 *HashHandle = (HASH_HANDLE)Sha256Ctx;
80 IN HASH_HANDLE HashHandle,
87 Sha256Ctx = (VOID *)HashHandle;
104 IN HASH_HANDLE HashHandle,
111 Sha256Ctx = (VOID *)HashHandle;
122 HASH_ALGORITHM_SHA256_GUID,
142 if ((Status ==
EFI_SUCCESS) || (Status == EFI_UNSUPPORTED)) {
UINTN EFIAPI Sha256GetContextSize(VOID)
BOOLEAN EFIAPI Sha256Init(OUT VOID *Sha256Context)
BOOLEAN EFIAPI Sha256Final(IN OUT VOID *Sha256Context, OUT UINT8 *HashValue)
#define SHA256_DIGEST_SIZE
BOOLEAN EFIAPI Sha256Update(IN OUT VOID *Sha256Context, IN CONST VOID *Data, IN UINTN DataSize)
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
VOID EFIAPI FreePool(IN VOID *Buffer)
VOID Tpm2SetSha256ToDigestList(IN TPML_DIGEST_VALUES *DigestList, IN UINT8 *Sha256Digest)
EFI_STATUS EFIAPI Sha256HashUpdate(IN HASH_HANDLE HashHandle, IN VOID *DataToHash, IN UINTN DataToHashLen)
EFI_STATUS EFIAPI HashInstanceLibSha256Constructor(VOID)
EFI_STATUS EFIAPI Sha256HashInit(OUT HASH_HANDLE *HashHandle)
EFI_STATUS EFIAPI Sha256HashFinal(IN HASH_HANDLE HashHandle, OUT TPML_DIGEST_VALUES *DigestList)
EFI_STATUS EFIAPI RegisterHashInterfaceLib(IN HASH_INTERFACE *HashInterface)
VOID *EFIAPI AllocatePool(IN UINTN AllocationSize)