SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCommon.c File Reference


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

Ihis is BaseCrypto router support function.

Copyright (c) 2013 - 2015, 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.


Function Documentation

UINT32 EFIAPI Tpm2GetHashMaskFromAlgo ( IN EFI_GUID *  HashGuid  ) 

The function get hash mask info from algorithm.

Parameters:
HashGuid Hash Guid
Returns:
HashMask

References mTpm2HashMask, and UINTN().

Referenced by HashCompleteAndExtend(), HashStart(), HashUpdate(), and RegisterHashInterfaceLib().

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

The function set digest to digest list.

Parameters:
DigestList digest list
Digest digest data

Referenced by HashCompleteAndExtend().


Variable Documentation

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},
}

Referenced by Tpm2GetAlgoFromHashMask(), and Tpm2GetHashMaskFromAlgo().


Generated on Thu Sep 24 23:44:24 2015 for SecurityPkg[ALL] by  doxygen 1.5.7.1