TianoCore EDK2 master
Loading...
Searching...
No Matches
HashLibBaseCryptoRouterCommon.c File Reference

Go to the source code of this file.

Data Structures

struct  TPM2_HASH_MASK
 

Functions

UINT32 EFIAPI Tpm2GetHashMaskFromAlgo (IN EFI_GUID *HashGuid)
 
VOID EFIAPI Tpm2SetHashToDigestList (IN OUT TPML_DIGEST_VALUES *DigestList, IN TPML_DIGEST_VALUES *Digest)
 

Variables

TPM2_HASH_MASK mTpm2HashMask []
 

Detailed Description

This is BaseCrypto router support function.

Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file HashLibBaseCryptoRouterCommon.c.

Function Documentation

◆ Tpm2GetHashMaskFromAlgo()

UINT32 EFIAPI Tpm2GetHashMaskFromAlgo ( IN EFI_GUID HashGuid)

The function get hash mask info from algorithm.

Parameters
HashGuidHash Guid
Returns
HashMask

Definition at line 40 of file HashLibBaseCryptoRouterCommon.c.

◆ Tpm2SetHashToDigestList()

VOID EFIAPI Tpm2SetHashToDigestList ( IN OUT TPML_DIGEST_VALUES DigestList,
IN TPML_DIGEST_VALUES Digest 
)

The function set digest to digest list.

Parameters
DigestListdigest list
Digestdigest data

Definition at line 63 of file HashLibBaseCryptoRouterCommon.c.

Variable Documentation

◆ mTpm2HashMask

TPM2_HASH_MASK mTpm2HashMask[]
Initial value:
= {
{ HASH_ALGORITHM_SHA1_GUID, HASH_ALG_SHA1 },
{ HASH_ALGORITHM_SHA256_GUID, HASH_ALG_SHA256 },
{ HASH_ALGORITHM_SHA384_GUID, HASH_ALG_SHA384 },
{ HASH_ALGORITHM_SHA512_GUID, HASH_ALG_SHA512 },
{ HASH_ALGORITHM_SM3_256_GUID, HASH_ALG_SM3_256 },
}

Definition at line 23 of file HashLibBaseCryptoRouterCommon.c.