]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCommon.c
Add TPM2 support defined in trusted computing group.
[mirror_edk2.git] / SecurityPkg / Library / HashLibBaseCryptoRouter / HashLibBaseCryptoRouterCommon.c
index 833cce2d7aefc588577b46f1b4470e9ca6797d4e..7fb5f3d1f823ef396f4d1d29e78813d22bfb3870 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Ihis is BaseCrypto router support function.\r
 \r
-Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r
+Copyright (c) 2013 - 2015, 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
@@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/DebugLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/HashLib.h>\r
-#include <Protocol/TrEEProtocol.h>\r
+#include <Protocol/Tcg2Protocol.h>\r
 \r
 typedef struct {\r
   EFI_GUID  Guid;\r
@@ -27,10 +27,10 @@ typedef struct {
 } TPM2_HASH_MASK;\r
 \r
 TPM2_HASH_MASK mTpm2HashMask[] = {\r
-  {HASH_ALGORITHM_SHA1_GUID,         TREE_BOOT_HASH_ALG_SHA1},\r
-  {HASH_ALGORITHM_SHA256_GUID,       TREE_BOOT_HASH_ALG_SHA256},\r
-  {HASH_ALGORITHM_SHA384_GUID,       TREE_BOOT_HASH_ALG_SHA384},\r
-  {HASH_ALGORITHM_SHA512_GUID,       TREE_BOOT_HASH_ALG_SHA512},\r
+  {HASH_ALGORITHM_SHA1_GUID,         HASH_ALG_SHA1},\r
+  {HASH_ALGORITHM_SHA256_GUID,       HASH_ALG_SHA256},\r
+  {HASH_ALGORITHM_SHA384_GUID,       HASH_ALG_SHA384},\r
+  {HASH_ALGORITHM_SHA512_GUID,       HASH_ALG_SHA512},\r
 };\r
 \r
 /**\r