From: Theodore Ts'o Date: Thu, 5 Jul 2012 14:35:23 +0000 (-0400) Subject: random: add new get_random_bytes_arch() function X-Git-Tag: v3.2.27~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f5d5266f8a1f7f54707c15e028f220d329726f4;p=pandora-kernel.git random: add new get_random_bytes_arch() function 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 --- Reading git-diff-tree failed