From nobody Tue Feb 10 15:29:43 2026 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+90363+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+90363+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1654754631; cv=none; d=zohomail.com; s=zohoarc; b=CFM3H3tPXvYMfCcH0uCdAqplXI4PgzfzLEvxfhedk+1xErZU1IafqrTF4IJqZ1S0p3B4eF+01R3skj2oBK1bv39j/bzVhicnCNobtEauZUWoRhMIlEtYnLhBphVFlWv0CTaacdXlp8uHhNcuVJWjVzISPkpWShMHUdVDR/hV4f8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654754631; 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=JeM6/5LiLbM3XNFwgorF5VBoVa4K+9Vnc33CX/FfmG0=; b=gAeBHG8ebmfifMuc6SM+i2ez5BYRdVImbVjk8x/S6ZKLlmFuZ5dsyWUsJVdYE+ON0FuPwfKvkeeDg33DNPQLItDMKY80gDAsVLPMgMKazL5UBv3E7etZxuLkk+3QiKFX/xbJwZptb6vqLZh2PwcYTb4A4ZBpyz2UR+z0Cnnyyek= 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+90363+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 1654754631886368.28208534081; Wed, 8 Jun 2022 23:03:51 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id n4jXYY1788612xbsK0YzgLB4; Wed, 08 Jun 2022 23:03:51 -0700 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.7336.1654754625219451717 for ; Wed, 08 Jun 2022 23:03:47 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10372"; a="363487925" X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="363487925" X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2022 23:03:46 -0700 X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="566239861" X-Received: from jvang-mobl.amr.corp.intel.com ([10.209.91.16]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2022 23:03:46 -0700 From: "Judah Vang" To: devel@edk2.groups.io Cc: Jian J Wang , Jiewen Yao , Nishant C Mistry Subject: [edk2-devel] [PATCH v3 10/28] SecurityPkg: Add new KeyService types and defines Date: Wed, 8 Jun 2022 23:03:04 -0700 Message-Id: <20220609060322.3491-11-judah.vang@intel.com> In-Reply-To: <20220609060322.3491-1-judah.vang@intel.com> References: <20220609060322.3491-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: 89himrBVhEtbhla3QogS8do8x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1654754631; bh=r/ydec59fLGyAEJ0ww9b/TcXqI8gt2S3x8nvBvBxWy8=; h=Cc:Date:From:Reply-To:Subject:To; b=gzqnWVdBfWJCrjLSBOrMnKvkM4r8BBPtQn15/d0gmvwMGwywUbWZngeYFmeavUVA6Fr T34IuO/KM/4p1QG8FBPj/aSPrQU2lmghkCHBb9ytlDRorsEUYhR+1HVKtS7zCXSvOWRbM jadh1itUPIaYzYl4106wZLMdVFHkhKu1qZE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1654754634023100038 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2594 Add new KeyService types and defines. Cc: Jian J Wang Cc: Jiewen Yao Cc: Nishant C Mistry Signed-off-by: Jian J Wang Signed-off-by: Nishant C Mistry Signed-off-by: Judah Vang --- SecurityPkg/Include/Ppi/KeyServicePpi.h | 57 ++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/SecurityPkg/Include/Ppi/KeyServicePpi.h b/SecurityPkg/Include/= Ppi/KeyServicePpi.h new file mode 100644 index 000000000000..f126913d2d81 --- /dev/null +++ b/SecurityPkg/Include/Ppi/KeyServicePpi.h @@ -0,0 +1,57 @@ +/** @file + Provides Key Services. + +Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent + +@par Specification Reference: +**/ + +#ifndef PEI_KEY_SERVICE_PPI_H_ +#define PEI_KEY_SERVICE_PPI_H_ +/// +/// KEY SERVICE PPI GUID +/// +extern EFI_GUID gKeyServicePpiGuid; + +/** + Generate a new key from root key. + + @param[in] Salt Pointer to the salt(non-secret) va= lue. + @param[in] SaltSize Salt size in bytes. + @param[out] NewKey Pointer to buffer to receive new k= ey. + @param[in] NewKeySize Size of new key bytes to generate. + + @retval EFI_SUCCESS The function completed successfully + @retval OTHER The function completed with failur= e. +**/ +typedef +EFI_STATUS +(EFIAPI *KEY_SERVICE_GEN_KEY)( + IN UINT8 *Salt, + IN UINTN SaltSize, + OUT UINT8 *NewKey, + IN UINTN NewKeySize + ); + +#define KEY_SERVICE_PPI_REVISION 1 +#define ROOT_KEY_LEN 64 +#define SALT_SIZE_MIN_LEN 64 +#define KEY_SERVICE_KEY_NAME L"KEY_SERVICE_KEY" + +typedef struct { + UINT8 RootKey[ROOT_KEY_LEN]; + UINT8 PreviousRootKey[ROOT_KEY_LEN]; +} KEY_SERVICE_DATA; + +typedef struct _KEY_SERVICE_PPI KEY_SERVICE_PPI; + +/// +/// KEY SERVICE PPI +/// The interface functions are for Key Service in PEI Phase +/// +struct _KEY_SERVICE_PPI { + KEY_SERVICE_GEN_KEY GenerateKey; /// Generate Key +}; + +#endif --=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 (#90363): https://edk2.groups.io/g/devel/message/90363 Mute This Topic: https://groups.io/mt/91640192/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-