From nobody Wed Jan 15 14:00:56 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+108354+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108354+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1694051856; cv=none; d=zohomail.com; s=zohoarc; b=DCAZAGaLP9ijwB2+HhcFGn8bkdixyIlt7TPSVSFgp0CakBWiNIJxuDCtvVbI5Dv4ep4lqrDTBawuq+Lmmr0HMgtWQxil7seCIthKDKrHVWpq7feeL14A1JoZpQrp72PekeBAvoTeDCsnVtquCRICHumEyNR5vYDGSl3kqOUHL+Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1694051856; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=U1g/m0svIkSHsvaCSUAD8lQ1mO19tnR0VN30CHomMlk=; b=NuJN/hKgdf0gf96e6wruT2EnYOeS3FeII1hUmWq+pL8E1yqlfhaIFjbz9aax8rc5fhhJ/45jfKRe8qknQ97+QMBjQOw/p9DE7xQehew1Dex1UUCmcVa/5OvxFl7XoFVpVoaAD7CB1pR/jmnqiMuRse3F51Fmbbav8lVl2gWZfqk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108354+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1694051856773744.7981642377515; Wed, 6 Sep 2023 18:57:36 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=dz7xPBY2H/ptYO31/PYU2dFaPpdJB90i8HnIZ22d2d0=; 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:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1694051856; v=1; b=bb43hEnZskLPFFSi4WFX+Ikwy+UqmE4mM/BlvfyebCLYI/PRi4dbFdFuXVU5HL5PnsaG0Xj4 MRmqtZ/BnsxjKeIMZOIGkdvBXAFy5cQhPanzNMo2ZaMXk4N4eZEPTkK1lyjW1ICQPcQBwHQKvMu l+QkfrQx3bWAwiCe2WGInCM0= X-Received: by 127.0.0.2 with SMTP id LPYLYY1788612x3kNunATVxb; Wed, 06 Sep 2023 18:57:36 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.4581.1694051854465424102 for ; Wed, 06 Sep 2023 18:57:35 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="443619515" X-IronPort-AV: E=Sophos;i="6.02,233,1688454000"; d="scan'208";a="443619515" X-Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2023 18:57:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="744921053" X-IronPort-AV: E=Sophos;i="6.02,233,1688454000"; d="scan'208";a="744921053" X-Received: from shwdesssddpdwei.ccr.corp.intel.com ([10.239.157.28]) by fmsmga007.fm.intel.com with ESMTP; 06 Sep 2023 18:57:26 -0700 From: "Sheng Wei" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Min Xu , Zeyi Chen , Fiona Wang , Xiaoyu Lu , Guomin Jiang , Michael D Kinney Subject: [edk2-devel] [PATCH V9 1/2] CryptoPkg/BaseCryptLib: add sha384 and sha512 to ImageTimestampVerify Date: Thu, 7 Sep 2023 09:57:18 +0800 Message-Id: <20230907015720.2120-2-w.sheng@intel.com> In-Reply-To: <20230907015720.2120-1-w.sheng@intel.com> References: <20230907015720.2120-1-w.sheng@intel.com> 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 Reply-To: devel@edk2.groups.io,w.sheng@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: w5AUkLnJ67kWMGIgiKxb2X7Bx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1694051857097100007 Content-Type: text/plain; charset="utf-8" Register and initialize sha384/sha512 digest algorithms for PKCS#7 Handling. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3413 Cc: Jiewen Yao Cc: Jian J Wang Cc: Min Xu Cc: Zeyi Chen Cc: Fiona Wang Cc: Xiaoyu Lu Cc: Guomin Jiang Cc: Michael D Kinney Change-Id: I208a618e3f6eb12704e528ab842494082de1464d Signed-off-by: Sheng Wei --- CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c b/CryptoPkg/Librar= y/BaseCryptLib/Pk/CryptTs.c index 027dbb6842..944bcf8d38 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c +++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c @@ -591,7 +591,8 @@ ImageTimestampVerify ( // Register & Initialize necessary digest algorithms for PKCS#7 Handling. // if ((EVP_add_digest (EVP_md5 ()) =3D=3D 0) || (EVP_add_digest (EVP_sha1 = ()) =3D=3D 0) || - (EVP_add_digest (EVP_sha256 ()) =3D=3D 0) || ((EVP_add_digest_alias = (SN_sha1WithRSAEncryption, SN_sha1WithRSA)) =3D=3D 0)) + (EVP_add_digest (EVP_sha256 ()) =3D=3D 0) || (EVP_add_digest (EVP_sh= a384 ()) =3D=3D 0) || + (EVP_add_digest (EVP_sha512 ()) =3D=3D 0) || ((EVP_add_digest_alias = (SN_sha1WithRSAEncryption, SN_sha1WithRSA)) =3D=3D 0)) { return FALSE; } --=20 2.26.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108354): https://edk2.groups.io/g/devel/message/108354 Mute This Topic: https://groups.io/mt/101207368/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-