From: Jarod Wilson Date: Tue, 6 Nov 2012 15:42:42 +0000 (-0500) Subject: random: prime last_data value per fips requirements X-Git-Tag: v3.8-rc1~43^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec8f02da9ea500474417d1d31fa3d46a562ab366;p=pandora-kernel.git random: prime last_data value per fips requirements The value stored in last_data must be primed for FIPS 140-2 purposes. Upon first use, either on system startup or after an RNDCLEARPOOL ioctl, we need to take an initial random sample, store it internally in last_data, then pass along the value after that to the requester, so that consistency checks aren't being run against stale and possibly known data. CC: Herbert Xu CC: "David S. Miller" CC: Matt Mackall CC: linux-crypto@vger.kernel.org Acked-by: Neil Horman Signed-off-by: Jarod Wilson Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed