mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
HashLibBaseCryptoRouterCommon contained a version of Tpm2GetHashMaskFromAlgo which was causing conflicts with the version in Tpm2HelpLib. This version used a GUID to query the HashMask, updated the name to remove the conflict and be more inline with the actual function implementation. Signed-off-by: Raymond Diaz <raymonddiaz@microsoft.com>
36 lines
688 B
C
36 lines
688 B
C
/** @file
|
|
This is BaseCrypto router support function definition.
|
|
|
|
Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved. <BR>
|
|
Copyright (c) Microsoft Corporation.
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#pragma once
|
|
|
|
/**
|
|
The function get hash mask info from GUID.
|
|
|
|
@param HashGuid Hash Guid
|
|
|
|
@return HashMask
|
|
**/
|
|
UINT32
|
|
EFIAPI
|
|
Tpm2GetHashMaskFromGuid (
|
|
IN EFI_GUID *HashGuid
|
|
);
|
|
|
|
/**
|
|
The function set digest to digest list.
|
|
|
|
@param DigestList digest list
|
|
@param Digest digest data
|
|
**/
|
|
VOID
|
|
EFIAPI
|
|
Tpm2SetHashToDigestList (
|
|
IN OUT TPML_DIGEST_VALUES *DigestList,
|
|
IN TPML_DIGEST_VALUES *Digest
|
|
);
|