From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.3577.1660200847636941348 for ; Wed, 10 Aug 2022 23:54:08 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=oGT6trrV; spf=pass (domain: intel.com, ip: 192.55.52.43, 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=1660200848; x=1691736848; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CYXVZcBECT2Eq0j3bwaKtD9oBTOA513dtqSRAuqwoFY=; b=oGT6trrV8u9TxwbYxA24AM65PaJupG5tIdLqTIRgI/m8cdwQehAeoIZ3 MTGf+fhbvMyTtZKh/viQipNRx5/gCez9luhSf6BbRCJM6xhafuedUGXB+ eiGUDor75TLr6FVMxSfd3Rhr2y5RbfBUQZglRxHNu7YdUr+PZ7JgF4CLl FDJ4RAGSlwqV+9YWnSo93UqGSiPQ9n2FjvZFYCNCLHzsG6khOvQCcdHsH tv5lEs7QaDief/h//gLmiLbmRynwKuGNi9e3aCURJQhsfHAnZaYYUmYZa wGeOxGQs2wtfye1tyYPjvXgJpwhW+cu1R/6q6CCYgu0aDmxUGxtm6Yw3y g==; X-IronPort-AV: E=McAfee;i="6400,9594,10435"; a="377565715" X-IronPort-AV: E=Sophos;i="5.93,228,1654585200"; d="scan'208";a="377565715" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2022 23:54:06 -0700 X-IronPort-AV: E=Sophos;i="5.93,228,1654585200"; d="scan'208";a="673586226" Received: from moisespe-mobl.amr.corp.intel.com (HELO jvang-mobl.amr.corp.intel.com) ([10.212.171.64]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2022 23:54:06 -0700 From: "Judah Vang" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Nishant C Mistry Subject: [PATCH v4 01/28] MdeModulePkg: Update AUTH_VARIABLE_INFO struct Date: Wed, 10 Aug 2022 23:53:10 -0700 Message-Id: <20220811065337.2068-2-judah.vang@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 In-Reply-To: <20220811065337.2068-1-judah.vang@intel.com> References: <20220811065337.2068-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