the following patch was just integrated into master: commit 18792314d7b8dde596a9c378b2d47516cbd871f4 Author: Robbie Zhang robbie.zhang@intel.com Date: Mon Feb 13 13:44:14 2017 -0800
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
See https://review.coreboot.org/18362 for details.
-gerrit