random: add new get_random_bytes_arch() function
authorTheodore Ts'o <tytso@mit.edu>
Thu, 5 Jul 2012 14:35:23 +0000 (10:35 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 9 Aug 2012 23:24:46 +0000 (00:24 +0100)
commit c2557a303ab6712bb6e09447df828c557c710ac9 upstream.

Create a new function, get_random_bytes_arch() which will use the
architecture-specific hardware random number generator if it is
present.  Change get_random_bytes() to not use the HW RNG, even if it
is avaiable.

The reason for this is that the hw random number generator is fast (if
it is present), but it requires that we trust the hardware
manufacturer to have not put in a back door.  (For example, an
increasing counter encrypted by an AES key known to the NSA.)

It's unlikely that Intel (for example) was paid off by the US
Government to do this, but it's impossible for them to prove otherwise


No differences found