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