coreboot/src/arch
Robbie Zhang 18792314d7 arch/x86: add functions to generate random numbers
Using x86 RDRAND instruction, two functions are supplied to
generate a 32bit or 64bit number.

One potential usage is the sealing key generation for SGX.

BUG=chrome-os-partner:62438
BRANCH=NONE
TEST=Tested on Eve to generate a 64bit random number.

Change-Id: I50cbeda4de17ccf2fc5efc1fe04f6b1a31ec268c
Signed-off-by: Robbie Zhang <robbie.zhang@intel.com>
Reviewed-on: https://review.coreboot.org/18362
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2017-02-20 04:46:10 +01:00
..
arm buildsystem: Drop explicit (k)config.h includes 2016-12-08 19:46:53 +01:00
arm64 build system: mark sub-make invocations as parallelizable 2017-01-31 18:51:55 +01:00
mips build system: remove CBFSTOOL_PRE1_OPTS 2016-05-03 11:40:49 +02:00
power8 region: Add writeat and eraseat support 2016-06-24 20:48:12 +02:00
riscv riscv: Suppress invalid coverity errors 2017-02-20 04:40:01 +01:00
x86 arch/x86: add functions to generate random numbers 2017-02-20 04:46:10 +01:00