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 88889D811D5 for ; Wed, 15 May 2024 15:04:26 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=LMOXGjXI+IC1k2d7s34ufFNt3mpA3hTkEl1z1QU8x5c=; 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=1715785464; v=1; b=dPl/NCsG8pHY9+PCAsTf260BatwI6953gHZIHhUiPr0H/iYol4318cwDkBLcqKTp8aPncCI9 u5XilNJRTUAgQH9FqODv6Ib6KdTgcoNCGnbSafIKU5wj9PILnKHmFHzBJASeCjJ1XaPJrH4bD/n 8MxFA/BWo69OR4yhoGR47fpVtNunOkNXVU7AP/VckdjFuKdnABqDfFdR9MgxTBnJYe4jtno6CZA ZBPHIzWiioe7IK99YbFOE/gJMagf2Ebw5MXR5K0QO+Uq/lx637i1NaQ7YiXd4bGSlvCVfus2APj qr19pMAdtQjb/5wXLM15YtQoaXokTGIxCD0iiQuVI+TDA== X-Received: by 127.0.0.2 with SMTP id DKiOYY7687511xkGaKveXrP7; Wed, 15 May 2024 08:04:24 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mx.groups.io with SMTP id smtpd.web10.18614.1715785459053622288 for ; Wed, 15 May 2024 08:04:19 -0700 X-CSE-ConnectionGUID: NflsnquFSYygbnlpML8Ecw== X-CSE-MsgGUID: mbYiMFCqQPu+lpBma40RcQ== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="14790399" X-IronPort-AV: E=Sophos;i="6.08,162,1712646000"; d="scan'208";a="14790399" X-Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2024 08:04:18 -0700 X-CSE-ConnectionGUID: dh50Pi0hTT2x80ZnBhhLLA== X-CSE-MsgGUID: ulbL2/ZiQ9u9ulpH+A5nFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,162,1712646000"; d="scan'208";a="68542319" X-Received: from qingyush-mobl.ccr.corp.intel.com ([10.124.41.127]) by orviesa001.jf.intel.com with ESMTP; 15 May 2024 08:04:17 -0700 From: "Qingyu" To: devel@edk2.groups.io Cc: Jiewen Yao , Yi Li Subject: [edk2-devel] [PATCH 1/1] CryptoPkg: Remove deprecated code related to SHA-1 Date: Wed, 15 May 2024 23:04:12 +0800 Message-ID: <053bd3e0735d077c0547821db795aa8bfd85b605.1715785356.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 08:04:19 -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: pxVUuDZnoz1FONDa6L6H5DaRx7686176AA= 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="dPl/NCsG"; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) 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 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 (#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] -=-=-=-=-=-=-=-=-=-=-=-