From c70bdf9d4a6a65b88970f31bc2cabd4d08b33885 Mon Sep 17 00:00:00 2001 From: Amol N Sukerkar Date: Sun, 16 Feb 2020 03:51:02 +0000 Subject: CryptoPkg/BaseHashApiLib: Align BaseHashApiLib with TPM 2.0 Implementation Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2511 This commit aligns the baseHashApiLib with TPM 2.0 Implementation as follows: - Remove reference to MD4 and MD5 algorithms as they are deprecated - Align the enumerations for hashing algoerithms with the one used in TPM 2.0 implementation defined in IndustryStandard/Tpm20.h. Cc: Jiewen Yao Cc: Jian J Wang Cc: Michael D Kinney Signed-off-by: Amol N Sukerkar Reviewed-by: Jian J Wang --- CryptoPkg/CryptoPkg.uni | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'CryptoPkg/CryptoPkg.uni') diff --git a/CryptoPkg/CryptoPkg.uni b/CryptoPkg/CryptoPkg.uni index 2222762f42..28459fcafe 100644 --- a/CryptoPkg/CryptoPkg.uni +++ b/CryptoPkg/CryptoPkg.uni @@ -21,13 +21,11 @@ "Based on the value set, the required algorithm is chosen to calculate\n" "the hash of data.
\n" "The default hashing algorithm for BaseHashApiLib is set to SHA256.
\n" - "0x00000001 - MD4.
\n" - "0x00000002 - MD5.
\n" - "0x00000003 - SHA1.
\n" - "0x00000004 - SHA256.
\n" - "0x00000005 - SHA384.
\n" - "0x00000006 - SHA512.
\n" - "0x00000007 - SM3.
" + "0x00000001 - HASH_ALG_SHA1.
\n" + "0x00000002 - HASH_ALG_SHA256.
\n" + "0x00000004 - HASH_ALG_SHA384.
\n" + "0x00000008 - HASH_ALG_SHA512.
\n" + "0x00000010 - HASH_ALG_SM3.
" #string STR_gEfiCryptoPkgTokenSpaceGuid_PcdCryptoServiceFamilyEnable_PROMPT #language en-US "Enable/Disable EDK II Crypto Protocol/PPI services" -- cgit v1.2.3