]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg/RngDxe: Add Arm support of RngDxe
authorPierre Gondois <pierre.gondois@arm.com>
Fri, 28 Oct 2022 15:32:58 +0000 (17:32 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 6 Nov 2022 16:32:28 +0000 (16:32 +0000)
commit9eb5ccda505917f6ee80284ed6fb5b51aa7152f9
treebbec75d028c02e283b0dcbaa46326344ac7849ba
parentff29cdb968a1a4d7bd7ab4eba2597a77c0748dc2
SecurityPkg/RngDxe: Add Arm support of RngDxe

Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668)

Add RngDxe support for Arm. This implementation uses the ArmTrngLib
to support the RawAlgorithm and doens't support the RNDR instruction.

To re-use the RngGetRNG(), RngGetInfo() and FreeAvailableAlgorithms()
functions, create Arm/AArch64 files which implement the arch specific
function GetAvailableAlgorithms(). Indeed, FEAT_RNG instruction is not
supported on Arm.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Acked-by: Jiewen Yao <jiewen.yao@intel.com>
SecurityPkg/RandomNumberGenerator/RngDxe/AArch64/AArch64Algo.c [new file with mode: 0644]
SecurityPkg/RandomNumberGenerator/RngDxe/Arm/ArmAlgo.c [new file with mode: 0644]
SecurityPkg/RandomNumberGenerator/RngDxe/ArmRngDxe.c
SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
SecurityPkg/SecurityPkg.dsc