]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg/BaseCryptLib: Enabled CryptSha512 for Smm/Runtime drivers
authorxueshengfeng <xueshengfeng@byosoft.com.cn>
Tue, 8 Jun 2021 04:30:44 +0000 (12:30 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 24 Jun 2021 02:46:14 +0000 (02:46 +0000)
Intel Platform utility Syscfg/sysfwupdt will trigger SMI
to enter BIOS interface. then BIOS invoke EncodePassword
in SMM mode to check password.
it's need sha384(in CryptSha512.c) in SMM mode.

the origin SmmCryptLib.lib size is 1389KB,
after changed, the size is 1391KB.

the origin RuntimeCryptLib.lib size is 911KB,
after changed,the size is 913KB.

in SmmCryptLib.inf and RuntimeCryptLib.inf,
change CryptSha512NULL.c to CryptSha512.c.

https://bugzilla.tianocore.org/show_bug.cgi?id=3423

Signed-off-by: xueshengfeng <xueshengfeng@byosoft.com.cn>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf

index 3d3a6fb94a7786733c7e6dd4df653a2d9b4c50bc..fdbb6edfd23e4df695d89d73f6bc61ead9a49df6 100644 (file)
@@ -11,8 +11,8 @@
 #  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and\r
 #  authenticode signature verification functions are not supported in this instance.\r
 #\r
-#  Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>\r
-#  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
+#  Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -39,7 +39,7 @@
   Hash/CryptSha1.c\r
   Hash/CryptSha256.c\r
   Hash/CryptSm3.c\r
-  Hash/CryptSha512Null.c\r
+  Hash/CryptSha512.c\r
   Hmac/CryptHmacSha256.c\r
   Kdf/CryptHkdf.c\r
   Cipher/CryptAes.c\r
index 07c376ce04bb712fdba29b5d558af0c5dd3111c9..e6470d7a212706026062cff907a810f59f19b0b8 100644 (file)
@@ -10,7 +10,7 @@
 #  RSA external functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and\r
 #  authenticode signature verification functions are not supported in this instance.\r
 #\r
-#  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -37,7 +37,7 @@
   Hash/CryptSha1.c\r
   Hash/CryptSha256.c\r
   Hash/CryptSm3.c\r
-  Hash/CryptSha512Null.c\r
+  Hash/CryptSha512.c\r
   Hmac/CryptHmacSha256.c\r
   Kdf/CryptHkdfNull.c\r
   Cipher/CryptAes.c\r