From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (EUR03-VE1-obe.outbound.protection.outlook.com [40.107.5.65]) by mx.groups.io with SMTP id smtpd.web11.8743.1637062413834500406 for ; Tue, 16 Nov 2021 03:33:34 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=UFZB/BJu; spf=pass (domain: arm.com, ip: 40.107.5.65, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jk475Oowf/SCipQK7UFMhsxB0WS9mc3MIGhYhEYF+e8=; b=UFZB/BJu83L+o81WW007rSQKU8lsObn2gBA7f13frNC4KNVuyDDsvQpRphBqiPIyifGQbSr/Z9U1N4DpEp4NznHhaIq0+5Fl8D+DxVsVEDA/H8rBtb0gok0s4vtg5v2f91z/NdtKNvSojSZFmAJdvkC3PF4WvyGuHjkUmruKjcw= Received: from AM4PR0202CA0001.eurprd02.prod.outlook.com (2603:10a6:200:89::11) by AM0PR08MB5364.eurprd08.prod.outlook.com (2603:10a6:208:186::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Tue, 16 Nov 2021 11:33:29 +0000 Received: from VE1EUR03FT049.eop-EUR03.prod.protection.outlook.com (2603:10a6:200:89:cafe::9d) by AM4PR0202CA0001.outlook.office365.com (2603:10a6:200:89::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.19 via Frontend Transport; Tue, 16 Nov 2021 11:33:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT049.mail.protection.outlook.com (10.152.19.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.20 via Frontend Transport; Tue, 16 Nov 2021 11:33:28 +0000 Received: ("Tessian outbound dbb52aec1fa6:v110"); Tue, 16 Nov 2021 11:33:28 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3e10d90032aaf4bb X-CR-MTA-TID: 64aa7808 Received: from 95d02e50afdb.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6AE20456-8100-4EA7-AE12-E1ED73CB9DCC.1; Tue, 16 Nov 2021 11:33:12 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 95d02e50afdb.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 16 Nov 2021 11:33:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZIRa5g8TU1QXlLkIGK9bBygJfiNmEp+6BnzsJnuWT1/G2cT5DrbXvcSF2Vy8Bfq8bpP2wcHaiHSDcAHgv64ytsPme0wvSu7dJVwRxtLkATkl/s0J2bWiUekTRVOdErU2LfzjPUkfx0nqxFlgg6pQZIzI7ACORTxCOKhY9lAPmxItaq0kAUTSqyRv7rm3u5NwdIeYIFvW63wZtH7/F05oJf5JGH2TdofhnpdZ2K8tqfxCKvwaCQRzgRiRfy+P6BdzyYlLwA3K+N1O0UpwWkeVDrfYoJ1oK78T4q7TgVj46mWotPCnOzpx9i8qVmpxEwL3MBucItIrxIeAHoquEbqnrg== 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=jk475Oowf/SCipQK7UFMhsxB0WS9mc3MIGhYhEYF+e8=; b=O09YTCHI0GurKKIPkh/txov4G2OmIneWXZSNYCqaK2eWbRPM09asLLK8NjRMukhyVrd4hVKWwMdslOxwUTc4q3k7cglJsMVn//cMRV05s4xCROZbEkszZII8vw1p6cqWb6Dmln/CPiHqRr3KxHG9Zh4swd1VwyIDpcMjFziTZafTjD5KDmnZvqDCTgRNdGPqPNHgoppsi8YD+ct0xOklGwRtBdJFBRisnwew4nsaSjX0OyJMeylvbRK0H2dKIhIQcNMeUpPECI/X1BhNeTE+8YLZrX90kfjt6zpjqKKDJ8scHGr2SvqE6Kw/U3eLF6oZ0hAGgGzcbD0lILAQDayo+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jk475Oowf/SCipQK7UFMhsxB0WS9mc3MIGhYhEYF+e8=; b=UFZB/BJu83L+o81WW007rSQKU8lsObn2gBA7f13frNC4KNVuyDDsvQpRphBqiPIyifGQbSr/Z9U1N4DpEp4NznHhaIq0+5Fl8D+DxVsVEDA/H8rBtb0gok0s4vtg5v2f91z/NdtKNvSojSZFmAJdvkC3PF4WvyGuHjkUmruKjcw= Received: from AS9PR06CA0327.eurprd06.prod.outlook.com (2603:10a6:20b:45b::22) by AM0PR08MB5186.eurprd08.prod.outlook.com (2603:10a6:208:156::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Tue, 16 Nov 2021 11:33:06 +0000 Received: from VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45b:cafe::30) by AS9PR06CA0327.outlook.office365.com (2603:10a6:20b:45b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.26 via Frontend Transport; Tue, 16 Nov 2021 11:33:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT032.mail.protection.outlook.com (10.152.18.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4690.20 via Frontend Transport; Tue, 16 Nov 2021 11:33:06 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 16 Nov 2021 11:32:52 +0000 Received: from E114225.Arm.com (10.1.196.43) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2308.20 via Frontend Transport; Tue, 16 Nov 2021 11:32:51 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , , , , Subject: [PATCH v2 1/8] MdePkg: Definition for TRNG library class interface Date: Tue, 16 Nov 2021 11:32:53 +0000 Message-ID: <20211116113301.31088-2-sami.mujawar@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20211116113301.31088-1-sami.mujawar@arm.com> References: <20211116113301.31088-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4e6975b2-6ab9-40e6-2063-08d9a8f4e944 X-MS-TrafficTypeDiagnostic: AM0PR08MB5186:|AM0PR08MB5364: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:5516;OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: P/ohJ43RcgtytqtvSe5NEd18CpzoRmkQxD+EKj4U+Nk2wv/Rn6JDSk/YCmo+HoVg7SODLbtBsyqOOabRP/XnR7I1TPH1+MEmk4WgqHQrgKpwTyxSbpGENEAehgocv/ha8asrkW6uqVgc3c+QiCOLNHa+eq5tKyGCL1XMDNRaxIMxfd6CjbqTnCuK+2SLZE3XAjYwGMe9AEDEbRsw9hhFyFre2K3dF9AxZmIQYDefx8Mp+zhscxztMMGZBxqcZC24KcisVg7ATtvsdE9n6cTPIR6BiOL+tKpCvmdhyc0t2zW7DnjyL7exQbv7gMig4OlaCRs7xG/MKkzqn4Ei+sRYf5ULA+NjHXIhPtkIg7ccjNzLkQ912EruV+xI9eDNnl4/fIDETDcFtYDKHWyouJFIJOSdCH38nZ8d6XZRRqIDRQMvs0iwj5ZOuGqULnAm04RfmoocO8Bm9p+3tVMr/Exb61hd4JhEELGNqipJuKaO2THvV7A7UyaFue3xV42bKRZ0mntAkfZ64wdHPOd+3faf7o1tAMMswYUOKj8DNFr4M8vu8szKffusvi29vqt0Fec472j42ySeypSn9WM+359ByPrDETaiPKAriQDC5P/OGgUj16cV7AD7aJGvaNjOf5X4gEBIEcjHbrt7gqy+u1pnKWe/f4BfyA52fJ/cBKluMOHsDYoey24ncuFa6agbcCfP6Y9DkHK+olHp6gvmff7vgaoajb/ZUuOgakJEDzT1+ePKnVX/j76LLp9vmqLozUeLk/bF/5ySds8SiPx6O5YE+Lv7r2mwDrbB4E0yWrB/0jbmXqt4AVrCHI9WdnDNS3Lpom8xkAjFz9CijVLQspUY3bWeOthITEVFCBrLueZfGVY= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(36840700001)(46966006)(356005)(36860700001)(8936002)(336012)(81166007)(5660300002)(1076003)(186003)(70586007)(70206006)(7696005)(7416002)(26005)(36756003)(82310400003)(44832011)(6916009)(86362001)(316002)(2906002)(47076005)(83380400001)(54906003)(4326008)(426003)(508600001)(8676002)(2616005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5186 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT049.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 7ab14152-801a-4c99-be84-08d9a8f4dbf0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: litCKJS/9QCdRuW26bVtZaH9RPgn/NABMA1wV/MozMXbWEEywyeC9ZNqH5IIlHW8qTn2+tCFOccaTDtiUKUQsyyOxWwO4CptLSyQcAOL3FGcUjDptwUC6Ap4bJ8ghf+pSg63PXVROBz4lanQrc0/mPg+6kYYAj6aD3gTtSislOUJ8WXx/sTtW+5uY4g5hcrRYy20L5+lGu505/QHfYsrS1BRTty3gVZFQvJkxUynWLrTtoQzTohFoAXHF/ClLiHpzksczRUTlhUiY7euePwYoDU62por/nxfyGhkcquPTHozcfMj8pOREbzprYiaF6Yg+/OjrPvaghSrbZIf+syg46HW+dlZdWBe1yizobksaxLvSBKuofu6QL+qBlG0RjIsx14UCryUnTNq0PZxw8H1Tqm99VtyWgonXQ6SZEjZR/vB1eKxuvlIwXx8A92F8rrOQA34YkB6gQVrOMGCJaCw4HuTS6lftyXwGvcEPLzdWiHM+GPHCU/ELrUTUnPaIfoWolTpFdDmabpLvNbFrzE6D6Rzi6Qlk8tMDo9EKjonSBriMN+vDly2gPVYxh8A/07nCGlHGhpe6Iq6Z6sGwvW9qmcZJrMe7p+jQY2pp/TTY0d0WpgFLGTSz1W6mcgTMeLP0sh/hqCkOyGexb20Wm7+iibosWZMqmQr0NbclGygfm172HQlg8FgQ0GKKyTaR6Oq39gwjQ+EtlBW4VDh1OBlx2miBkrcEdKt9pqc6ShKJqqAXubWno+3rzfpitx5zvFqV1lvZPQVByKTCzQkgdv1RXhIGTgfSWrNrhcgGNKOLYUJXXOsMqw31bVbfDVaVQL4 X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(46966006)(36840700001)(81166007)(4326008)(47076005)(2906002)(6916009)(7696005)(70586007)(186003)(336012)(36860700001)(508600001)(83380400001)(44832011)(426003)(2616005)(8676002)(36756003)(316002)(54906003)(8936002)(70206006)(86362001)(26005)(5660300002)(1076003)(82310400003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2021 11:33:28.7209 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4e6975b2-6ab9-40e6-2063-08d9a8f4e944 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT049.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5364 Content-Type: text/plain Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) The NIST Special Publications 800-90A, 800-90B and 800-90C provide recommendations for random number generation. The NIST 800-90C, Recommendation for Random Bit Generator (RBG) Constructions, defines the GetEntropy() interface that is used to access the entropy source. The GetEntropy() interface is further used by Deterministic Random Bit Generators (DRBG) to generate random numbers. The True Random Number Generator (TRNG) library defines an interface to access the entropy source on a platform. Some platforms/architectures may provide access to the entropy using a firmware interface. In such cases the TRNG library shall be used to provide an abstraction. Signed-off-by: Sami Mujawar --- Notes: v2: - MdePkg\Include\Library\TrngLib.h is base type [LIMING] library. It can use RETURN_STATUS instead of EFI_STATUS. Then, it doesn't need to include - Replaced EFI_STATUS with RETURN_STATUS and [SAMI] removed include of /UefiBaseType.h. - MdePkg\Include\Library\TrngLib.h API parameter [LIMING] doesn't require CONST. CONST means the value specified by the input pointer will not be changed in API implementation. - Removed the use of constant pointers in the [SAMI] TRNG API. MdePkg/Include/Library/TrngLib.h | 121 ++++++++++++++++++++ MdePkg/MdePkg.dec | 7 +- 2 files changed, 127 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/Library/TrngLib.h b/MdePkg/Include/Library/TrngLib.h new file mode 100644 index 0000000000000000000000000000000000000000..082c83d0a6c67aa88c789a35b8f2f73ba7cf46cd --- /dev/null +++ b/MdePkg/Include/Library/TrngLib.h @@ -0,0 +1,121 @@ +/** @file + TRNG interface library definitions. + + Copyright (c) 2021, Arm Limited. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + + @par Reference(s): + - [1] Arm True Random Number Generator Firmware, Interface 1.0, + Platform Design Document. + (https://developer.arm.com/documentation/den0098/latest/) + - [2] NIST Special Publication 800-90A Revision 1, June 2015, Recommendation + for Random Number Generation Using Deterministic Random Bit Generators. + (https://csrc.nist.gov/publications/detail/sp/800-90a/rev-1/final) + - [3] NIST Special Publication 800-90B, Recommendation for the Entropy + Sources Used for Random Bit Generation. + (https://csrc.nist.gov/publications/detail/sp/800-90b/final) + - [4] (Second Draft) NIST Special Publication 800-90C, Recommendation for + Random Bit Generator (RBG) Constructions. + (https://csrc.nist.gov/publications/detail/sp/800-90c/draft) + + @par Glossary: + - TRNG - True Random Number Generator +**/ +#ifndef TRNG_LIB_H_ +#define TRNG_LIB_H_ + +/** Get the version of the TRNG backend. + + A TRNG may be implemented by the system firmware, in which case this + function shall return the version of the TRNG backend. + The implementation must return NOT_SUPPORTED if a Back end is not present. + + @param [out] MajorRevision Major revision. + @param [out] MinorRevision Minor revision. + + @retval RETURN_SUCCESS The function completed successfully. + @retval RETURN_INVALID_PARAMETER Invalid parameter. + @retval RETURN_UNSUPPORTED Backend not present. +**/ +RETURN_STATUS +EFIAPI +GetTrngVersion ( + OUT UINT16 *MajorRevision, + OUT UINT16 *MinorRevision + ); + +/** Get the UUID of the TRNG backend. + + A TRNG may be implemented by the system firmware, in which case this + function shall return the UUID of the TRNG backend. + Returning the TRNG UUID is optional and if not implemented, RETURN_UNSUPPORTED + shall be returned. + + Note: The caller must not rely on the returned UUID as a trustworthy TRNG + Back end identity + + @param [out] Guid UUID of the TRNG backend. + + @retval RETURN_SUCCESS The function completed successfully. + @retval RETURN_INVALID_PARAMETER Invalid parameter. + @retval RETURN_UNSUPPORTED Function not implemented. +**/ +RETURN_STATUS +EFIAPI +GetTrngUuid ( + OUT GUID *Guid + ); + +/** Returns maximum number of entropy bits that can be returned in a single + call. + + @return Returns the maximum number of Entropy bits that can be returned + in a single call to GetEntropy(). + If this feature is not supported MAX_UINTN is returned. +**/ +UINTN +EFIAPI +GetTrngMaxSupportedEntropyBits ( + VOID + ); + +/** Returns N bits of conditioned entropy. + + See [3] Section 2.3.1 GetEntropy: An Interface to the Entropy Source + GetEntropy + Input: + bits_of_entropy: the requested amount of entropy + Output: + entropy_bitstring: The string that provides the requested entropy. + status: A Boolean value that is TRUE if the request has been satisfied, + and is FALSE otherwise. + + Note: In this implementation this function returns a status code instead + of a boolean value. + This is also compatible with the definition of Get_Entropy, see [4] + Section 7.4 Entropy Source Calls. + (status, entropy_bitstring) = Get_Entropy ( + requested_entropy, + max_length + ) + + @param [in] EntropyBits Number of entropy bits requested. + @param [out] Buffer Buffer to return the entropy bits. + @param [in] Buffersize Size of the Buffer in bytes. + + @retval RETURN_SUCCESS The function completed successfully. + @retval RETURN_INVALID_PARAMETER Invalid parameter. + @retval RETURN_UNSUPPORTED Function not implemented. + @retval RETURN_BAD_BUFFER_SIZE Buffer size is too small. + @retval RETURN_NOT_READY No Entropy available. +**/ +RETURN_STATUS +EFIAPI +GetEntropy ( + IN CONST UINTN EntropyBits, + OUT UINT8 *Buffer, + IN CONST UINTN BufferSize + ); + +#endif // TRNG_LIB_H_ diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 8b18415b107a03b11dc984341bb788cf9cd6e0ea..e612b5c57429d1af591de8e111f328e19a030ca0 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -7,6 +7,7 @@ # Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
# (C) Copyright 2016 - 2021 Hewlett Packard Enterprise Development LP
+# Copyright (c) 2021, Arm Limited. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -267,11 +268,15 @@ [LibraryClasses] # RegisterFilterLib|Include/Library/RegisterFilterLib.h -[LibraryClasses.IA32, LibraryClasses.X64, LibraryClasses.AARCH64] +[LibraryClasses.IA32, LibraryClasses.X64, LibraryClasses.AARCH64, LibraryClasses.ARM] ## @libraryclass Provides services to generate random number. # RngLib|Include/Library/RngLib.h + ## @libraryclass Provides services to generate Entropy using a TRNG. + # + TrngLib|Include/Library/TrngLib.h + [LibraryClasses.IA32, LibraryClasses.X64] ## @libraryclass Abstracts both S/W SMI generation and detection. ## -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'