[lkml]   [2001]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] random.c bugfix
On Tue, 30 Oct 2001, Andreas Dilger wrote:

> On Oct 30, 2001 11:07 -0500, Theodore Tso wrote:
> > Zero-padding isn't a problem, since it's perfectly safe to mix in zero
> > bytes into the pool.
> Well, Oliver tends to disagree. I don't know enough either way. It _does_
> seem bad that if you wrote continually wrote 1-byte values into /dev/random
> and padded out the end of the word that it would be bad. However, in the
> end this is no worse than cat /dev/zero > /dev/random, which is also allowed.

That was just conservatism on my part. There are a large number of hashes
and ciphers for which zero inputs are suboptimal so my gut feel was that
it was a bad idea. That was silly of me, given the way the mixing works.

"Love the dolphins," she advised him. "Write by W.A.S.T.E.."

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:12    [W:0.089 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site