From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web12.16563.1653228383648247693 for ; Sun, 22 May 2022 07:06:23 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Isp6LdnY; spf=pass (domain: intel.com, ip: 134.134.136.24, 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=1653228383; x=1684764383; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=GXey1KQlZIc+VykpAHYMxb9QZPvwVFpRt1CKBNOnWzs=; b=Isp6LdnYcDdqXEa3Cfn+j94/k2UIk+F29kwzw5eDQyIPo7kgYeGBCeUc 6vThGWyEHOblUbowk/HavxRcsC7dGMomsozmjmcFGTgVWhU1aNVwf606m cIuaVpw8tXKVxI3Id52osx1kJKuqHKk8FeJaXe5j3h1bopomqlV9bcZVY IETIT4JAMghKNfgFHNheFzCJRsFe96C1FYF1/lAMemYmFSvdj5W+M9+10 snJO0YEkyoFxNyi2kjy0gzCi1BLTveMsezoAxFzR9wWb5iBzYfJMbULtF Occq02TyinNNJHdTUSM0gbwdtHS4vXwH6dNIA9IwG+AxfHtOnRvAr5mMp A==; X-IronPort-AV: E=McAfee;i="6400,9594,10355"; a="272713118" X-IronPort-AV: E=Sophos;i="5.91,244,1647327600"; d="scan'208";a="272713118" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2022 07:06:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,244,1647327600"; d="scan'208";a="571635274" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga007.jf.intel.com with ESMTP; 22 May 2022 07:06:23 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) 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; Sun, 22 May 2022 07:06:23 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Sun, 22 May 2022 07:06:22 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Sun, 22 May 2022 07:06:22 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.106) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Sun, 22 May 2022 07:06:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V1zyEeTHNfO/mR5/ZyRAhhASGbdQzJr00PdMROtAnnNr3nncfPSBkR3RdgPfbIjuGlpdF10toGZdZNSEA355Xof/HjyiVjanDMMFDEVcxLcnILKZDXrJnoS+1PlhSh2lQYDeDMHavDzh32RQd3mBM/5QQRZWA9QaQXuLOBQXp48nFsKTA1qRzCvi5PtDW3P1CBrxHRcFJ+4gyMw3zBTFkYlob54zRlX/w53e/AEybNI0kW6t5G1VABSd9/43nHV7ePVhIRSqfD/urQlYXqc1eVFjEqcXmaae71DM+beU0lyQzXKsx5ppOCR+pvEwTFULDBqTvPoYc53qhK9SjiGPtQ== 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=m1t5VTZ9YFMk2bheWjIJGaonZgstzY2dAKQo6qEQMJg=; b=Q+Hdmeiwg18yBYJHIoFOvigJ3Qyq8Ttrutff+1RBKEkXYb5LkyzMocqqPDk1w564MPpa4YzujuTHdLlWKKuQW9x4KgO2GZGu6LUYfBK+Pu8NEyy2749TtkP0bVPNV8oHohyy4ttJdgVSpOedtx2UuCzBXtXOoRYJH1Lhzmlz2W7lTjH6vo5/ZhB4Uu/FTe0aEINlhOxV47JQUJgbjXe4odwTFeYO6RxKL+/VYTWiNCnILPTpO+Byr+nUh6IkIIj98I/4/N1mR3PNHP/Tt+zbqE1x1IaqzzrybhwvGfQ/P00QZFIAl32Kli5dGJZ1jxzyzFOMAtFyHy72gzrowCLHGQ== 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 BN8PR11MB3571.namprd11.prod.outlook.com (2603:10b6:408:8f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.13; Sun, 22 May 2022 14:06:21 +0000 Received: from CO1PR11MB4945.namprd11.prod.outlook.com ([fe80::a420:db2c:31db:7906]) by CO1PR11MB4945.namprd11.prod.outlook.com ([fe80::a420:db2c:31db:7906%9]) with mapi id 15.20.5273.022; Sun, 22 May 2022 14:06:20 +0000 From: "Wang, Jian J" To: "Vang, Judah" , "devel@edk2.groups.io" CC: "Yao, Jiewen" , "Mistry, Nishant C" Subject: Re: [Patch v2 10/28] SecurityPkg: Add new KeyService types and defines Thread-Topic: [Patch v2 10/28] SecurityPkg: Add new KeyService types and defines Thread-Index: AQHYW/O/npSQg4kyNESULbAyUZuu+q0rEiHg Date: Sun, 22 May 2022 14:06:20 +0000 Message-ID: References: <20220429180430.3292-1-judah.vang@intel.com> <20220429180430.3292-11-judah.vang@intel.com> In-Reply-To: <20220429180430.3292-11-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: cde76615-4ab7-4fed-67dc-08da3bfc3f79 x-ms-traffictypediagnostic: BN8PR11MB3571:EE_ 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: Xss5eeyKInnb8THHQK8g1JKkYxsH9cNFjjhCeEUhPx/s2wJgnh7qJBp/mmM4dOvIJIhTDRJ/j1Jxc1rIZX0Sd0f9ZMSEoh6onNC4KN9lVmvqSY7SaYY1yN9B6II/Wz1x8vNatNWqQg9+acSH4hgFz0V99TF4uAjgJDtlWT/Xu+AQE+1caYC/MM2Zy3F3/H+0VfCRLxWkULBYyMOvbIAkiVEB6+564SBs3phOkwXvGNGunWEx+1WLPVKdVu1mpLSltn/PQw0l9zZ1KSbdxkLpQENdBy8JJAzWHU+990lUgxi1vpTTrBw8h35dwW0EorR187GWgKF/Sj8JsEYhFNQmFYLXFIKhwi6z4T2o2rO5E2ECNbKJ0tMxDJFHOkUmUvyUkZiHrgke000Omj58SZqVgwhSJ7d7HxUovubx5V0iQz54ZomEbAKBtxApYaZOndkkJXSycomFGoQN90oDUnssvE0cX9OZXKvvjaET7Mse3/jRULZ2N6yv0A7EyT6DjHAB3Y7i/rWYqi71UPd3VTm3jVTqwsZyvuLqf4ZYyo7T3NP7vFXlJybEECeTqPvY9Ua9ejtX/9WA3+cD7pF7KzKdfHO0vv8DzNp1K1wggIKPuY0iTI7d1jH0NjmaKdpIK//1oVDmsbd1DC2ILhhL4fcmC/9hsAPM/8gpTJrk+R8RUZyr4PFdPhrB9Rlu+g3dX8pIHDSvuBPKVPzWrzSOAODx37IjNFYztWy04gwCyWhTHcEz5HNM71Mwj3Qxl9LS8XWkGf7M2tWtn/qLBJrOi+zLaWAN5vGtemU5EUwhx1EsMVI= 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)(5660300002)(64756008)(66446008)(76116006)(66946007)(66556008)(8676002)(66476007)(52536014)(38100700002)(4326008)(15650500001)(38070700005)(26005)(82960400001)(122000001)(8936002)(9686003)(2906002)(53546011)(86362001)(186003)(54906003)(110136005)(966005)(508600001)(6506007)(7696005)(71200400001)(83380400001)(55016003)(316002)(107886003)(33656002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LP7K9Zz8TU2+I3kFbBe6kXqGEYGXw3fSHaWslUqjS8/QRt0W1vZ098Fov0Lo?= =?us-ascii?Q?gH3mP+z0Jgx4KvloG3HKenbFm4OHh9H64Moac7AlC4eUzbJ/BLZKXB7NUUOl?= =?us-ascii?Q?PGx17KD9re0RhWuDltLTOB14leovwhDcbzDFBGZwIU+809gts/uRulEFjl28?= =?us-ascii?Q?KMLHtFoyAYhaXlAFiVSCl38ewUlqQuQrewf0Y9NOUQhjrXyFRjML6yr8XKVL?= =?us-ascii?Q?ayaczPa/R2C94oTGrkzfvgIVhqI3XsFBmEIuaikbGf43+Oq5XEH8K3nKFyJi?= =?us-ascii?Q?3xx4pzNP9Jz3nsSX7X2FbYD7DuxFFvBQGUycn8yy1/nOFYFjg+nTvQxT7QMn?= =?us-ascii?Q?SIdL4SuckI/H36sXdp3oHeBp3eyr+27gMN3hFOY95hBqMPbp8e+kaRAfjyx5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MQZ29C2JTN4NKN9FfBGr82YRzfEo4ff7JeJ?= =?us-ascii?Q?HVFjRdp4fBkfvdEP6BFjLdSYv9BS6MKFbPfibFMf7WxKXOMmJG/SBWMELPPp?= =?us-ascii?Q?Rs2HrhVF2x6A4ZNAwg6kotfMSNIEDruj8l/5aF+PPxucl5kPM12VTyMH1983?= =?us-ascii?Q?4e719nwQ1YKkzHOYgK3ZxszTWIx3kZ301FnFzG84lySdAKerOfZGvFmtCw3y?= =?us-ascii?Q?4B4hFtaaLkRY/wr4O59gNK5JfbWwuE0bDbEZJjsk/77gTsL0Z5Un3/aZ/2Zi?= =?us-ascii?Q?Z4aLxqG4xt/qb8hShFx4ZCmJ2sP3xTXIdNf1ossTd1GZfdtzUEP6qFKT8UO3?= =?us-ascii?Q?C7z9vjqf8Jd9ZU118wKT14qw7CISSdwJm5uxLvmap0y9O7QTlgQI/9TrMwF0?= =?us-ascii?Q?NrEistp6/qjd9aET6+QPSBzDo+nSpCL9xqcf9hLWIJVN80QxMqcR7/rBt3xX?= =?us-ascii?Q?2sf5RNad3w=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: cde76615-4ab7-4fed-67dc-08da3bfc3f79 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 May 2022 14:06:20.8440 (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: Xmv+om44cfnNEf6r0M+rFilBaNuuPRAsWvjbwmVhcYmO2YJT8iL6SHIMsymrIs1E2jyCpIiElKhQX+/C/lAeFA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR11MB3571 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 Judah, > -----Original Message----- > From: Vang, Judah > Sent: Saturday, April 30, 2022 2:04 AM > To: devel@edk2.groups.io > Cc: Wang, Jian J ; Yao, Jiewen ; > Mistry, Nishant C > Subject: [Patch v2 10/28] SecurityPkg: Add new KeyService types and defin= es >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2594 >=20 > Add new KeyService types and defines. >=20 > 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(+) >=20 > 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.
[JianJW]=20 2018 -> 2022 Regards, Jian > +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) = value. > + @param[in] SaltSize Salt size in bytes. > + @param[out] NewKey Pointer to buffer to receive new= key. > + @param[in] NewKeySize Size of new key bytes to generat= e. > + > + @retval EFI_SUCCESS The function completed successfu= lly > + @retval OTHER The function completed with fail= ure. > +**/ > +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 > -- > 2.35.1.windows.2