summaryrefslogtreecommitdiff
path: root/SecurityPkg
diff options
context:
space:
mode:
authorThomas Palmer <thomas.palmer@hpe.com>2015-11-16 06:52:09 +0000
committervanjeff <vanjeff@Edk2>2015-11-16 06:52:09 +0000
commit472fdf0e4c2da40120ec489f9899e3bb3934328b (patch)
treebb9b279b2b32c44af388ea6262280f352bbe48cf /SecurityPkg
parent9a7067a328dfc9fbcc00260de363a756accb0f24 (diff)
downloadedk2-platforms-472fdf0e4c2da40120ec489f9899e3bb3934328b.tar.xz
MdePkg: Create GetRandomNumber128 in RngLib
Declare GetRandomNumber128 in RngLib.h. Create GetRandomNumber128 in BaseRngLib, which is simply calling GetRandomNumber64 twice. A GetRandomNumber128 function allows platforms with 128bit HWRNGs to save on IO overhead that comes from having to prime the HWRNG device before each read operation. Using the HWRNG installed on the HP ProLiant m400 moonshot cartridge, this will save about 50ms per RAW Entropy operation as compared with calling GetRandomNumber64 twice. (Sync patch r18590 from main trunk.) 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/branches/UDK2015@18791 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg')
0 files changed, 0 insertions, 0 deletions