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.web11.2137.1652347984025595834 for ; Thu, 12 May 2022 02:33:04 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=JlNTVcRe; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: jian.j.wang@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652347984; x=1683883984; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=y+YsRAKdI3ONjjqUdYpd6dkNIZWE/iU/AJKWL36/Z/0=; b=JlNTVcRefINesF0/rO3Uy3cODJenrLGTkZPEfkvhP+sAVzAuKAHHAxyG dPX/rrZmppQG+16RLM+/ovbrm1BNMmvqU92ouHKMLwnW/qK3Et/H8qkgM UMAnXpN8zOEupnNM1ogTQDuEyz9pI4vg/GMBlfH/6LlLNvgpEhQ5oLLpd k3+IWh30+9M8m3hSKJjwAw59tQZiIkwpvtHrZiQdynuh3jW/SqI13GBxu Q8D31ZUiqs0nrG8iY5eTOMH8msRgussiN1FOBGcKbz/kxEq2RQQadP04a tPKTs4VKktysF016LzKvIe6IL/s08zjtbdyMmBz4AWMfPk10vMHhS+KTY A==; X-IronPort-AV: E=McAfee;i="6400,9594,10344"; a="249844838" X-IronPort-AV: E=Sophos;i="5.91,219,1647327600"; d="scan'208";a="249844838" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2022 02:33:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,219,1647327600"; d="scan'208";a="636780180" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga004.fm.intel.com with ESMTP; 12 May 2022 02:33:03 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 12 May 2022 02:33:03 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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 via Frontend Transport; Thu, 12 May 2022 02:33:03 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.177) 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; Thu, 12 May 2022 02:33:03 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z+4tSYB+kSju6pgM472oRKJBRBywl/ptd3iytI4xgYJ5lzc0M0ouvobc3gbYTnpqtWtUIk4hD6sIMezZshzBrXa3t5vBUDQjMEoj87w3YCQYx6Rh/BmcmgE//AIT0yeJi8VJl1ULJ1ycwIgyd1ibKr6IqI3YuzNFN5lIezsdEQY6VsjJOgG9xKacmtvzJxEfz2XZKDzVh/NHvZ166NkemmEb+BtP67pbZZRnD9IwLqTlbciQIG8T/DzEFgL4h4XWS6KKjE0jfYVVQ6k2Z7VFsmGO0HrUysmyF8tE043DQOjpPgktyJOgAb+I+Z9k9YBEenRcBmNTzWMDgcuso+lXsw== 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=c1O13ijZr/Qew2qrSVhn1mdzWBXWO4Glp6OYG6/BOyQ=; b=UXvyJu+NAtNOkCGDiOSmhMUFEX6OtcWDnirYRZpZkyza30R/h4fOLfFKu3WxGjeacL2KV+Ad1pOY8HGn5IzJu9tUSfTNQrwGHw2fTRgKiWnYARflQd7+9IyNSC2ASu9r5dnBaIoYM+6QySt4CkBwIYlekvFYswDxrXEGfGiVA1XDOtwlJsH0vxVfB5TD46U8bn7varufh0DMelCw86HoosGmCbhM0U6vKYoBZov3trigjLhftanfxlEFtz2zi4rA1M7zBYZqIBieRUZ0aocdPaq/wOiieR9+dLdgHXq+ICzTcQM/G18hAIt05RgU1HkCZynfodF2/iVFmTcLe60WkQ== 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 CO1PR11MB4945.namprd11.prod.outlook.com (2603:10b6:303:9c::8) by DM5PR11MB0075.namprd11.prod.outlook.com (2603:10b6:4:6c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.13; Thu, 12 May 2022 09:33:00 +0000 Received: from CO1PR11MB4945.namprd11.prod.outlook.com ([fe80::8446:b1e5:5d0e:aa88]) by CO1PR11MB4945.namprd11.prod.outlook.com ([fe80::8446:b1e5:5d0e:aa88%5]) with mapi id 15.20.5250.013; Thu, 12 May 2022 09:33:00 +0000 From: "Wang, Jian J" To: "Vang, Judah" , "devel@edk2.groups.io" CC: "Gao, Liming" , "Mistry, Nishant C" Subject: Re: [Patch v2 03/28] MdeModulePkg: Update AUTH_VARIABLE_INFO struct Thread-Topic: [Patch v2 03/28] MdeModulePkg: Update AUTH_VARIABLE_INFO struct Thread-Index: AQHYW/Oym9KdeNdV7UWVhgdF9EDk160bDpUQ Date: Thu, 12 May 2022 09:33:00 +0000 Message-ID: References: <20220429180430.3292-1-judah.vang@intel.com> <20220429180430.3292-4-judah.vang@intel.com> In-Reply-To: <20220429180430.3292-4-judah.vang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.401.20 dlp-product: dlpe-windows 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: 6a7ca997-5779-4409-530a-08da33fa67b1 x-ms-traffictypediagnostic: DM5PR11MB0075:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr 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: 29HBhi+PvqmqT87QLLRs4w1KLwb9TFjx7L+1dFIq5EZ8iNbEfUTvi9zGWY1ip42552zXVm1USN80p5+bKOxARsVLizknDRYT4VInYbgbQJdaHkj9g9Lhjsrl9ox90pRl2fuu9FaBnjzybw/uC72XSxQi1KhEeap5UQjib+KTW22HygiC5S1H6/eFdfKjjpqJIAjz0AH2Gjgc4PRBcbVFggwrJbtgrPG9nCrlle6mrZYb33/9yJaOk/uzhuKet/lZWdC5vuZYblu2WFUszvN7l/bZJqcd/0zcGtOJ/48Y6Enms1C/eceQ68UVfzIfUVavGYwnByHLzoP6hch8Ais3xI2E2Xp2oY/JEYiMo8rRWgoGTSA3YYTk/tvRNQx3CLVV1nw+EbBz2bd1VRKTIM5+eCZZ9iHhxsM1+lyvo6ovdC3WUAALTHfwSqsWN77dMvLp3UFNLeRvKoDN/Rzo9iiRd4HlUtHLbx074B3tUQgbC5d53YkOeSRmKbbz/fvMhyanlKb+nRBuh8hvJSuC5eK+8izDqI1NVSSRviKqymlLAheZimsxW5eX4LzwV6iBoNl4g1pDbgM6VXAqHHO0lI2sjHQhndkVP7baBev6gFHEhDkfJeGiSsQOChy2R/O/Z0arG5uBOUCX3iJvWdyqq7S6eVHy70UJPSZHsafcETY0JGPln55kyONXX7TJupkX+H8X4h2kejctw+xMKzDXyf8G59pT4cLddWjlle3q5idWyzxANxSGeApTMxMUXu8wNAhRpapsBAm4jQEiUKMETk+rATAqZ7bPUsksQSlRzSRETi8= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4945.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(7696005)(966005)(5660300002)(53546011)(33656002)(2906002)(8936002)(6506007)(82960400001)(508600001)(66946007)(86362001)(52536014)(9686003)(15650500001)(186003)(55016003)(107886003)(38070700005)(83380400001)(26005)(38100700002)(66446008)(66476007)(64756008)(66556008)(8676002)(4326008)(76116006)(54906003)(122000001)(110136005)(71200400001)(316002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?tTgxH9pbkCEnL/+nI5YfaW32Lg++m6XBt/rEhcFtGqYsGwb3D1+aUjr0RYsi?= =?us-ascii?Q?32wj5MkvSn/5eXpDV6KDKZnAbcolbYZIRy5Nm0tByG51qpO++mwTo8V9EHxP?= =?us-ascii?Q?qMxpIYfFdDMx2kXvW3iEdw4d8Y+FcJvQw4zliXdDuil3Gy5c7zF/4wB5EXrB?= =?us-ascii?Q?e10p2ABgteJ2/UUpeYOD1RxyTE1RB8sExd0gAS5H1nSWoQJhGJpHseG0yBhS?= =?us-ascii?Q?xdfOJ3o75sPZgyoAsLImU9KYMlbeBgE9n3tUwVdJzgEXiFDSqa5um6YHo1OM?= =?us-ascii?Q?hRtkM5DkVuRK74rJBMkwpW6C1ymCfC0bsu6HqmEdz/mKBVDluYpdsHDGJ9jv?= =?us-ascii?Q?6VwmqbUkaP/WIsjDZXatGskGMnFG18nI24/nsFY4n0FiuCblW7vS8tYIWoQD?= =?us-ascii?Q?lg9QX5FxWxGewxNX1GVKRbyCvj9sapfLjqudyWgwh5Z5CBuKgxGTbGfT4/w3?= =?us-ascii?Q?50Z8aMX2b6CrD4rriUXy+OxlQsvTrn4PWrcBiI11mDuOS3J69HQbUy2Gkw01?= =?us-ascii?Q?wIfgvikOiLiEgIy7vUyOJeIcUYaFl4zpEK9hQZPrJkeuy00SxUBZs51GtAwF?= =?us-ascii?Q?49iPjS/RYS/6sknbTznuiMS7RzikhlWIZer24EKn8367OHOkJrss1TJGbDaC?= =?us-ascii?Q?uKho+CPjkhUDGnrVXdpyS3kXKFiIjfToo/mfKl1zLSUDwPCYeDfWc4mml+Ff?= =?us-ascii?Q?JqYawho5xQ9/rAeNp6Jga30n4obipO9nsQ2scmJ2yPvDQaXPOMZJa12vmg9B?= =?us-ascii?Q?Cm2IlCMYP7SkNNlkclmywF2wO394RrNwNmwy1941RvdrSo7y7NY7hHwaB7JR?= =?us-ascii?Q?j93j5Tl8StrWK7JbX/muPxX3fUVHwSebDhyCQqhn4EBOy/eMfDn72A469Wg+?= =?us-ascii?Q?ajib0XGOeQczVIm52ffmIAUvrGQDaNx1VPV8uRS5DV7QapKVxOs4J7z6sjOA?= =?us-ascii?Q?fv2QfHsEuuTV2d/kySH0kX4b4pdi99LMALIwjrrV4sHVATbc9CC30shetx2c?= =?us-ascii?Q?XVbWpyXocLxPYMvJeKjJFAyBLAD5BHLFj/GcPzUH1XZFuOMA1uYLOjuUm4uc?= =?us-ascii?Q?RquKcFOTvbciMj/vWKiweSG9eUqPg3/winqBvEa2+cJAvBs+hbSirinzf+PS?= =?us-ascii?Q?+er+qE1fRO/hJ4cBQQQyC2g2DBoZe5TfYPYYBd+KAWRHGDmEe08ege5wtkMC?= =?us-ascii?Q?8LHrUFbw8eYpafrltmUwlOkjHccSzdEzxygG93k91FwFBhDDjkRP3tYiQbfE?= =?us-ascii?Q?vwGAkN44A7RGlr6rXHlnbs+5yDjW6ZlDFkXX6B6B6QyptYyCPvuF+TJrxHGh?= =?us-ascii?Q?Y01OfD8CHri1paPPCgKLfFRWnvzNClCxa4mRATFfHPHw2libbz3Mmi6eBwgd?= =?us-ascii?Q?C4PQn9xfOmiKFsOhCxe5klOm75nPtaGq6QEbcqRGqYPWmog67xAIbzGwnCyy?= =?us-ascii?Q?hcQVCATkLHoOA7gW/qeY4jHdjUHc0ylcbE7UWLE1TqYzMGKo1VV+S2K1HLIU?= =?us-ascii?Q?yPP44WaPWAgJgBK/0bVrXDjBird+41FuhTgcvJS7T1ncyxV5gMR6e0JCf1Gm?= =?us-ascii?Q?0VVEbA+lIMhyLari069UpSFbkgtoeBSMnIwZ6LSaU/Tm3SllvnFyZ/XMdC4I?= =?us-ascii?Q?+PIcBWOsN+PlCakydeF7iwNTAHryulDEVRSXqM8Va5JIRiGRLmJSk++FfK4A?= =?us-ascii?Q?UQp+KmDYlUwcAImBO/zIwFMQHPjuPLlUAwqvi1J1HT8UfdyU9tp2LgtNlDSK?= =?us-ascii?Q?Htn0fczVbw=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4945.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6a7ca997-5779-4409-530a-08da33fa67b1 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2022 09:33:00.0393 (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: XzSU2C/0cQ2gq/fzr1JYuTfIMKxDuWB+LL4Y0upsyCz/q1tRJdY5IfzScSHBzkBOf9CR7u9Hl2k0XIvZj322Yg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB0075 Return-Path: jian.j.wang@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jian J Wang Regards, Jian > -----Original Message----- > From: Vang, Judah > Sent: Saturday, April 30, 2022 2:04 AM > To: devel@edk2.groups.io > Cc: Wang, Jian J ; Gao, Liming > ; Mistry, Nishant C > Subject: [Patch v2 03/28] MdeModulePkg: Update AUTH_VARIABLE_INFO struct >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2594 >=20 > Added NameSize and State to AUTH_VARIABLE_INFO struct. > The size of the name and state is needed when creating > the variable digest. >=20 > Cc: Jian J Wang > Cc: Liming Gao > Cc: Nishant C Mistry > Signed-off-by: Jian J Wang > Signed-off-by: Nishant C Mistry > Signed-off-by: Judah Vang > --- > MdeModulePkg/Include/Library/AuthVariableLib.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/MdeModulePkg/Include/Library/AuthVariableLib.h > b/MdeModulePkg/Include/Library/AuthVariableLib.h > index 37aceba699e6..32391bbf2b61 100644 > --- a/MdeModulePkg/Include/Library/AuthVariableLib.h > +++ b/MdeModulePkg/Include/Library/AuthVariableLib.h > @@ -1,7 +1,7 @@ > /** @file > Provides services to initialize and process authenticated variables. >=20 > -Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
> +Copyright (c) 2015 - 2022, Intel Corporation. All rights reserved.
> SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > **/ > @@ -25,9 +25,11 @@ SPDX-License-Identifier: BSD-2-Clause-Patent > (OFFSET_OF (WIN_CERTIFICATE_UEFI_= GUID, CertData))) >=20 > typedef struct { > + UINTN NameSize; > CHAR16 *VariableName; > EFI_GUID *VendorGuid; > UINT32 Attributes; > + UINT8 State; > UINTN DataSize; > VOID *Data; > UINT32 PubKeyIndex; > -- > 2.35.1.windows.2