From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from na01-obe.outbound.protection.outlook.com (na01-obe.outbound.protection.outlook.com [52.101.62.19]) by mx.groups.io with SMTP id smtpd.web12.2784.1645584368393946435 for ; Tue, 22 Feb 2022 18:46:08 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=PcmCXGpz; spf=pass (domain: microsoft.com, ip: 52.101.62.19, mailfrom: vineelko@microsoft.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YNkid6Ray+Yp745LRaO9jE1TnGu7j9g3aJa9NEIAUVoOK4VxwagFHIlfhenz2bpZBx0qQGFL+1gAhPUM6E07nInOi9d8JvIp4FaXCfvAqzK6M8KHN9ukwM34/UkMk7GnU9zSidrfj3yTihlFanFnYRMy+scjsnmXNbaCuAA0lCKfSxm1eJI1tUVzLyLwEf0PzT5VGV/yI5FyM6e+d/sm2JS+Den/DbLyH1x0Hp0XoMCNU5TC47YaGhIbmU6elYUL7QZH3IJSMl19UBmRcFUU1xUQ1FJU+k95SkrYs0lH1g2WweFG/2nZO2JvJ3VW4rICzNSfIW2j/cEmEQhn50srWw== 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=36aK4HsGwgixyUX+1Gu2O/wZUKOM+wFas+OGe6ZxqFo=; b=UQEXwe81M6u9v0QEQi2r8Md2qdvT8+LNnYeK9looDqft8SUmdoQJQ4jhBaNq+TAEg5O6GD4WSzAOOTdHmL2rfJ1qyFOZ1thYkYejmCP0TsyDn05aL+yZPKVgG4vqTfCypbTdvm8pNyxgaXZDRFwedF5f29dpDnKUB4muFGFxw763Ht6NxTbd+3P01Ho2HPflWSE9qmnL95o0+yN2kOvA8Mj/UA/afY8UlgnNKTWlzdN48C2nXZFhzcqpQ7mFBif8wmM2asyeqxYKnHLBP2B7KUjwlqdXG8yDdeK3nTuUXhWHFO4bd/4M3lru/MixbvvtQEb0f9hkxMKXSSqP/H2j/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=36aK4HsGwgixyUX+1Gu2O/wZUKOM+wFas+OGe6ZxqFo=; b=PcmCXGpzkBrePLiza2zQaVX4Zdpn6uNdtsQ4vUsw3TEC/witOrmquIEFylLrdsdgrKhn2XmxsYvQdlwXPTE3C8+5jvIY9TFb9CCdp1EZtraeqIJQZIgWmOcbqcZ3YJv9It+IqUtS7u+zurNeHYxkpC6yyx9opBWdDpH7Qg6Uirs= Received: from BL1PR21MB3091.namprd21.prod.outlook.com (2603:10b6:208:393::14) by DM6PR21MB1739.namprd21.prod.outlook.com (2603:10b6:5:cb::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.7; Wed, 23 Feb 2022 02:46:06 +0000 Received: from BL1PR21MB3091.namprd21.prod.outlook.com ([fe80::d44f:27c2:2c57:ceca]) by BL1PR21MB3091.namprd21.prod.outlook.com ([fe80::d44f:27c2:2c57:ceca%4]) with mapi id 15.20.5038.006; Wed, 23 Feb 2022 02:46:05 +0000 From: "Vineel Kovvuri" To: "devel@edk2.groups.io" , "yi1.li@intel.com" , Vineel Kovvuri Subject: Re: [edk2-devel] [PATCH 1/2] Reconfigure OpensslLib to add elliptic curve chipher algorithms Thread-Topic: [EXTERNAL] Re: [edk2-devel] [PATCH 1/2] Reconfigure OpensslLib to add elliptic curve chipher algorithms Thread-Index: AQHX1v/Q4SxqJ33KZ0+BTy2nYANW+awJqZkAgJdjqYCAAABVMA== Date: Wed, 23 Feb 2022 02:46:05 +0000 Message-ID: References: <8041.1645583561523622243@groups.io> In-Reply-To: <8041.1645583561523622243@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=dd8286d3-021f-4bd8-9584-14356dc12597;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2022-02-23T02:33:51Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6aba5916-82c3-4d42-0655-08d9f676a37e x-ms-traffictypediagnostic: DM6PR21MB1739:EE_ x-ms-exchange-atpmessageproperties: SA|SL 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: UbUTxg4TZhfKKM2MvtSzmgb9K9/x+65+loW3jUuK3vpOpk6KHtYX5AaevOJ+3qYk1Qx2nz08GL8GUYMlixyeXAVceUcD6J/22E9F3n1A/GdyN1cI8wtIrWtIv+31Wq3twgfLvG5xaCP7dcKdkeCswBWkv3709aRZvYVLfl90B0+/KdiXdWj4s3zFaQ3OBrDLvekkSAxNLnGQ/H3uyywtNb2YycxsKUTSZVymsjq7OARDCC1EbWVvhZ1ZL/2gRHXuCYBODOFU6GaHuGo1+E7xI1BD7Xj8nwV/j7OCl97RB0RFtpxfg85RN0z5V9UV7m8Z4McAcFG8b5P+CtsPEaeQYDwxlnkAwg2Ts+j9tYsiwtSM/WCzv4kzyA0+Qse40yUtAiwSZ7fXgdePlb38qDi47DfkMx13EWxFSRouB+x0UuXxJkzUiGYNrNQ7SXRxKQ7KxsRa+j0XZ2reVPiUWb4tIsfHlXgMO1dEsV+TydfJRqbSxvYYG4J+M0YOPXBORTJrn59aF71+N5vnpj/wClCD0Lxx3tULNbmSHvkj2JieGwpu1gE2tqWnw8jAIWQY1V+08aVKD/aQy8IM5Mrrl8eI6p9jGlhJ/8xSmhql5fOCc07Xhx51RJMOFvwwrKP4SQ7JNHNtsRXOX9foIWSPN5R0d7VLGlWwReN9EB7CEEZMWZ1EUnlHLH++fWdf6IjR51qwIp//IPnZCMNJpGuXHfuv+XcBGvGs95XxcHhRR11XRMtSjK++Gkj2CidrUohapsWj7JrE/V0ZuI+z2AIcwtcy4IDoJgWVXynm92130H1CMIRKMMPO2SIlSGvfC+t+FFXqeYpr6aJd00dN3Ggn3NDuOQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR21MB3091.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(71200400001)(53546011)(508600001)(10290500003)(6506007)(7696005)(55016003)(9326002)(76236003)(8676002)(83380400001)(66946007)(64756008)(66446008)(66476007)(66556008)(76116006)(38100700002)(5660300002)(122000001)(82950400001)(82960400001)(8936002)(166002)(8990500004)(33656002)(52536014)(86362001)(9686003)(316002)(186003)(2906002)(110136005)(19627235002)(38070700005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?DJkiAVfyL3E64A2d1QsO12428xY1cWl3CRGcGQ8Sm/VUqoGcjVYs2y0IwsbY?= =?us-ascii?Q?I3PRMn4J1NFpj0wgboA0uQHQmzgQiI/Qajz9sh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Q3fC6xO09FurSQJC0H+XfVSUr5ejfG9ffBkCLo9kK1/Vf?= =?us-ascii?Q?T9TffrLH/kWKUIZCOt9gUbs9qnvps+6am1Z9OkIgBTyswOjFJJpVCHnncluM?= =?us-ascii?Q?A7Tvr10Zb/HeHHgm1XSDs3r/1lTqc1sVL7SXymvZ54Vf8nMCs2AelXNcYyBe?= =?us-ascii?Q?q93GoQ3mHkrEYp3fGjF8LldhEmorXmad5xRGzekgzO7iWD2qIb/ZSiacl/Lk?= =?us-ascii?Q?TeRenRTy6eht0r0ls+evvyQddxs8uNkihMunLgrcfxWyuTGbUhwlgBk7vGT+?= =?us-ascii?Q?EnNyU44EhTZaQvu4ZKf6UT+EEbQsqGgNNCeyYFos1bPPC7xxqLA01epuzmzH?= =?us-ascii?Q?Tw+k7mgh0F7T/ZsGGyowGN7z1Et5oZRLHycKO6rpbVJVCCvcJr/QSprKQs63?= =?us-ascii?Q?zenBjU1Bvfjq3prpqHTPZtlSenLnyoi56SuCV0ysVCt96PkdJU0J5DmCNwVd?= =?us-ascii?Q?iAWQcP30g/fK5iv4AHcRpF8y8+guyq0nqKVX17D2wTd0xtODNifOlv9RHNHu?= =?us-ascii?Q?RK04nqVQSRGsVJbDvht7uQ9SJSnImJMRe6U8wB+6eHXa8zbuQ8pcl6xust3U?= =?us-ascii?Q?CAoPCgLwRBoGijEFC/Mm1wp7BxOz2jxQnNgaseEb7xJatbmQyX8t0y6ZQSTr?= =?us-ascii?Q?IPYaw0ObsmtdNL0QLFU+3dLygJj7lpgplhpOfp2+LgwdukUWQicCYCp5u4K1?= =?us-ascii?Q?X5qOmw=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL1PR21MB3091.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6aba5916-82c3-4d42-0655-08d9f676a37e X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Feb 2022 02:46:05.8205 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JcSyZMPBCyKIzeL7XLzuOv7QXISyN7FXmD1Fhbc8SI4qz9KssNo3JFcxsCjYaFRJyUgUvbsfj+eH83FvVEAiYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR21MB1739 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_BL1PR21MB3091CCBCBBF17C937C00F675D83C9BL1PR21MB3091namp_" --_000_BL1PR21MB3091CCBCBBF17C937C00F675D83C9BL1PR21MB3091namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Thanks for providing the inputs here. Really appreciated. I will try to resume the work(had to put it aside due to other priorities).= Please expect the patch by EOW. Thanks, Vineel From: devel@edk2.groups.io On Behalf Of yi1 li via g= roups.io Sent: Tuesday, February 22, 2022 6:33 PM To: Vineel Kovvuri ; devel@edk2.groups.io Subject: [EXTERNAL] Re: [edk2-devel] [PATCH 1/2] Reconfigure OpensslLib to = add elliptic curve chipher algorithms Hi Vineel, Are you still working on this issue? I'm glad to see that edk2 will enable = EC and other crypto features and would like some advice. I found from the previous discussion that there are only some issues with O= vmf binary size left, Have you tried enlarging the size of DXEFV in OvmfPkgIa32X64.fdf, I think t= his is the most direct way to solve this problem. Such like: diff --git a/OvmfPkg/OvmfPkgIa32X64.fdf b/OvmfPkg/OvmfPkgIa32X64.fdf index 097fd428d5..1de0aad9f4 100644 --- a/OvmfPkg/OvmfPkgIa32X64.fdf +++ b/OvmfPkg/OvmfPkgIa32X64.fdf @@ -62,10 +62,10 @@ FV =3D SECFV [FD.MEMFD] BaseAddress =3D $(MEMFD_BASE_ADDRESS) -Size =3D 0xD00000 +Size =3D 0xE00000 ErasePolarity =3D 1 BlockSize =3D 0x10000 -NumBlocks =3D 0xD0 +NumBlocks =3D 0xE0 0x000000|0x006000 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|gUefiOvmfPkgTokenSpace= Guid.PcdOvmfSecPageTablesSize @@ -83,7 +83,7 @@ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefi= OvmfPkgTokenSpaceGuid.P gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpaceGuid.= PcdOvmfPeiMemFvSize FV =3D PEIFV -0x100000|0xC00000 +0x100000|0xD00000 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpaceGuid.= PcdOvmfDxeMemFvSize FV =3D DXEFV Please cc me if there is any other progress, my team and I will provide sup= port as far as possible. Thanks! --_000_BL1PR21MB3091CCBCBBF17C937C00F675D83C9BL1PR21MB3091namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

Thanks for providing the inputs here. Really appreci= ated.

I will try to resume the work(had to put it aside du= e to other priorities). Please expect the patch by EOW.

 

Thanks,

Vineel

From: devel@edk2.groups.io <devel@edk2.gro= ups.io> On Behalf Of yi1 li via groups.io
Sent: Tuesday, February 22, 2022 6:33 PM
To: Vineel Kovvuri <vineel.kovvuri@gmail.com>; devel@edk2.grou= ps.io
Subject: [EXTERNAL] Re: [edk2-devel] [PATCH 1/2] Reconfigure Openssl= Lib to add elliptic curve chipher algorithms

 

Hi Vineel,

Are you still working on this issue? I'm glad to see that edk2 will enable = EC and other crypto features and would like some advice.

I found from the previous discussion that there are only some issues with O= vmf binary size left,
Have you tried enlarging the size of DXEFV in OvmfPkgIa32X64.fdf, I th= ink this is the most direct way to solve this problem.

Such like:

diff --git a/OvmfPkg/OvmfPkgIa32X64.fdf b/OvmfPkg/Ov= mfPkgIa32X64.fdf

index 097fd428d5..1de0aad9f4 100644

--- a/OvmfPkg/OvmfPkgIa32X64.fdf

+++ b/OvmfPkg/OvmfPkgIa32X64.fdf

@@ -62,10 +62,10 @@ FV =3D SECFV

 

 [FD.MEMFD]

 BaseAddress   =3D $(MEMFD_BASE_ADDRE= SS)

-Size          =3D 0xD00000=

+Size          =3D 0xE00000=

 ErasePolarity =3D 1

 BlockSize     =3D 0x10000<= /o:p>

-NumBlocks     =3D 0xD0

+NumBlocks     =3D 0xE0

 

 0x000000|0x006000

 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTable= sBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesSize

@@ -83,7 +83,7 @@ gUefiOvmfPkgTokenSpaceGuid.PcdOvmf= SecPeiTempRamBase|gUefiOvmfPkgTokenSpaceGuid.P

 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase= |gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize

 FV =3D PEIFV

 

-0x100000|0xC00000

+0x100000|0xD00000

 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase= |gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize

 FV =3D DXEFV

Please cc me if there is any other progress, my team and I will provide sup= port as far as possible.
Thanks!

--_000_BL1PR21MB3091CCBCBBF17C937C00F675D83C9BL1PR21MB3091namp_--