]> git.karo-electronics.de Git - karo-tx-linux.git/commit
random: Use arch-specific RNG to initialize the entropy store
authorTheodore Ts'o <tytso@mit.edu>
Thu, 22 Dec 2011 21:28:01 +0000 (16:28 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:36:03 +0000 (15:36 -0400)
commit7d81bad9704b9c54ea18edd32ba95fd84c4190c8
treefe5da548a590f50f5e30b6ffd07dab19a8fb8dcc
parentfdc3835ef99c2912c8dc1216023a23f913f9ee94
random: Use arch-specific RNG to initialize the entropy store

commit 3e88bdff1c65145f7ba297ccec69c774afe4c785 upstream.

If there is an architecture-specific random number generator (such as
RDRAND for Intel architectures), use it to initialize /dev/random's
entropy stores.  Even in the worst case, if RDRAND is something like
AES(NSA_KEY, counter++), it won't hurt, and it will definitely help
against any other adversaries.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Link: http://lkml.kernel.org/r/1324589281-31931-1-git-send-email-tytso@mit.edu
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/char/random.c