audk/MdePkg/Library/PeiRngLib/PeiRngLib.inf
Michael Kubacki bcab6996a0 MdePkg: Add PeiRngLib
REF:https://github.com/tianocore/edk2/issues/10529

Adds a new PEI library instance for RngLib that uses the RNG services
provided by the RNG PPI.

This library instance will add a DEPEX on gEfiRngPpiGuid on modules
it links against. It can be used to allow PEIMs to get RNG support
over a dynamic interface.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
2025-02-06 20:29:15 +00:00

42 lines
968 B
INI

## @file
# PPI-based Instance of RNG (Random Number Generator) Library.
#
# This library instance requires a RNG PPI to be produced so that the module may use
# it for RNG operations. A RNG PPI DEPEX will be placed on the module.
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
[Defines]
INF_VERSION = 0x0001001B
BASE_NAME = PeiRngLib
MODULE_UNI_FILE = PeiRngLib.uni
FILE_GUID = FF240232-C25D-4277-AB81-D6B0C51F2D25
VERSION_STRING = 1.0
MODULE_TYPE = PEIM
LIBRARY_CLASS = RngLib | PEIM
[Packages]
MdePkg/MdePkg.dec
[LibraryClasses]
BaseLib
DebugLib
PeiServicesLib
[Guids]
gEfiRngAlgorithmSp80090Ctr256Guid
gEfiRngAlgorithmSp80090Hash256Guid
gEfiRngAlgorithmSp80090Hmac256Guid
gEfiRngAlgorithmRaw
[Sources]
PeiRngLib.c
[Ppis]
gEfiRngPpiGuid ## CONSUMES
[Depex]
gEfiRngPpiGuid