From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web10.14306.1667720141929357296 for ; Sun, 06 Nov 2022 00:35:41 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=jhkhfAAh; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: judah.vang@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667720141; x=1699256141; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CYXVZcBECT2Eq0j3bwaKtD9oBTOA513dtqSRAuqwoFY=; b=jhkhfAAhSnNdbeSPTw7lZbfAr2s/UguuijksFaDVqy86YWy8jBbyY0uq Nk5NMjTpLk4DAf3Tf0Sc9nMmKAJALv82kgUbLn9QarOffaQJ0RlMlQwh0 FYS7VmAM8/II78dK7n3ddEgJBgkKRGZxWBwD5WMbl/Sl3p6h872ntrBan UEtGjgeohDqvdWGOXDcK7iJcqEHC5y2ioC8H9U+uvGW1ScyTge0MrSwao PuIQj9J2s//fT1HeSomnKOrlbRZ1YgSvsizZflZ5u270eRCaVnIlqQuEF kNWLOqOL8s8Z91lDxE+tjBPI/3eJoE0rkWf+zI/InubA130uHDoks3P8r Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10522"; a="336948729" X-IronPort-AV: E=Sophos;i="5.96,142,1665471600"; d="scan'208";a="336948729" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2022 00:35:25 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10522"; a="810513430" X-IronPort-AV: E=Sophos;i="5.96,142,1665471600"; d="scan'208";a="810513430" Received: from jvang-mobl.amr.corp.intel.com ([10.209.139.244]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2022 00:35:25 -0700 From: "Judah Vang" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Nishant C Mistry Subject: [PATCH v5 02/19] MdeModulePkg: Update AUTH_VARIABLE_INFO struct Date: Sun, 6 Nov 2022 00:34:52 -0700 Message-Id: <20221106073509.3071-3-judah.vang@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 In-Reply-To: <20221106073509.3071-1-judah.vang@intel.com> References: <20221106073509.3071-1-judah.vang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2594 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. -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 **/ @@ -25,9 +25,11 @@ SPDX-License-Identifier: BSD-2-Clause-Patent (OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData))) typedef struct { + UINTN NameSize; CHAR16 *VariableName; EFI_GUID *VendorGuid; UINT32 Attributes; + UINT8 State; UINTN DataSize; VOID *Data; UINT32 PubKeyIndex; -- 2.35.1.windows.2