]> git.proxmox.com Git - mirror_edk2.git/commit - SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c
SecurityPkg/RngDxe: Remove ArchGetSupportedRngAlgorithms()
authorPierre Gondois <Pierre.Gondois@arm.com>
Fri, 28 Oct 2022 15:32:52 +0000 (17:32 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 6 Nov 2022 16:32:28 +0000 (16:32 +0000)
commit922bf317f1731554b3e77a0a48033a38fdc75a77
tree932cdf52bbf4f13c171ab2da192ce54f62ba1254
parentaade3b93feddfb538e1f93207affb3f0d9cef5e8
SecurityPkg/RngDxe: Remove ArchGetSupportedRngAlgorithms()

RngGetInfo() is one of the 2 functions of the EFI_RNG_PROTOCOL.
RngGetInfo() is currently a mere wrapper around
ArchGetSupportedRngAlgorithms() which is implemented differently
depending on the architecture used.

RngGetInfo() does nothing more than calling
ArchGetSupportedRngAlgorithms(). So remove it, and let RngGetInfo()
be implemented differently according to the architecture.

This follows the implementation of the other function of the
EFI_RNG_PROTOCOL, RngGetRNG().

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Acked-by: Jiewen Yao <jiewen.yao@intel.com>
SecurityPkg/RandomNumberGenerator/RngDxe/AArch64/RngDxe.c
SecurityPkg/RandomNumberGenerator/RngDxe/Rand/RngDxe.c
SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c
SecurityPkg/RandomNumberGenerator/RngDxe/RngDxeInternals.h