From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 46D04740032 for ; Thu, 27 Jul 2023 09:42:42 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ugn737/nANmVucDQWZ0FNEPnxB+uroZztlB6vYfe0Ls=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:X-IronPort-AV:X-IronPort-AV:X-Received:X-ExtLoop1:X-IronPort-AV:X-IronPort-AV:X-Received:X-Received:X-Received:X-Received:X-Received:ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:X-Received:X-Received:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator:x-ms-publictraffictype:x-ms-traffictypediagnostic:x-ms-office365-filtering-correlation-id:x-ms-exchange-senderadcheck:x-ms-exchange-antispam-relay:x-microsoft-antispam-message-info:x-ms-exchange-antispam-messagedata-chunkcount:x-ms-exchange-antispam-messagedata-0:MIME-Version:X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-Network-Message-Id:X-MS-Exchange-CrossTenant-originalarrivaltime:X-MS-Exchange-CrossTenant-fromentityheader:X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype:X-MS-Exchange-CrossTenant-userprincipalname:X-MS-Exchange-Transport-CrossTe nantHeadersStamped:X-OriginatorOrg:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:X-Gm-Message-State:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1690450960; v=1; b=TxIq1lo00cFcml8IFQL0uGGwCnFhDK5kxRJ4UYaCiK8aojGctSazd3CtTDgIGEy3tHohT7wU inOW7k8G0I/Hlg7hIhWgWb83RcUeR1Ojz5GCsSnNmzmXOtHNEqyzd9e5SSi5ZFL6crjFeYJCZKQ mgqRCWJF+GQ3MrvUzDzEZQ58= X-Received: by 127.0.0.2 with SMTP id zZ9cYY7687511xu7PJbIAxdh; Thu, 27 Jul 2023 02:42:40 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web11.3705.1690450959831447359 for ; Thu, 27 Jul 2023 02:42:40 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10783"; a="353164670" X-IronPort-AV: E=Sophos;i="6.01,234,1684825200"; d="scan'208";a="353164670" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 02:42:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10783"; a="677088043" X-IronPort-AV: E=Sophos;i="6.01,234,1684825200"; d="scan'208";a="677088043" X-Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga003.jf.intel.com with ESMTP; 27 Jul 2023 02:42:38 -0700 X-Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 27 Jul 2023 02:42:38 -0700 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 27 Jul 2023 02:42:38 -0700 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Thu, 27 Jul 2023 02:42:38 -0700 X-Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Thu, 27 Jul 2023 02:42:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cWPti8UlGpOTwhJxc7/O6JChgrondNMNaGkZRuC8mnIlmTJ9srb4gyOLRtQEWJGNO1pRTXj7ihoOoS6Hh0o7RAoki2zT43neyJ49CGMIPROikXali3LMnRCfcMgvrHcp8YFptcT2SOEejOmLjDHBrmP0XDfVJF7VzGG2tWvJ0MgXQx344YHFsT8A8X4WsuKQ4aib66hVy5nYuzy5Q7kfZVowNO7NaFMiTP57ukal5V9hh9Hbr9TLOSy+wLQgZXuyydOjQ4jcZxxoohibaqWTYJXEbKnNuFhbLTXbDx2AVOaFSKu6Yf+LvHSvZ9I92imrAIBLKUvhdJ5Oi0o8npi8tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6sJWvukyZgxyKs8qTWv9ytjZ8uuiEXjME14p4Al4vyM=; b=iXluxaSwlAEPYkkepT/5KEyTid8B2whmbNwIHyEod9ET0IXUmctdRVdwLwhmyqt1dsSyprZoMiQXN7lxfJbZTMOs1f5jjN69YNGj71iWFW8M2yT78J+QRe/1hfQmfJSTfABmegwoqM9SKtZSOms25GC8zhi8cDGFDf3ni2EsqdqcR2fHROERc2qAuJdkasaVzow+Ze00xcns8hDIY9lyo9cyPP2hIkeda+SnC9KTaFLvI35ZSYFmYjTtPLwPUD5zauHTnn2VCoBA7FJHaXH8cMyLUi74hkhzwOooKZay6U1aqXtXsHj62uiLMEMcXLGTTKGQFK6YZ6c7IRBdzh9DTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by SA2PR11MB4842.namprd11.prod.outlook.com (2603:10b6:806:f8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Thu, 27 Jul 2023 09:42:33 +0000 X-Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::8557:2ebb:bf92:1be8]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::8557:2ebb:bf92:1be8%6]) with mapi id 15.20.6609.032; Thu, 27 Jul 2023 09:42:33 +0000 From: "Yao, Jiewen" To: "Sheng, W" , "devel@edk2.groups.io" CC: "Wang, Jian J" , "Xu, Min M" , "Chen, Zeyi" , "Wang, Fiona" , "Lu, Xiaoyu1" , "Jiang, Guomin" , "Kinney, Michael D" Subject: Re: [edk2-devel] [PATCH V5 2/3] CryptoPkg/Library/BaseCryptLib: add sha384 and sha512 to ImageTimestampVerify Thread-Topic: [PATCH V5 2/3] CryptoPkg/Library/BaseCryptLib: add sha384 and sha512 to ImageTimestampVerify Thread-Index: AQHZwFSLL/gfwV88TUiNENa/amxA+a/NXIYw Date: Thu, 27 Jul 2023 09:42:33 +0000 Message-ID: References: <20230727063513.437-1-w.sheng@intel.com> <20230727063513.437-3-w.sheng@intel.com> In-Reply-To: <20230727063513.437-3-w.sheng@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR11MB5872:EE_|SA2PR11MB4842:EE_ x-ms-office365-filtering-correlation-id: dad7da5f-6858-4832-41b3-08db8e85cd98 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: qlNwGGJIyYKVPJj54WyhAUx1UlO0OBvpl1Y93Nzy9Egj+WnQGfswW9ArMG9P6u4O+4gzLERIayjYzj+d0HFgDMLuFtl1w0SMWIQawAomVF9WiIHTkQ1vqnOHKb3S5SP2dYSM3NJuB4zrYTbLNgH4VY+jcyq795YKvkIz6OgblOsB3OL9LfBDfhQBSdxIt+II+K0fHPfGzOSENT45kyX2dLn22QwHyf7iAPwe5+oyRzqkhMPAzEq0O3gYGdGZtyWiEOa7TM2ln8fno/3JpxP7XIEJWTN3oeMpY5gRHp5ioiOyn1Y+64fZ4Spu+w3HFwTlZ7ua4CCn79aJz2RWMuGS5iE8QRVyTdbofjOOZI71s7wcBb2zauSuN3eblxh00WDIAawaWaoLi98+f+2UPjMA1lt6aQghlb6NB2pX80NlS87LaeqL+r/QjypK2YUWfskngRID7qdW+9uzOVuPU5FpqnpozLa3y1sevL8G9gTm0Sh22xbzhPRn3EuqGo9HGWAenJp7jw4b4PbtRbvgYNLZNCy73ayMKiZIOpIaqDMRi3uG/kZANl34HY4ymQ5Ebcx3gU1xKDMtRXKdDyltWINZXX0QLEV92F84lSFIIgrMMmg= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?mJjUnu6BsR/MlF02GdKhpZ9t4gKIS+Xqv1APV1t/voeST6YT3hxzx6oksLqg?= =?us-ascii?Q?AKLlaVhl/DkTJpuVBvugS8mWa5DIkb47q+uTDjgFh4k9l7MFZNxrbFiMni+x?= =?us-ascii?Q?RBmHwqQA7CPLt9T168tVBhhFiRiB8nbO85k+dRUVmJ5XhHqOfb8mtgzcZ7rq?= =?us-ascii?Q?/kir/OsKDV5p5uBIrSAtZzBW6EeWMdwdN00410VbIND5LYno954Ehl8NclVL?= =?us-ascii?Q?aYhno7fdFd02KJzaO0PnVk3d2vodoNR5RWQOm4Tz8KyGqYuwqlB6O2kWB5Uo?= =?us-ascii?Q?BjBHsO7k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fY9josDNj?= =?us-ascii?Q?yrfhzSeRs/YjB6jCfloVcdHfZMINbeOLAhqaQIQi7wnwSAiCl5LSyIG7osog?= =?us-ascii?Q?bFbwd+5CT/3JKf9FBYooM/HI2NUg57kJK4s8U+WVJE9E7tX3TL/RS5v/Q4bN?= =?us-ascii?Q?LMmybwdWt3Dr01iKKKr6ayyFQeGE+0tXHM8vy3kmeiOSe6DPdST2wOPVTrkw?= =?us-ascii?Q?Sx5mNsEECVTTphEjwdCC5oD2sF9wTeGsPAvnKmKfNAjINUd2USogFMHviS5b?= =?us-ascii?Q?Wkla9ETl8saWvc1+KW8TxAJ2QAi+jr7pjpW7l6pcUTm5zqIG7MD51oCuJOdG?= =?us-ascii?Q?XxEyGthFOFL+QyVhstxI3lBe7Edcqp1GdxBTkDQYS+LjhqAba3NXCKS+CBhb?= =?us-ascii?Q?nXe6XwQEKCGqETzfuWomRQ7YG7MEdk+IN2Uf7Put?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dad7da5f-6858-4832-41b3-08db8e85cd98 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2023 09:42:33.3886 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: TP7EOjIHJ+oY9H4qWZFfS96N1yYa57QbRtDUJFV2FP1Gx4IA1ZMmXrxxQukzB2HGmx11lLRvovcWKzO8BXC1Mw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4842 X-OriginatorOrg: intel.com 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,jiewen.yao@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: HNFnM2YsvjZV3SU1e9GOfsJHx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=TxIq1lo0; 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 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Reviewed-by: Jiewen Yao > -----Original Message----- > From: Sheng, W > Sent: Thursday, July 27, 2023 2:35 PM > To: devel@edk2.groups.io > Cc: Yao, Jiewen ; Wang, Jian J ; > Xu, Min M ; Chen, Zeyi ; Wang, > Fiona ; Lu, Xiaoyu1 ; Jiang, > Guomin ; Kinney, Michael D > > Subject: [PATCH V5 2/3] CryptoPkg/Library/BaseCryptLib: add sha384 and sh= a512 > to ImageTimestampVerify >=20 > Register and initialize sha384/sha512 digest algorithms for PKCS#7 Handli= ng. >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3413 >=20 > 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 > Signed-off-by: Sheng Wei > --- > CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c > b/CryptoPkg/Library/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 Handli= ng. > // > if ((EVP_add_digest (EVP_md5 ()) =3D=3D 0) || (EVP_add_digest (EVP_sha= 1 ()) =3D=3D 0) > || > - (EVP_add_digest (EVP_sha256 ()) =3D=3D 0) || ((EVP_add_digest_alia= s > (SN_sha1WithRSAEncryption, SN_sha1WithRSA)) =3D=3D 0)) > + (EVP_add_digest (EVP_sha256 ()) =3D=3D 0) || (EVP_add_digest (EVP_= sha384 ()) > =3D=3D 0) || > + (EVP_add_digest (EVP_sha512 ()) =3D=3D 0) || ((EVP_add_digest_alia= s > (SN_sha1WithRSAEncryption, SN_sha1WithRSA)) =3D=3D 0)) > { > return FALSE; > } > -- > 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 (#107299): https://edk2.groups.io/g/devel/message/107299 Mute This Topic: https://groups.io/mt/100385943/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-