From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (EUR01-DB5-obe.outbound.protection.outlook.com [40.107.15.45]) by mx.groups.io with SMTP id smtpd.web11.8737.1637062403022671247 for ; Tue, 16 Nov 2021 03:33:24 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=fXnukUNc; spf=pass (domain: arm.com, ip: 40.107.15.45, 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=Q4q8yjEGSx6qCCv7fiuKVa6P3dfrCMvywSi5q4RLa88=; b=fXnukUNcCtWSjAAtvd3O2O6eOacHBRBZCQ40iOSe2QoKUJfoS+ldn7RhkEjrNU0UTHi5gW1fZFyT+//S3ZUcAQ0WKn8nIygWO+AlLfLSWh2iNElsd29yon2DgYHzMqOoAZ6n0IZSHqIs8QYxIO82JfaHUE8FOcI75/l/675h80U= Received: from AM6PR04CA0062.eurprd04.prod.outlook.com (2603:10a6:20b:f0::39) by HE1PR08MB2891.eurprd08.prod.outlook.com (2603:10a6:7:2b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.27; Tue, 16 Nov 2021 11:33:17 +0000 Received: from AM5EUR03FT033.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:f0:cafe::a6) by AM6PR04CA0062.outlook.office365.com (2603:10a6:20b:f0::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16 via Frontend Transport; Tue, 16 Nov 2021 11:33:17 +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 AM5EUR03FT033.mail.protection.outlook.com (10.152.16.99) 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:16 +0000 Received: ("Tessian outbound de6049708a0a:v110"); Tue, 16 Nov 2021 11:33:16 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 85250ccf2b949d0c X-CR-MTA-TID: 64aa7808 Received: from 3d5122ab076a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1CB0CB20-D0A6-4A00-95CC-F1BBEE25CB41.1; Tue, 16 Nov 2021 11:33:10 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3d5122ab076a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 16 Nov 2021 11:33:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fmZIu8W9CAsGCg7hMx5DOXrJnDEuKxF22BNPl5KM9RPKjWD9IGy8pqziiYCcVquLg1VD8KSaW9JGikpHZ6FztNsleeChj6zNgtnZNQ5NyTYe1V5sAF0dI2Pme77wi8ZqXO/1kF5Wvo7xIzJfY0mEw/F8MeEguSf8RJ/12bq6tPtStwKhoeZpI7mJ4X7qge0a8GWnNbMRVNjXXMUgaaGSF9F0rTLTPyY6V3zW0HzYMijSk+gVtJm0frhUbmLk2EwPVgeIi/TPJq13nqHIlojSDVUVd+D3Q3Mu0KIe3jgZpEQthSAFRrsmKgN57SkdPzW0rhF0AvNCD63LYOJzrQHukw== 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=Q4q8yjEGSx6qCCv7fiuKVa6P3dfrCMvywSi5q4RLa88=; b=VirOfYlJQ5oGOWgTspvMvncv/0aC/zYSmiwXiDE0lEhJzsA/qr+8nvGzq7v0kbIpm5z3QsbKrxe8ideZX4vrgfWeUHLUKHlDvC2gy03MSQk74M1NIPf3zWrahSBysVS1A3o8AcqOF50iaukZXCu166c5wJQj8697errEk0Glbmgq3boi9+CXrBf0a9aEjBNw9jai0AjWTVw4Y2xZuVZsgCZHkrzsE6QFENBVpxg9NA361/AXUrhOD8fNEpWLtlO/DkNSkB3iNkJ3tuMrci5BE2HGHdsgyjpnyuUhSFeLhR4FejXTQ3gWg9sS9Z+oQm4CqvoECDZMe7XRnUwIFzGB/A== 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=Q4q8yjEGSx6qCCv7fiuKVa6P3dfrCMvywSi5q4RLa88=; b=fXnukUNcCtWSjAAtvd3O2O6eOacHBRBZCQ40iOSe2QoKUJfoS+ldn7RhkEjrNU0UTHi5gW1fZFyT+//S3ZUcAQ0WKn8nIygWO+AlLfLSWh2iNElsd29yon2DgYHzMqOoAZ6n0IZSHqIs8QYxIO82JfaHUE8FOcI75/l/675h80U= Received: from AS9PR05CA0048.eurprd05.prod.outlook.com (2603:10a6:20b:489::14) by AM0PR08MB3682.eurprd08.prod.outlook.com (2603:10a6:208:fb::27) 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:09 +0000 Received: from VE1EUR03FT029.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:489:cafe::46) by AS9PR05CA0048.outlook.office365.com (2603:10a6:20b:489::14) 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:08 +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 VE1EUR03FT029.mail.protection.outlook.com (10.152.18.107) 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:08 +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:54 +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:54 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , , , , Subject: [PATCH v2 4/8] MdePkg: Add NULL instance of TRNG Library Date: Tue, 16 Nov 2021 11:32:56 +0000 Message-ID: <20211116113301.31088-5-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: 44e6d380-a77b-4c2a-dc8d-08d9a8f4e220 X-MS-TrafficTypeDiagnostic: AM0PR08MB3682:|HE1PR08MB2891: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:6430;OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: +xpsZDQXqJJ7KNsXWqEXpvA+MsEXVZsBDCq73lykBPmKb2TIMJwIDdmKm+xaqTXwK3nlWxbyu3q0wekU0DNQGGdOvJiqozMx7E+8XVjpNO3Q5FqcMHO3V3lvYEAuBJMFCqtLDxegmmOs5fTKdvkUM8pThIgeZ3mgzqVfQeK52hv2Vg9Fd9UT5uqO3NmQqYZMCDip9NZ9ffP7N5fPCiosl1U05Idlg0+3BBOFy7r/hdewfX8quRt2xn5olRjhVXN7AHHbEIXZDF1DRt5LLrs2BLAxsiZqdEmVZyR98SFJrWqNOTieyVyRRJlDei7mcd2/oudNzamo1hkWlqzTVTwVJ8YSWwGUJ93cEKvX+TNDn7WgutKfWmYtmwlsiDpxWRH5lpssx6hQKX2cALz05YtfqnCgEuSKe2GUnstqd2EA/v0NdDgNS++dGb7UMQ0U5YJ15uwGFbc7+VRA3dfqYlHaUykJSqDO/s1BQYiPoJM49f2vhSlQnBQur2IAzoCA8oDgBB+OB4reewDhHJUWIldXAFcyirp1F9XcKfYxZiWeEZfsVGXwtvUJe2IRTm2o/15WV/eT+ONOLeI8OTlMvNz1K9Sakeesq0W9BsPLHpj+4zIEcpAihjMuilVAswZnTHAY8qHhWhKHavdWbSFqSrmF8wNKaMRqjff225jh2o8v2K/efHlicig9lOzjxRzP0FkcvS9vjnI6MyyXT1n0/1ywjRykTRJ6WMvGkHUa+XzPm8oi8xHFeip7dH4NK9ruXGZoFVHHGmHtYu0Y+XPQ8zb4e0CgGulivzQJvfFL2EoM93bQn1K0JtnKVOaih6fr61P0 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)(70206006)(8936002)(36756003)(316002)(7416002)(5660300002)(54906003)(82310400003)(8676002)(86362001)(26005)(6916009)(7696005)(1076003)(2906002)(36860700001)(81166007)(186003)(4326008)(47076005)(426003)(44832011)(2616005)(356005)(83380400001)(508600001)(336012)(70586007)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3682 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT033.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 97e2470d-d9f9-4fb1-1078-08d9a8f4dd3a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Se6M+47uuXK7Kjtlhy7KjiFkynYo+TppXxPtDFJGYk4jS6zUQm7yUtqSCjiS7DFyIWmjngE2CNPstbQuBTp9WfwzTPeKGltVDoV18jlStT8Y6jCU0zA4vZgeenHVMwYVMI/mTUm1tV8cZCOZ2r8/swa6oandD6dndR/GKgqv+cveVJaBtTwtLvOlZiYZmG5jflTmBqSc+pjM4hhzWFySHL25RtL8Mp6gRaWJ5IyY7k8pHKdmb4+FErkpX5ZiSZ6JEDM9cltgt69b8o+/Ty2Uj34Met+Yp+O9XrQgAfy7bUGndbt3ka6QxkT843gwn3vRj+VBRXZTlol+kPENuyarWo+x36llo0rEXghYMYgVFO5P5E19dFJFwIc3Cmef+4IN3egsS4JjsrvO9mN3J+zmevkK8Pyd7FT+6wEDhzJ+5eJcrfF7HJouf2s5Q2AnTjW/Vv9hosurM0DL+E//oARXm1WdZKzv2sTyJN60vKxP8Htaw3njPWk9rG9EfFq95B9CwkEQDS1nL5ocKogkXMm/ntzD25WDc8DVAQzk9WvvyiKhAq/nTzMwxA10wYtkAXHaFG0K0QmSadVoGEQOohLA71wX73cDFuZlcpZd1bqdDJ3AnXeTdS3FmX76oeOfC64c67Rsj0gCAfxlbOOD1iliSTz08AUkbM8sdIoOAR4piXctdLFPki2++Gpj/AI5rWqZeqbJgJwJMp+RniWaAxxoDwEZDJ6vsVx1juzRu2fXj4QZi41xsQBOJ2YyKurDkERBVPQKdviA40L3Mqh07JrRwxRh9NEcxFED/kc9Bd4Uits= 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)(36840700001)(46966006)(186003)(6916009)(4326008)(70206006)(336012)(44832011)(2616005)(81166007)(47076005)(26005)(86362001)(70586007)(1076003)(36860700001)(426003)(82310400003)(54906003)(36756003)(5660300002)(316002)(508600001)(8676002)(2906002)(7696005)(8936002)(83380400001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2021 11:33:16.8237 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 44e6d380-a77b-4c2a-dc8d-08d9a8f4e220 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: AM5EUR03FT033.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR08MB2891 Content-Type: text/plain Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) The True Random Number Generator (TRNG) library defines an interface to access the entropy source on a platform. On platforms that do not have access to an entropy source, a NULL instance of the TRNG library may be useful to satisfy the build dependency. Therefore, add a NULL instance of the TRNG library. 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. - Replaced EFI_STATUS with RETURN_STATUS. [SAMI] - 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/Library/BaseTrngLibNull/BaseTrngLibNull.c | 111 ++++++++++++++++++++ MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.inf | 30 ++++++ MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.uni | 12 +++ MdePkg/MdePkg.dsc | 1 + 4 files changed, 154 insertions(+) diff --git a/MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.c b/MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.c new file mode 100644 index 0000000000000000000000000000000000000000..406a1e8587ccfb0cd903bf7a3794f16627eb0a84 --- /dev/null +++ b/MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.c @@ -0,0 +1,111 @@ +/** @file + Null version of TRNG (True Random Number Generator) services. + + Copyright (c) 2021, Arm Limited. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + + @par Glossary: + - TRNG - True Random Number Generator +**/ + +#include +#include + +/** Get the TRNG version. + + A TRNG may be implemented by the system firmware, in which case this + function shall return the version information for the TRNG implementation. + Returning version information is optional and if not implemented, + RETURN_UNSUPPORTED shall be returned. + + @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 Function not implemented. +**/ +RETURN_STATUS +EFIAPI +GetTrngVersion ( + OUT UINT16 *MajorRevision, + OUT UINT16 *MinorRevision + ) +{ + ASSERT (FALSE); + return RETURN_UNSUPPORTED; +} + +/** 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 for the TRNG implementation. + Returning the TRNG UUID is optional and if not implemented, RETURN_UNSUPPORTED + shall be returned. + + @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 + ) +{ + ASSERT (FALSE); + return RETURN_UNSUPPORTED; +} + +/** 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(). +**/ +UINTN +EFIAPI +GetTrngMaxSupportedEntropyBits ( + VOID + ) +{ + ASSERT (FALSE); + return 0; +} + +/** 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. + + @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 + ) +{ + ASSERT (FALSE); + return RETURN_UNSUPPORTED; +} diff --git a/MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.inf b/MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.inf new file mode 100644 index 0000000000000000000000000000000000000000..a700cf66f457f8898d5c51a7b9c0b3d7643ff7f9 --- /dev/null +++ b/MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.inf @@ -0,0 +1,30 @@ +## @file +# Null instance of TRNG (True Random Number Generator) Library. +# +# Copyright (c) 2021, Arm Limited. All rights reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION = 0x0001001B + BASE_NAME = BaseTrngLibNull + MODULE_UNI_FILE = BaseTrngLibNull.uni + FILE_GUID = ABDE1C87-4F50-4B82-9133-7A79E13F69AB + MODULE_TYPE = BASE + VERSION_STRING = 1.0 + LIBRARY_CLASS = TrngLib + +# +# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 +# + +[Sources] + BaseTrngLibNull.c + +[Packages] + MdePkg/MdePkg.dec + +[LibraryClasses] + DebugLib diff --git a/MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.uni b/MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.uni new file mode 100644 index 0000000000000000000000000000000000000000..1ec7def522e5975e9621eb280776251b1e5502ca --- /dev/null +++ b/MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.uni @@ -0,0 +1,12 @@ +// /** @file +// Null Instance of TRNG (True Random Number Generator) Library. +// +// Copyright (c) 2021, Arm Limited. All rights reserved.
+// +// SPDX-License-Identifier: BSD-2-Clause-Patent +// +// **/ + +#string STR_MODULE_ABSTRACT #language en-US "Null instance of TRNG Library" + +#string STR_MODULE_DESCRIPTION #language en-US "This library instance should be used with modules that inherit an (indirect) dependency on the TrngLib class, but never actually call TrngLib APIs for consuming Entropy." diff --git a/MdePkg/MdePkg.dsc b/MdePkg/MdePkg.dsc index a94959169b2fd9d4b5bf7ad903bf5ce06566c60e..f83753e132e9b9eb4152927fc182701fb1e70ca4 100644 --- a/MdePkg/MdePkg.dsc +++ b/MdePkg/MdePkg.dsc @@ -67,6 +67,7 @@ [Components] MdePkg/Library/DxeRngLib/DxeRngLib.inf MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf + MdePkg/Library/BaseTrngLibNull/BaseTrngLibNull.inf MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'