]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCommon.h
Add TPM Physical Presence >=128 operation value support.
[mirror_edk2.git] / SecurityPkg / Library / HashLibBaseCryptoRouter / HashLibBaseCryptoRouterCommon.h
CommitLineData
c1d93242
JY
1/** @file\r
2 Ihis is BaseCrypto router support function definition.\r
3\r
4Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _HASH_LIB_BASE_CRYPTO_ROUTER_COMMON_H_\r
16#define _HASH_LIB_BASE_CRYPTO_ROUTER_COMMON_H_\r
17\r
18/**\r
19 The function get hash mask info from algorithm.\r
20\r
21 @param HashGuid Hash Guid\r
22\r
23 @return HashMask\r
24**/\r
25UINT32\r
26EFIAPI\r
27Tpm2GetHashMaskFromAlgo (\r
28 IN EFI_GUID *HashGuid\r
29 );\r
30\r
31/**\r
32 The function set digest to digest list.\r
33\r
34 @param DigestList digest list\r
35 @param Digest digest data\r
36**/\r
37VOID\r
38EFIAPI\r
39Tpm2SetHashToDigestList (\r
40 IN OUT TPML_DIGEST_VALUES *DigestList,\r
41 IN TPML_DIGEST_VALUES *Digest\r
42 );\r
43\r
44#endif\r