]> git.proxmox.com Git - mirror_edk2.git/commit - SecurityPkg/RandomNumberGenerator/RngDxe/RdRand.c
SecurityPkg: Integrate new RngLib into RngDxe
authorThomas Palmer <thomas.palmer@hpe.com>
Fri, 9 Oct 2015 06:03:26 +0000 (06:03 +0000)
committerqlong <qlong@Edk2>
Fri, 9 Oct 2015 06:03:26 +0000 (06:03 +0000)
commit3b60842ce780b3c37e4a0b87705e44c5339799df
tree9c230aad5cf3ab2e8f26f1a1b136535613f3b9d9
parentc8b6f16d7d3b0c225cf34bd1c750373c9b251284
SecurityPkg: Integrate new RngLib into RngDxe

Use the new RngLib to provide the IA32/X64 random data for RngDxe.
Remove x86 specific functions from RdRand files.
Simplify RngDxe by using WriteUnaligned64 for all platforms.
Use GetRandomNumber128 in RngDxe to leverage 128 bit support provided
by some HW RNG devices.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com>
Reviewed-by: Samer El-Haj-Mahmoud <elhaj@hpe.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Qin Long <qin.long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18591 6f19259b-4bc3-4df7-8a09-765794883524
SecurityPkg/RandomNumberGenerator/RngDxe/RdRand.c
SecurityPkg/RandomNumberGenerator/RngDxe/RdRand.h
SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c
SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
SecurityPkg/SecurityPkg.dsc