--- /dev/null
+/** @file\r
+ Ihis is BaseCrypto router support function definition.\r
+\r
+Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef _HASH_LIB_BASE_CRYPTO_ROUTER_COMMON_H_\r
+#define _HASH_LIB_BASE_CRYPTO_ROUTER_COMMON_H_\r
+\r
+/**\r
+ The function get hash mask info from algorithm.\r
+\r
+ @param HashGuid Hash Guid\r
+\r
+ @return HashMask\r
+**/\r
+UINT32\r
+EFIAPI\r
+Tpm2GetHashMaskFromAlgo (\r
+ IN EFI_GUID *HashGuid\r
+ );\r
+\r
+/**\r
+ The function set digest to digest list.\r
+\r
+ @param DigestList digest list\r
+ @param Digest digest data\r
+**/\r
+VOID\r
+EFIAPI\r
+Tpm2SetHashToDigestList (\r
+ IN OUT TPML_DIGEST_VALUES *DigestList,\r
+ IN TPML_DIGEST_VALUES *Digest\r
+ );\r
+\r
+#endif\r