Functions | |
VOID | Tpm2SetSha1ToDigestList (IN TPML_DIGEST_VALUES *DigestList, IN UINT8 *Sha1Digest) |
EFI_STATUS EFIAPI | Sha1HashInit (OUT HASH_HANDLE *HashHandle) |
EFI_STATUS EFIAPI | Sha1HashUpdate (IN HASH_HANDLE HashHandle, IN VOID *DataToHash, IN UINTN DataToHashLen) |
EFI_STATUS EFIAPI | Sha1HashFinal (IN HASH_HANDLE HashHandle, OUT TPML_DIGEST_VALUES *DigestList) |
EFI_STATUS EFIAPI | HashInstanceLibSha1Constructor (VOID) |
Variables | |
HASH_INTERFACE | mSha1InternalHashInstance |
Copyright (c) 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_STATUS EFIAPI HashInstanceLibSha1Constructor | ( | VOID | ) |
The function register SHA1 instance.
EFI_SUCCESS | SHA1 instance is registered, or system dose not surpport registr SHA1 instance |
References EFI_STATUS(), and RegisterHashInterfaceLib().
EFI_STATUS EFIAPI Sha1HashFinal | ( | IN HASH_HANDLE | HashHandle, | |
OUT TPML_DIGEST_VALUES * | DigestList | |||
) |
Complete hash sequence complete.
HashHandle | Hash handle. | |
DigestList | Digest list. |
EFI_SUCCESS | Hash sequence complete and DigestList is returned. |
References SHA1_DIGEST_SIZE, and Tpm2SetSha1ToDigestList().
EFI_STATUS EFIAPI Sha1HashInit | ( | OUT HASH_HANDLE * | HashHandle | ) |
Start hash sequence.
HashHandle | Hash handle. |
EFI_SUCCESS | Hash sequence start and HandleHandle returned. | |
EFI_OUT_OF_RESOURCES | No enough resource to start hash. |
References UINTN().
EFI_STATUS EFIAPI Sha1HashUpdate | ( | IN HASH_HANDLE | HashHandle, | |
IN VOID * | DataToHash, | |||
IN UINTN | DataToHashLen | |||
) |
Update hash sequence data.
HashHandle | Hash handle. | |
DataToHash | Data to be hashed. | |
DataToHashLen | Data size. |
EFI_SUCCESS | Hash sequence updated. |
VOID Tpm2SetSha1ToDigestList | ( | IN TPML_DIGEST_VALUES * | DigestList, | |
IN UINT8 * | Sha1Digest | |||
) |
The function set SHA1 to digest list.
DigestList | digest list | |
Sha1Digest | SHA1 digest |
References SHA1_DIGEST_SIZE.
Referenced by Sha1HashFinal().
Initial value: