]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/HashLibTpm2/HashLibTpm2.c
Add TPM2 support defined in trusted computing group.
[mirror_edk2.git] / SecurityPkg / Library / HashLibTpm2 / HashLibTpm2.c
index b2e01af37e6a55392c2aac69c65b1897bd7967e1..379f2f7e7e63c63b3e28a698eab65e5c875c8389 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Ihis library uses TPM2 device to calculation hash.\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
@@ -20,7 +20,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/HashLib.h>\r
 #include <Library/PcdLib.h>\r
-#include <Protocol/TrEEProtocol.h>\r
 \r
 typedef struct {\r
   TPM_ALG_ID AlgoId;\r
@@ -28,10 +27,10 @@ typedef struct {
 } TPM2_HASH_MASK;\r
 \r
 TPM2_HASH_MASK mTpm2HashMask[] = {\r
-  {TPM_ALG_SHA1,         TREE_BOOT_HASH_ALG_SHA1},\r
-  {TPM_ALG_SHA256,       TREE_BOOT_HASH_ALG_SHA256},\r
-  {TPM_ALG_SHA384,       TREE_BOOT_HASH_ALG_SHA384},\r
-  {TPM_ALG_SHA512,       TREE_BOOT_HASH_ALG_SHA512},\r
+  {TPM_ALG_SHA1,         HASH_ALG_SHA1},\r
+  {TPM_ALG_SHA256,       HASH_ALG_SHA256},\r
+  {TPM_ALG_SHA384,       HASH_ALG_SHA384},\r
+  {TPM_ALG_SHA512,       HASH_ALG_SHA512},\r
 };\r
 \r
 /**\r