UefiPayloadPkg: Add RNG support

Uses the RDRAND instruction if available and install EfiRngProtocol.
The protocol may be used by iPXE or the Linux kernel to gather entropy.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
This commit is contained in:
Patrick Rudolph
2020-05-11 14:31:44 +02:00
committed by Tim Crawford
parent 95c492569f
commit 69ae47ba5d
5 changed files with 260 additions and 0 deletions

View File

@@ -559,6 +559,14 @@
!endif
UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
#
# Random Number Generator
#
SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf {
<LibraryClasses>
RngLib|UefiPayloadPkg/Library/BaseRngLib/BaseRngLib.inf
}
#------------------------------
# Build the shell
#------------------------------