From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 2BC4E940FAD for ; Thu, 16 May 2024 02:27:51 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=v4SYuUvBC0D2b0N3AhvXYu0EVLn4Ym5XRYWfkO2QDtk=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1715826470; v=1; b=5LVe5IaV8TLgJmTMqOUepjOBC/QC5CbP2oVjs1TRrELaM1RPxmmQtljNmy5Wu7WmCf+XDgmA ypbifnxOp+qzE9IFmM4EgzCwmRU1bllgx8ctFst/zwAs9bek9zIVbhcv3M0lcxhZkFzjm9vgoLm kSZ4DLhtsJKFIx0VWx7HyIBovr99BMhKBQf9uleVfVTulvNQu5Lx2t12FdkdrsqdaZq3dVW5lTd onFsKRaDxvFtMS8p8URhAWuDGclLaJoGomzSWdiOy/kWf+k3ufgEtmUazzzbCtvDus86gNJ5atL 6S1VMb3OAri4AjLbNC1Vt0iQwjakxIuveU5/wd/OnPNKA== X-Received: by 127.0.0.2 with SMTP id IOzJYY7687511x0ZTBfnabmU; Wed, 15 May 2024 19:27:50 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mx.groups.io with SMTP id smtpd.web10.3783.1715826469193159362 for ; Wed, 15 May 2024 19:27:49 -0700 X-CSE-ConnectionGUID: 3WSyubz2QWepD+NWTl5l9Q== X-CSE-MsgGUID: JqezptaBTiCjFZ3rurUxGw== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="11547730" X-IronPort-AV: E=Sophos;i="6.08,163,1712646000"; d="scan'208";a="11547730" X-Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2024 19:27:49 -0700 X-CSE-ConnectionGUID: dUPxRlDoTAS1IQ73QxTmMQ== X-CSE-MsgGUID: DIUf0mHQRzWrwtDWJjqXXw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,163,1712646000"; d="scan'208";a="35826720" X-Received: from unknown (HELO qingyush-mobl.ccr.corp.intel.com) ([10.238.12.131]) by fmviesa004.fm.intel.com with ESMTP; 15 May 2024 19:27:47 -0700 From: "Qingyu" To: devel@edk2.groups.io Cc: Jiewen Yao , Yi Li Subject: [edk2-devel] [PATCH V2 1/1] CryptoPkg: Remove outdated code related to deprecated SHA-1 Date: Thu, 16 May 2024 10:27:44 +0800 Message-ID: <47e37f157185c295cf70647d9f9926af38671dfb.1715826321.git.qingyu.shang@intel.com> In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Wed, 15 May 2024 19:27:49 -0700 Resent-From: qingyu.shang@intel.com Reply-To: devel@edk2.groups.io,qingyu.shang@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 7wRBKCxzLVwG4MNFTzze3GvRx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=5LVe5IaV; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4698 The default drbg type of randlib has been switched to aes_256_ctr in openssl1.1.1, so sha1 is not really used in RandomSeed(). Remove related code which do SHA-1 support checking in CryptRand.c and CryptRandTsc.c to avoid potential compatibility errors. Signed-off-by: Shang Qingyu Cc: Jiewen Yao Cc: Yi Li --- 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 (#118942): https://edk2.groups.io/g/devel/message/118942 Mute This Topic: https://groups.io/mt/106127679/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-