]> git.baikalelectronics.ru Git - kernel.git/commit
random: fix output buffer folding
authorMatt Mackall <mpm@selenic.com>
Sat, 16 Jun 2007 17:16:11 +0000 (10:16 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 16 Jun 2007 20:16:16 +0000 (13:16 -0700)
commitc44e983b01f42aa81631bb26db87a52f71434ed4
treeaf185e76fdcae99d9450a3fef7b8c8005eae1cc4
parentc71c34e9f2623f3ecf3018448b204e2bcc99d51e
random: fix output buffer folding

(As reported by linux@horizon.com)

Folding is done to minimize the theoretical possibility of systematic
weakness in the particular bits of the SHA1 hash output.  The result of
this bug is that 16 out of 80 bits are un-folded.  Without a major new
vulnerability being found in SHA1, this is harmless, but still worth
fixing.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Cc: <linux@horizon.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/random.c