From nobody Fri Apr 26 21:04:22 2024 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+89421+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+89421+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1651255512; cv=none; d=zohomail.com; s=zohoarc; b=nRMbnWsp/ymKosJi4qTJHhiSqQya1bClxgj1itJzNLcFNvnNJMDUcnW4ohiJrgVSEOwa5V/XAmCCCLJRC1kr4nQqEKQQ0SrCveoQx714Hod6zspIPb8ZWgAyNuJ5ZdgBTrHYyFq1Vo85f2yOS2mf9Q1frGZMBK59rwOcKy8E5SM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1651255512; 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=XAMSp+ft48NJmh2OJLqHPjn1EG1SImhgw1o7SpMqw4M=; b=Y2eqrNbOsVUBAwMsDo6LK3iQ+Og66t5HshLYaoaHoz3eoV75ZHAb0xpn1Z/mrzdK4RjL3jLDCLSaEg8mjeJN1FaxHz0n5XrZsSmw7GnBXkkJWzOIaF8hPGVVz6myJEWOQzUEDpy1n5Mn4S+uIUU841SW/5QOXBIEq4oKOjQlxrk= 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+89421+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 1651255512536792.0444850692057; Fri, 29 Apr 2022 11:05:12 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id cmOdYY1788612xTLYJqHDRQ4; Fri, 29 Apr 2022 11:05:12 -0700 X-Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.13694.1651255507314257486 for ; Fri, 29 Apr 2022 11:05:11 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10332"; a="248659110" X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="248659110" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2022 11:05:10 -0700 X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="514955539" X-Received: from jvang-mobl.amr.corp.intel.com ([10.212.198.238]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2022 11:05:09 -0700 From: "Judah Vang" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Nishant C Mistry Subject: [edk2-devel] [Patch v2 03/28] MdeModulePkg: Update AUTH_VARIABLE_INFO struct Date: Fri, 29 Apr 2022 11:04:05 -0700 Message-Id: <20220429180430.3292-4-judah.vang@intel.com> In-Reply-To: <20220429180430.3292-1-judah.vang@intel.com> References: <20220429180430.3292-1-judah.vang@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,judah.vang@intel.com X-Gm-Message-State: bnpG3GcA0Fyb14S2GBHK88tfx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1651255512; bh=EYj4IIpSpPUO9nTGncB4UDv1nOHhWjwpHwJXsP1/tKA=; h=Cc:Date:From:Reply-To:Subject:To; b=QtAvyeoIKPUOGqS49Zfm85ZgcXQf9Yb6dY1ZqIZBtG+FqVP8nKeoDXnokaYxstzZwHD ZcPSAFf+8K2GTJ/PAOa+kksB/4if4VTzHq4wDGKhQiZf4yLaSeNCp/CjnDtCnQeiB/JoK 9KLRi9zM9wu2qNa3FVx+klwkJPtTrtivC5k= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1651255514705100013 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2594 Added NameSize and State to AUTH_VARIABLE_INFO struct. The size of the name and state is needed when creating the variable digest. 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 Reviewed-by: Jian J Wang --- MdeModulePkg/Include/Library/AuthVariableLib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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_GU= ID, CertData))) =20 typedef struct { + UINTN NameSize; CHAR16 *VariableName; EFI_GUID *VendorGuid; UINT32 Attributes; + UINT8 State; UINTN DataSize; VOID *Data; UINT32 PubKeyIndex; --=20 2.35.1.windows.2 -=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 (#89421): https://edk2.groups.io/g/devel/message/89421 Mute This Topic: https://groups.io/mt/90781888/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-