random: use the architectural HWRNG for the SHA's IV in extract_buf()
authorTheodore Ts'o <tytso@mit.edu>
Wed, 18 Dec 2013 02:16:39 +0000 (21:16 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 20 Mar 2014 02:18:52 +0000 (22:18 -0400)
commit46884442fc5bb81a896f7245bd850fde9b435509
treee0954b5941c39132dbb1914006d91672e9724b58
parent2132a96f66b6b4d865113e7d4cb56d5f7c6e3cdf
random: use the architectural HWRNG for the SHA's IV in extract_buf()

To help assuage the fears of those who think the NSA can introduce a
massive hack into the instruction decode and out of order execution
engine in the CPU without hundreds of Intel engineers knowing about
it (only one of which woud need to have the conscience and courage of
Edward Snowden to spill the beans to the public), use the HWRNG to
initialize the SHA starting value, instead of xor'ing it in
afterwards.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
drivers/char/random.c