31 DigestList->count = 1;
32 DigestList->digests[0].hashAlg = TPM_ALG_SHA1;
34 DigestList->digests[0].digest.sha1,
51 OUT HASH_HANDLE *HashHandle
59 ASSERT (Sha1Ctx !=
NULL);
63 *HashHandle = (HASH_HANDLE)Sha1Ctx;
80 IN HASH_HANDLE HashHandle,
87 Sha1Ctx = (VOID *)HashHandle;
88 Sha1Update (Sha1Ctx, DataToHash, DataToHashLen);
104 IN HASH_HANDLE HashHandle,
111 Sha1Ctx = (VOID *)HashHandle;
122 HASH_ALGORITHM_SHA1_GUID,
142 if ((Status ==
EFI_SUCCESS) || (Status == EFI_UNSUPPORTED)) {
BOOLEAN EFIAPI Sha1Final(IN OUT VOID *Sha1Context, OUT UINT8 *HashValue)
BOOLEAN EFIAPI Sha1Init(OUT VOID *Sha1Context)
UINTN EFIAPI Sha1GetContextSize(VOID)
BOOLEAN EFIAPI Sha1Update(IN OUT VOID *Sha1Context, 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 HashInstanceLibSha1Constructor(VOID)
EFI_STATUS EFIAPI Sha1HashInit(OUT HASH_HANDLE *HashHandle)
EFI_STATUS EFIAPI Sha1HashFinal(IN HASH_HANDLE HashHandle, OUT TPML_DIGEST_VALUES *DigestList)
VOID Tpm2SetSha1ToDigestList(IN TPML_DIGEST_VALUES *DigestList, IN UINT8 *Sha1Digest)
EFI_STATUS EFIAPI Sha1HashUpdate(IN HASH_HANDLE HashHandle, IN VOID *DataToHash, IN UINTN DataToHashLen)
EFI_STATUS EFIAPI RegisterHashInterfaceLib(IN HASH_INTERFACE *HashInterface)
VOID *EFIAPI AllocatePool(IN UINTN AllocationSize)