17typedef UINTN HASH_HANDLE;
30 OUT HASH_HANDLE *HashHandle
45 IN HASH_HANDLE HashHandle,
64 IN HASH_HANDLE HashHandle,
65 IN TPMI_DH_PCR PcrIndex,
84 IN TPMI_DH_PCR PcrIndex,
101 OUT HASH_HANDLE *HashHandle
116 IN HASH_HANDLE HashHandle,
132 IN HASH_HANDLE HashHandle,
136#define HASH_ALGORITHM_SHA1_GUID EFI_HASH_ALGORITHM_SHA1_GUID
137#define HASH_ALGORITHM_SHA256_GUID EFI_HASH_ALGORITHM_SHA256_GUID
138#define HASH_ALGORITHM_SHA384_GUID EFI_HASH_ALGORITHM_SHA384_GUID
139#define HASH_ALGORITHM_SHA512_GUID EFI_HASH_ALGORITHM_SHA512_GUID
140#define HASH_ALGORITHM_SM3_256_GUID \
142 0x251C7818, 0x0DBF, 0xE619, { 0x7F, 0xC2, 0xD6, 0xAC, 0x43, 0x42, 0x7D, 0xA3 } \
EFI_STATUS(EFIAPI * HASH_INIT)(OUT HASH_HANDLE *HashHandle)
EFI_STATUS EFIAPI HashStart(OUT HASH_HANDLE *HashHandle)
EFI_STATUS EFIAPI RegisterHashInterfaceLib(IN HASH_INTERFACE *HashInterface)
EFI_STATUS EFIAPI HashUpdate(IN HASH_HANDLE HashHandle, IN VOID *DataToHash, IN UINTN DataToHashLen)
EFI_STATUS EFIAPI HashAndExtend(IN TPMI_DH_PCR PcrIndex, IN VOID *DataToHash, IN UINTN DataToHashLen, OUT TPML_DIGEST_VALUES *DigestList)
EFI_STATUS(EFIAPI * HASH_UPDATE)(IN HASH_HANDLE HashHandle, IN VOID *DataToHash, IN UINTN DataToHashLen)
EFI_STATUS EFIAPI HashCompleteAndExtend(IN HASH_HANDLE HashHandle, IN TPMI_DH_PCR PcrIndex, IN VOID *DataToHash, IN UINTN DataToHashLen, OUT TPML_DIGEST_VALUES *DigestList)
EFI_STATUS(EFIAPI * HASH_FINAL)(IN HASH_HANDLE HashHandle, OUT TPML_DIGEST_VALUES *DigestList)