From: "Qingyu" <qingyu.shang@intel.com>
To: devel@edk2.groups.io
Cc: Jiewen Yao <jiewen.yao@intel.com>, Yi Li <yi1.li@intel.com>
Subject: [edk2-devel] [PATCH 1/1] CryptoPkg: Remove deprecated code related to SHA-1
Date: Wed, 15 May 2024 23:04:12 +0800 [thread overview]
Message-ID: <053bd3e0735d077c0547821db795aa8bfd85b605.1715785356.git.qingyu.shang@intel.com> (raw)
In-Reply-To: <cover.1715785356.git.qingyu.shang@intel.com>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4698
SHA-1 is deprecated by NIST for any cryptographic use. Remove related code
which do SHA-1 support checking in CryptRandTsc.c
Signed-off-by: Shang Qingyu <qingyu.shang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Yi Li <yi1.li@intel.com>
---
CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c b/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c
index 30454bf10f9b..b94c16de562d 100644
--- a/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c
+++ b/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c
@@ -40,14 +40,6 @@ RandomSeed (
return FALSE;
}
- //
- // The software PRNG implementation built in OpenSSL depends on message digest algorithm.
- // Make sure SHA-1 digest algorithm is available here.
- //
- if (EVP_add_digest (EVP_sha1 ()) == 0) {
- return FALSE;
- }
-
//
// Seed the pseudorandom number generator with user-supplied value.
// NOTE: A cryptographic PRNG must be seeded with unpredictable data.
--
2.44.0.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#118921): https://edk2.groups.io/g/devel/message/118921
Mute This Topic: https://groups.io/mt/106115677/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next parent reply other threads:[~2024-05-15 15:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1715785356.git.qingyu.shang@intel.com>
2024-05-15 15:04 ` Qingyu [this message]
2024-05-15 15:38 ` [edk2-devel] [PATCH 1/1] CryptoPkg: Remove deprecated code related to SHA-1 Li, Yi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=053bd3e0735d077c0547821db795aa8bfd85b605.1715785356.git.qingyu.shang@intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox