27 IN UINT8 *Sha512Digest
30 DigestList->count = 1;
31 DigestList->digests[0].hashAlg = TPM_ALG_SHA512;
33 DigestList->digests[0].digest.sha512,
50 OUT HASH_HANDLE *HashHandle
58 ASSERT (Sha512Ctx !=
NULL);
62 *HashHandle = (HASH_HANDLE)Sha512Ctx;
79 IN HASH_HANDLE HashHandle,
86 Sha512Ctx = (VOID *)HashHandle;
103 IN HASH_HANDLE HashHandle,
110 Sha512Ctx = (VOID *)HashHandle;
121 HASH_ALGORITHM_SHA512_GUID,
141 if ((Status ==
EFI_SUCCESS) || (Status == EFI_UNSUPPORTED)) {
BOOLEAN EFIAPI Sha512Final(IN OUT VOID *Sha512Context, OUT UINT8 *HashValue)
UINTN EFIAPI Sha512GetContextSize(VOID)
BOOLEAN EFIAPI Sha512Init(OUT VOID *Sha512Context)
#define SHA512_DIGEST_SIZE
BOOLEAN EFIAPI Sha512Update(IN OUT VOID *Sha512Context, 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)
EFI_STATUS EFIAPI Sha512HashFinal(IN HASH_HANDLE HashHandle, OUT TPML_DIGEST_VALUES *DigestList)
EFI_STATUS EFIAPI HashInstanceLibSha512Constructor(VOID)
VOID Tpm2SetSha512ToDigestList(IN TPML_DIGEST_VALUES *DigestList, IN UINT8 *Sha512Digest)
EFI_STATUS EFIAPI Sha512HashUpdate(IN HASH_HANDLE HashHandle, IN VOID *DataToHash, IN UINTN DataToHashLen)
EFI_STATUS EFIAPI Sha512HashInit(OUT HASH_HANDLE *HashHandle)
EFI_STATUS EFIAPI RegisterHashInterfaceLib(IN HASH_INTERFACE *HashInterface)
VOID *EFIAPI AllocatePool(IN UINTN AllocationSize)