From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web12.12857.1607607802871677998 for ; Thu, 10 Dec 2020 05:43:23 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=JI4BhCHP; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: jiewen.yao@intel.com) IronPort-SDR: kp4XhDtJc4NurkRiMNemeUGYao13MkXF2LCJ3iizVIOK1WkzGvn98C6oxSp3OQXfso0iGtwGkA Ms86R7p8D+eQ== X-IronPort-AV: E=McAfee;i="6000,8403,9830"; a="161306602" X-IronPort-AV: E=Sophos;i="5.78,408,1599548400"; d="scan'208";a="161306602" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2020 05:43:21 -0800 IronPort-SDR: wTNIF88tSsaE2fZ7/TuHQrsmjNtKGYjVgzz3Bm5bW0aAiVulZ88NXV9J80iQiNdx4wwNWiZx8r x5D7UiV0LMEQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,408,1599548400"; d="scan'208";a="333325994" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by orsmga003.jf.intel.com with ESMTP; 10 Dec 2020 05:43:21 -0800 Received: from orsmsx604.amr.corp.intel.com (10.22.229.17) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 10 Dec 2020 05:43:21 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 10 Dec 2020 05:43:21 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.36.51) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Thu, 10 Dec 2020 05:43:21 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eOKhvwLdK76lEXz+fLMwDSFfNLQ+YgFEEtzZhrOeFCKMSF2Q8T2A9Vum3Dzj57AIrv8iIQOQFfWrndwky+LmEeYVe6hkhdCwFL9ohkzvjlrOIsapIXmz1HNAXOveBbeYINLgZtKPUuIJrTozI51UII54RNBerjSDwdeEFsxsLC4bPjYXQVnGBRdCilZANcIfSgBSCZX5g0KyN2eM64WVoFap5+ptzeP2d7UsJ8vQ2a3QUHVCmftbFifY9Xpj+ekTN5uxpVePO4hWuQfgJQX88FuU7yUZOXpo8kkH6e5rXWpt8vnoCebBpkYuoNXT0v4ixK7DrCulprUKmqwncO7J5g== 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-SenderADCheck; bh=Ahe+40rjVfUe1pEQ1tYs4iUb2WfQ1ejmzEPuE9I3avk=; b=YIwekRDK5CDrJFYq2w6H7RgQXXenkrLq7runCOG76VJysVvmguwgYfEISliAPFKP0pcLACXXN/WCxK8/Wfb3w49WeLW4sqODq9gQvBdcnJaMg2sAeXKsxcu7ADfNejsdvOXwas60lLS78PnDELHZhm5IxsPc/O+ENLQze3inXf3Y/MZH2NJM4GsD5feNHmPvGIOWC+A86r3XxtkTvihZBpY+PgBuV7u8JLYg6LTRXJTX5o5EQ3SJdn4XBJtU2ruuSoXJMptKawxgcsOu9YqyjnVzzDHusNKQjh/XSjQpI4qhMtAc/GbWAAL+JSKGVmo5dz9JgfYILWqOYLueZK/SRw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ahe+40rjVfUe1pEQ1tYs4iUb2WfQ1ejmzEPuE9I3avk=; b=JI4BhCHPccgwyc0H9kM3LpRy+vCNeTrB4X12hcn9CFXVf01cFySR8xoCevfxlZp8abVPG+QDHZ0B7MmhU128BiOfBfN8/aFgFCLQ7jPAuKrx6ZHTghW6gTt2mxD3/dKi5PiZT7VIaetrY1yisQnawiBP6NQC9dQMllaFz+CrcP8= Received: from CY4PR11MB1288.namprd11.prod.outlook.com (2603:10b6:903:23::8) by CY4PR1101MB2117.namprd11.prod.outlook.com (2603:10b6:910:17::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Thu, 10 Dec 2020 13:43:20 +0000 Received: from CY4PR11MB1288.namprd11.prod.outlook.com ([fe80::e058:fd5a:28d8:2b17]) by CY4PR11MB1288.namprd11.prod.outlook.com ([fe80::e058:fd5a:28d8:2b17%12]) with mapi id 15.20.3632.021; Thu, 10 Dec 2020 13:43:20 +0000 From: "Yao, Jiewen" To: "rfc@edk2.groups.io" , "leif@nuviainc.com" , Sami Mujawar CC: "devel@edk2.groups.io" , Samer El-Haj-Mahmoud , Ard Biesheuvel , "rebecca@nuviainc.com" , "Kumar, Rahul1" , nd Subject: Re: [edk2-rfc] [edk2-devel] RFC: Adding support for ARM (RNDR etc.) to RngDxe Thread-Topic: [edk2-rfc] [edk2-devel] RFC: Adding support for ARM (RNDR etc.) to RngDxe Thread-Index: AQHWzeRWr7g5lW0LiUunRoDjwV3wfKnuMRqAgAIBtQCAABf3gIAACWFA Date: Thu, 10 Dec 2020 13:43:19 +0000 Message-ID: References: <70a4f9e7-952c-cf05-bca7-009ee5b2cd3f@nuviainc.com> <20201210125213.GQ1664@vanye> In-Reply-To: <20201210125213.GQ1664@vanye> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [101.87.139.49] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0905dafa-6851-46ea-3841-08d89d118e67 x-ms-traffictypediagnostic: CY4PR1101MB2117: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LrQG5CEz4RsacQunn+4x2bPOyPe9ejzeSsGR7vWi+W6B6X0Q0sVc7vlajO5cEQMJze4y98EeMGfyaRu4DTwja/aGAFLEcDFSCqbFEtlRfXfOYzB7CdM+Fi8X2452r9SzPpzNt/64QGsea8y36J6T0PXluR1LULCIuFcdWR3jcF0rROBMjEA+Ya87KyGoWyJSTR+SKEWtOcb2kbxivA938HW+9ApUxYboB8qy0dkdA1JFFACMyV0ufCJPz2L013WefYCUGG10tJl7liCn+SyvjLDbA5LMlB/dQqbU6kdIlROa80SpcSSab4cZTACZn39ip3CwWLdOy74gKqK54VHLC8hVJHzr3GjEIS5+Gfj/xM6tnHtKNprl12NCxOZU3KzDFjT21eY1HWcRWrCxLtXvkw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR11MB1288.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(346002)(376002)(366004)(71200400001)(110136005)(966005)(186003)(52536014)(8936002)(66476007)(66446008)(66946007)(55016002)(86362001)(76116006)(2906002)(26005)(66556008)(64756008)(9686003)(508600001)(8676002)(4326008)(83380400001)(7696005)(54906003)(5660300002)(53546011)(33656002)(6506007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?/LiYdflM7tLqNVVyEzqHB5n5Xc1guZP2jNXbnRmj9JRcu8nz6DdsA1OQIFiH?= =?us-ascii?Q?X1uZo0mz1Jzvr7gn9RTY+3dT5+tPbGkOAIt6gqDwLUMDwVx4CUcJ+yhgEO9Y?= =?us-ascii?Q?xbW15wErfT0VtCRisA2Y2c/Pfuk3/cERPcyt6RZSklthciIG/eTc5AEvE0Tc?= =?us-ascii?Q?mEXWxyD5hZ8+jNzkoCrC8fR3tgJyUJYSiup4+3xb++aIWxwGeMs3GDpNrCbf?= =?us-ascii?Q?+4YsOFhpo2Diodv4Igyi4oyC/SmXJcH+TyGNbBtD5MrgrqFyrSBMmvyjWRER?= =?us-ascii?Q?UFpf1lnv+rXMwko3X2Z1yoPFgHj5CaVG8W33kcllZTIQMy3N73U28XnLxMC5?= =?us-ascii?Q?/yLDJJIKV86BvYJoVOgbCS2daYlSnP8GLKWNlfnHIll3hbuiO1kQwzduTvTy?= =?us-ascii?Q?TsxwFYNE66zISEhRO778iFN8TB/L4GysNBKwwugwOdkhIhypWRuLMb6THqux?= =?us-ascii?Q?AFcPNOqrY0+5lZXf9h185+pw0oWlL2AgWe9U2yyiF8BOfqCgILg0SU8uaefA?= =?us-ascii?Q?5xZjGO9GX894EUIsTu89211r8mdmAFeJ/q/D1wlnes2tUPeSj++jal5oFaY4?= =?us-ascii?Q?HvYs5Q1LzJUNDjW+xG5linUCW7Tjq5EziIW4HNwFe/f02nQekAvWOQyIAsV+?= =?us-ascii?Q?8/T4xlBVNTlxIAIkD2EhtpCMCNd6oQ4Q18j6uhLa0Rsb+TBtYBtjuaIQHDoP?= =?us-ascii?Q?iOBfC9lqEHU1+b3WkYvJXI/kvD10YMOyk1mlcuCLfYkKGGq/FumeUrfsrgmi?= =?us-ascii?Q?iJP9AxdNi/MMZIUeaC+y7L3IGAmmb4MJO3s090jAUlmNFUqbOQMn5VMVd3R2?= =?us-ascii?Q?cY0pU+4gx1XJ+K/VKfT7cO4ApUOY89zKHjCmKeDSiScgO5UKw3EfYks7XUlX?= =?us-ascii?Q?3yzovmfFhQwnOyBARs2+ismwMvnQPcRQY82++d6HSGC9ICnCyFpp1gWEJxXZ?= =?us-ascii?Q?DzTSAp0LYDwFTz/lx9MaX1YyzZbeWw1nICN456JV/94=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR11MB1288.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0905dafa-6851-46ea-3841-08d89d118e67 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Dec 2020 13:43:20.1089 (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: iqmD9kUWNF6G7J2KAaVwfqfvYKO0lMYO7iSRMUE2csWzyVz9UjwcGFsasLEoFP/Yrm8WGgBDk6II7JeIuEnY/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2117 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Maybe you can upload the content to https://edk2.groups.io/g/devel/files/De= signs, where we hold the design review ppt, etc. I assume we want to discuss below two APIs implementation, right? 1) RngLib 2) EFI_RNG_PROTOCOL Thank you Yao Jiewen > -----Original Message----- > From: rfc@edk2.groups.io On Behalf Of Leif Lindholm > Sent: Thursday, December 10, 2020 8:52 PM > To: Sami Mujawar > Cc: devel@edk2.groups.io; Samer El-Haj-Mahmoud Mahmoud@arm.com>; Ard Biesheuvel ; > rebecca@nuviainc.com; rfc@edk2.groups.io; Yao, Jiewen > ; Kumar, Rahul1 ; nd > > Subject: Re: [edk2-rfc] [edk2-devel] RFC: Adding support for ARM (RNDR e= tc.) > to RngDxe >=20 > Hi Sami, >=20 > JPGs work, but preferably published in a location where they're > unlikely to be deleted, and posted as URLs. >=20 > https://app.diagrams.net/ doesn't require a licensed application to > edit, and can be "saved to github" for example. >=20 > Please make sure to use the diagrams to support/clarify the mailing > list conversation rather than replacing it. >=20 > Best Regards, >=20 > Leif >=20 > On Thu, Dec 10, 2020 at 11:26:26 +0000, Sami Mujawar wrote: > > Hi All, > > > > I am working on the TRNG FW API interface and will share more details = for > the discussion soon. > > We had some thoughts about streamlining the RngDxe implementations > > and would like to share some diagrams for the discussion. > > My diagrams are in Visio that I can export as JPG images. However, I > > am open to switching to any other suggested tool. > > > > Hi Leif, > > > > Can you suggest on how we can collaborate to share diagrams/documents, > please? > > > > Regards, > > > > Sami Mujawar > > > > From: devel@edk2.groups.io On Behalf Of Samer > El-Haj-Mahmoud via groups.io > > Sent: 09 December 2020 04:48 AM > > To: devel@edk2.groups.io > > Cc: rfc@edk2.groups.io; Jiewen Yao ; Rahul Kumar > > > Subject: Re: [edk2-devel] RFC: Adding support for ARM (RNDR etc.) to > RngDxe > > > > There is also the TRNG FW API, which is an architected SMC firmware > interface: > > > > https://developer.arm.com/documentation/den0098/latest/ > > > > ________________________________ > > From: devel@edk2.groups.io > > on behalf of > Rebecca Cran via groups.io > >> > > Sent: Tuesday, December 8, 2020, 11:33 PM > > To: devel@edk2.groups.io > > Cc: rfc@edk2.groups.io; Jiewen Yao; Rahul > Kumar > > Subject: [edk2-devel] RFC: Adding support for ARM (RNDR etc.) to RngDx= e > > > > Currently, RngDxe in SecurityPkg only supports Intel, with RdRand supp= ort. > > > > > > This RFC is to start a discussion about adding support for ARM. > > > > > > I have a Git branch with support for the optional ARMv8.5 RNDR > > instruction at https://github.com/bcran/edk2/commits/bcran-rndr which > > moves the existing Intel support into a Rand directory, and adds code = to > > support RNDR in a new AArch64 directory. > > > > There are other RNG implementations available for ARM, including > > platform-specific approaches on Graviton > > (https://lwn.net/Articles/790304/) and other platforms, so a more > > thorough rearchitecting/redesign may be desired. > > > > > > -- > > Rebecca Cran > > > > > > > > > > > > > > IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended rec= ipient, > please notify the sender immediately and do not disclose the contents to > any other person, use it for any purpose, or store or copy the informati= on in > any medium. Thank you. > > >=20 >=20 >=20 >=20