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 <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Amol N Sukerkar <amol.n.sukerkar@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
0997352ddb
commit
c70bdf9d4a
@@ -21,13 +21,11 @@
|
||||
"Based on the value set, the required algorithm is chosen to calculate\n"
|
||||
"the hash of data.<BR>\n"
|
||||
"The default hashing algorithm for BaseHashApiLib is set to SHA256.<BR>\n"
|
||||
"0x00000001 - MD4.<BR>\n"
|
||||
"0x00000002 - MD5.<BR>\n"
|
||||
"0x00000003 - SHA1.<BR>\n"
|
||||
"0x00000004 - SHA256.<BR>\n"
|
||||
"0x00000005 - SHA384.<BR>\n"
|
||||
"0x00000006 - SHA512.<BR>\n"
|
||||
"0x00000007 - SM3.<BR>"
|
||||
"0x00000001 - HASH_ALG_SHA1.<BR>\n"
|
||||
"0x00000002 - HASH_ALG_SHA256.<BR>\n"
|
||||
"0x00000004 - HASH_ALG_SHA384.<BR>\n"
|
||||
"0x00000008 - HASH_ALG_SHA512.<BR>\n"
|
||||
"0x00000010 - HASH_ALG_SM3.<BR>"
|
||||
|
||||
#string STR_gEfiCryptoPkgTokenSpaceGuid_PcdCryptoServiceFamilyEnable_PROMPT #language en-US "Enable/Disable EDK II Crypto Protocol/PPI services"
|
||||
|
||||
|
Reference in New Issue
Block a user