CryptoPkg[all]
0.98
|
Typedefs | |
typedef VOID * | HASH_API_CONTEXT |
Functions | |
UINTN EFIAPI | HashApiGetContextSize (VOID) |
BOOLEAN EFIAPI | HashApiInit (OUT HASH_API_CONTEXT HashContext) |
BOOLEAN EFIAPI | HashApiDuplicate (IN HASH_API_CONTEXT HashContext, OUT HASH_API_CONTEXT NewHashContext) |
BOOLEAN EFIAPI | HashApiUpdate (IN HASH_API_CONTEXT HashContext, IN VOID *DataToHash, IN UINTN DataToHashLen) |
BOOLEAN EFIAPI | HashApiFinal (IN HASH_API_CONTEXT HashContext, OUT UINT8 *Digest) |
BOOLEAN EFIAPI | HashApiHashAll (IN CONST VOID *DataToHash, IN UINTN DataToHashLen, OUT UINT8 *Digest) |
Unified Hash API Defines
This API when called will calculate the Hash using the hashing algorithm specified by PcdHashApiLibPolicy.
Copyright (c) 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
typedef VOID* HASH_API_CONTEXT |
BOOLEAN EFIAPI HashApiDuplicate | ( | IN HASH_API_CONTEXT | HashContext, |
OUT HASH_API_CONTEXT | NewHashContext | ||
) |
Makes a copy of an existing hash context.
[in] | HashContext | Hash context. |
[out] | NewHashContext | New copy of hash context. |
TRUE | Hash context copy succeeded. |
FALSE | Hash context copy failed. |
BOOLEAN EFIAPI HashApiFinal | ( | IN HASH_API_CONTEXT | HashContext, |
OUT UINT8 * | Digest | ||
) |
Hash complete.
[in] | HashContext | Hash context. |
[out] | Digest | Hash Digest. |
TRUE | Hash complete and Digest is returned. |
FALSE | Hash complete unsuccessful. |
UINTN EFIAPI HashApiGetContextSize | ( | VOID | ) |
Retrieves the size, in bytes, of the context buffer required for hash operations.
BOOLEAN EFIAPI HashApiHashAll | ( | IN CONST VOID * | DataToHash, |
IN UINTN | DataToHashLen, | ||
OUT UINT8 * | Digest | ||
) |
Computes hash message digest of a input data buffer.
[in] | DataToHash | Data to be hashed. |
[in] | DataToHashLen | Data size. |
[out] | Digest | Hash Digest. |
TRUE | Hash digest computation succeeded. |
FALSE | Hash digest computation failed. |
BOOLEAN EFIAPI HashApiInit | ( | OUT HASH_API_CONTEXT | HashContext | ) |
Init hash sequence.
[out] | HashContext | Hash context. |
TRUE | Hash start and HashHandle returned. |
FALSE | Hash Init unsuccessful. |
BOOLEAN EFIAPI HashApiUpdate | ( | IN HASH_API_CONTEXT | HashContext, |
IN VOID * | DataToHash, | ||
IN UINTN | DataToHashLen | ||
) |
Update hash data.
[in] | HashContext | Hash context. |
[in] | DataToHash | Data to be hashed. |
[in] | DataToHashLen | Data size. |
TRUE | Hash updated. |
FALSE | Hash updated unsuccessful. |