From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web09.8745.1652256489970764823 for ; Wed, 11 May 2022 01:08:10 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=LEKIOqSY; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: jiewen.yao@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652256489; x=1683792489; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=6VVhuxi8H9RyiChLMkc/asOzl9sg7vsMteJlsRjnbwo=; b=LEKIOqSYvctducXWxX5/V5z2Abh1AWfXh5B3vWLux2dTGl9FH8WZBsGv 3bMnlWX8lr1VTxBdOpaLmP9d90CENPt+i5WyfPppfS23mz4egU+bXIQJE POAuS33G4o9h+mN4Jj93ipIejEzfnOk4oqFlTEybxNobAC3t5a/Nnof8w 2mWV70HdBt7DiBM3i1ir2ujK9CGhXNU1CGLaF83bg62hKYjk6QwVXArry +kdNrzh0sjD0TVH8zjT/Ruewp9ROIy1J23z+4jGCkFwO1wfK8Efi+pQs3 J1h5K/zaYolDqXfg+BbcN3OxzWgYfkLyqJvM3pA3qgJtTxGp5bhyqlE+s Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10343"; a="249523885" X-IronPort-AV: E=Sophos;i="5.91,216,1647327600"; d="scan'208";a="249523885" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2022 01:08:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,216,1647327600"; d="scan'208";a="658052588" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by FMSMGA003.fm.intel.com with ESMTP; 11 May 2022 01:08:09 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 11 May 2022 01:08:08 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 11 May 2022 01:08:08 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Wed, 11 May 2022 01:08:08 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Wed, 11 May 2022 01:08:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lZKJMIxlQAWlJ8aPkoYTqm3OJQ83Mr21EqPjoVA+twdwYey8iBrqx6sKjHTiBSEWG1buyZOHhuxOwHapHY2rU2LK1WaJWYkEDGx9/g5sbcLA6iU1Mn6LXTK6tyv78ueBbTKAlpSSMVCW+Q79lCiPxFgriMKPNBFIMwKhcW9hEUIQ6n0iO+9v7e89cPFF6lhNDg5ibfOFURojfoyqg9Au+ybdSXK5z39WEVfymHjCUSYCc8AgbhMNYDkoi6zYR82P46Sxp6EN/LuBpEoOZKrgFzs9J9UI9Pu5qKYQf5cYw1dEOAml2cu3Gkv3aAYYFoUVpJ+GSbXpYBrCsgNdQoxiCA== 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=xHAB/6ctaJlvbO26b28eKBMb+H1H9UcFYk+nkc50lvo=; b=YW99bKAjYjaH//u2fvcydrr2YwG896Dtz3lQLVyov1YbJpZavl8Gn8+QaeAwTupoead07I63uJQZfsRAGGFq24zlraHQqtoi8BF4rKx/xCJ/WcAcRZZ3us1MB4Je+I6p2eQtJPbeuIeZnWiF/e1spkSLA1Wr8xlAYs2OcXEwpVYrUqBDfOIC9SXCZrg9O16YkZYApITSFiVn+LeuRzXRzwfJcbrZMLWzcJFfBiiWO4xnndnp/VMrp7jOsEBtsyP+BwxPRJbRLmKbBfo+0eQW+xsK1Vj83+E91wp0oJurze+Wo64CZSh8zEqXZDen5qrLSLZhwWB14r93fTCi+oPUQQ== 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 Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by DM5PR1101MB2314.namprd11.prod.outlook.com (2603:10b6:4:58::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.13; Wed, 11 May 2022 08:08:06 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::d55d:28c1:bfab:3dd]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::d55d:28c1:bfab:3dd%5]) with mapi id 15.20.5227.023; Wed, 11 May 2022 08:08:06 +0000 From: "Yao, Jiewen" To: "Li, Yi1" , "devel@edk2.groups.io" CC: "Wang, Jian J" , "Lu, Xiaoyu1" , "Jiang, Guomin" , "Gerd Hoffmann" Subject: Re: [PATCH V4 0/5] CryptoPkg/openssl: Enable EC conditionally. Thread-Topic: [PATCH V4 0/5] CryptoPkg/openssl: Enable EC conditionally. Thread-Index: AQHYZD5H3mFdT2CR9UWBJwcEssl5h60ZU+Jg Date: Wed, 11 May 2022 08:08:06 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.401.20 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c532740b-dc6f-4e2f-d7dd-08da3325612a x-ms-traffictypediagnostic: DM5PR1101MB2314:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QXxOnPa2BhEnjYbtqD4QL/nSBfm9quXLqxMbIQDARWTUEe42wv7+P0sjdad63kk/YWTNMwtBKgf7KIM31jHlIhUqymQp1ro2VuHtoHd7FQov2OAm7opKtGAQMXba9K7ueEXy1POpj3UZykLq2mz3IxCGKo80JZVj+hCPTry0TRjvl3k4lmEmUFGC369sz4netx/G4TwPOcOxEdnOmFCwsxPZviOktJ63rx6rpgtWErtjv5saVRzsrr0wDRofq/K/KqxGI6bFY3G0Pcx1aL91UaaTAZP4h+7o9g2VGn7CoRJckTkcqa+GddpNVOefiajDyAfKgX0sS1+rnqt9uCWU9mq+9QUsDDhsXa5+AHAdc3mMLWVTwyqxLj9qWbXEDiJbMBpSD+qfmTQojErbUUI1xzAm4u0SsQUVHBynCpdjm7/bkEh0P6pLuWsraWFTYZ8CjPRfGLH1snm/6Y+3wNAUij5OSNZuD96susdE2xyk/3yiQaQ5iKjYYlpCjjM0gWyrgVjNsK82XHo7Xoi/TJiU00X1vBLoTHdti5Bn6Rfge2eRjob469kDavwEh0EcVnBAJcyKKvm70uPUKdWgEwa5euQ1SmZ2+9XxXAXhTz/t9Zf3kKI5Schs6S8sPT2ZBL28GsqIs2yp7f5rnJLgQesLAkKOcsIvxA5WIKop3y74F2x/hN9h7gRHeiowHwlIFdxplb0C6mrdtLdDUakVf6RErQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB5872.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(8676002)(4326008)(55016003)(64756008)(66446008)(66476007)(66556008)(66946007)(76116006)(186003)(6506007)(7696005)(83380400001)(33656002)(38100700002)(38070700005)(122000001)(82960400001)(8936002)(5660300002)(508600001)(52536014)(2906002)(86362001)(71200400001)(53546011)(316002)(54906003)(26005)(9686003)(110136005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?e0YAS/GlfdRlh/cFxJyp6T6wvzLEXP+zu8ZKP1TG4a70CMrZaDdzqH3Oh9hV?= =?us-ascii?Q?BdeDLpchPrVOFvklYPMyASvDhZf1R7pul3d57GXgh4HnuSaIdS3+CXFCkbMC?= =?us-ascii?Q?VFyN1jvCKn1lL+74XSC0DIJmu/hTrrZZf1tIqPuAKZZHN8oiW76tiwcm1Ref?= =?us-ascii?Q?cYlHyYzsqlGLUXbnffXp6EM2+vVNvx7K6XiKkz3EqhRJbQhWlmLcCjr2Mp2x?= =?us-ascii?Q?G02vO/hbv5/aoQitfwymCMwzlnVMY7rpPl05RlDpqSWtR8BiXraQbHPAbM23?= =?us-ascii?Q?UAAVrRdoQkB53NrddMqHW0XA7pyrdGs1ik0dCgRw4XmD8parbDJotewga7bo?= =?us-ascii?Q?5w1/QuHXzbZfSMcQlgqi5ARLA8YdGbv5V0KpS89RxEKohG1SMLiA6sGJZm00?= =?us-ascii?Q?fosZblpz8PRILIfWzJMNU179UjgRhhRS47q97nn9zRlQphqms4F3P3kL2mRS?= =?us-ascii?Q?vNia9OT5itMaq8K2B5OVhuapElhUy5GyNAMVEU0+3wyQEyVaXlPH1/LD9WjO?= =?us-ascii?Q?7yuYsbAh3G4fkuQTdOuQ1HqRi3MjOEtSlmIkdDATEfpygoKD9IDmsX7P4HRq?= =?us-ascii?Q?I/Pu+soIPcsn/6BH0trQLIVl7svzPQ61pAwY32315durtSjSz18gWFge9F0q?= =?us-ascii?Q?DWxnWCWG29fNbsW0vooIc9ZqiKskP/Wgz08Cl9cEJm56h6y2swX5v9qxsPM7?= =?us-ascii?Q?PeUX6i2cAAYfIZSGfNINUL0KKIDUkUsrhUOYfukXjlUreGhQJlufcY++p1/w?= =?us-ascii?Q?mOyCTfYXo7q1xPqbXVI0phUGVXPlAK+4uJbSxHO9CvPUZ7dI8dZyfKAA4j8N?= =?us-ascii?Q?bSH7O24zmvUlc0983enkpLv4E3Zei31IsGBgeJ32Ryro1xKZR3ocHhjB2bUE?= =?us-ascii?Q?kUjIDlcZKkeBMo66ylvzUE/PcW4G68nEjvHZnWO4kl0WZl9fArypqJesDbVg?= =?us-ascii?Q?OkEIA4XvOYqoebRSqbD8Wn+G4myDqFw3LdNMTscagj2KnNcNU/A6YgV4k4kC?= =?us-ascii?Q?uNVwFI7yDBt7qp60FeWdab4UCxP3dMgRDx081f8p4/8+4cE6HqPAR3q19rsz?= =?us-ascii?Q?MzhYLV61zggKj3tqeOzqeqhMLU+JKKgOHqgPGjQM9vaoq2djoJVqKB5cPhwG?= =?us-ascii?Q?Y8R5YRM0WzpMjdzztBRbznKhhlAm0KNH/+OnOq87vMq5RiAMq9EpkF/N2JwO?= =?us-ascii?Q?fRZITmA69j2qQlWk3L2HNHV0FWqZT+156BRDZiXay2F2Y/K750q+wOk2UVef?= =?us-ascii?Q?DEaohDdJSWckeO+33g6nxbNImF11qQjUCf4MXe5bze3nAshZtK85n9Z1l0P8?= =?us-ascii?Q?AdgBYPa6wH5z7H7CdS2CVi8pAh7e1LaJIf5gD761gkPSSnzXQgIpQs1OLOmT?= =?us-ascii?Q?gRUdVADqDB17+v0iN/+IVpGB0BcjOardm/Mz5DTbgn8HmT/TRm8JZzwCThyA?= =?us-ascii?Q?YM43+7rORoIUVRxBt+f9h9TIfXUziRi9dPgGmxSK56ZU1d+5Ko/AVxmdDZkq?= =?us-ascii?Q?paVJWI+WOEAz8fHaVCMwV8VXDcIJItSkN/f1SoDg9YpoFVQf8E3ja82FXM+s?= =?us-ascii?Q?l/Bbm0JmraPmZHR16PpQ+AGeH+LzNbA3LeaxwANDPZOd7YgWvezSdeuQx2t9?= =?us-ascii?Q?yjIZ2c9mwpwfQqTDQkI0yFuT8ac+oc7u+D3mSRJFYmbcivpdU5Zs2aORNI0j?= =?us-ascii?Q?lOmUzvfedbKUhKrowKP2ZbPiMuHq4KWv4TOnDUaVQbLGSVpxvuleWknBgFbK?= =?us-ascii?Q?by8pNjwTWA=3D=3D?= 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: c532740b-dc6f-4e2f-d7dd-08da3325612a X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2022 08:08:06.2725 (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: /I0SGMeehP+gMY7s3ohzetIWeR1kf1obkrwj/fOVk2MBDQPzsRFUY73BBjLSPO+JpmD2Ss+GN2CqeXnU96Xs+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1101MB2314 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen Yao > -----Original Message----- > From: Li, Yi1 > Sent: Tuesday, May 10, 2022 3:19 PM > To: devel@edk2.groups.io > Cc: Li, Yi1 ; Yao, Jiewen ; Wang,= Jian > J ; Lu, Xiaoyu1 ; Jiang, Guo= min > ; Gerd Hoffmann > Subject: [PATCH V4 0/5] CryptoPkg/openssl: Enable EC conditionally. >=20 > Recommend from Gerd: > (2) Keep the EC config option, but update process_files.pl to > automatically add the PcdEcEnabled config option handling > to the files it generates. >=20 > This patch set does (2). >=20 > When remove 'no-ec' from openssl configure list, will automatically remov= e > 'OPENSSL_NO_EC', 'OPENSSL_NO_ECDH', 'OPENSSL_NO_ECDSA', > 'OPENSSL_NO_TLS1_3', 'OPENSSL_NO_SM2' from header, and add '/ec/.', > '/sm2/.' files to INF files. >=20 > Signed-off-by: Yi Li > Cc: Jiewen Yao > Cc: Jian J Wang > Cc: Xiaoyu Lu > Cc: Guomin Jiang > Cc: Gerd Hoffmann >=20 > Yi Li (5): > CryptoPkg: Rename PCD about openssl EC configuration > CryptoPkg: Separate auto-generated openssl config and edk2 openssl > config > CryptoPkg: Update process_files.pl to automatically add PCD config > option > CryptoPkg/openssl: update generated files > CryptoPkg/openssl: disable codestyle checks for generated files >=20 > CryptoPkg/CryptoPkg.ci.yaml | 14 +- > CryptoPkg/CryptoPkg.dec | 2 +- > .../Library/BaseCryptLib/BaseCryptLib.inf | 2 +- > .../Library/BaseCryptLib/PeiCryptLib.inf | 2 +- > .../Library/BaseCryptLib/RuntimeCryptLib.inf | 2 +- > .../Library/BaseCryptLib/SmmCryptLib.inf | 2 +- > .../BaseCryptLib/UnitTestHostBaseCryptLib.inf | 2 +- > CryptoPkg/Library/Include/crypto/dso_conf.h | 7 +- > .../Library/Include/openssl/opensslconf.h | 348 +----------------- > .../Include/openssl/opensslconf_generated.h | 333 +++++++++++++++++ > CryptoPkg/Library/OpensslLib/OpensslLib.inf | 98 ++--- > .../Library/OpensslLib/OpensslLibCrypto.inf | 98 ++--- > CryptoPkg/Library/OpensslLib/process_files.pl | 77 +++- > CryptoPkg/Library/TlsLib/TlsLib.inf | 2 +- > 14 files changed, 552 insertions(+), 437 deletions(-) > create mode 100644 > CryptoPkg/Library/Include/openssl/opensslconf_generated.h >=20 > -- > 2.31.1.windows.1