Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 31 Oct 2001 09:39:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 31 Oct 2001 09:39:20 -0500 Received: from waste.org ([209.173.204.2]:50467 "EHLO waste.org") by vger.kernel.org with ESMTP id ; Wed, 31 Oct 2001 09:39:03 -0500 Date: Wed, 31 Oct 2001 08:42:50 -0600 (CST) From: Oliver Xymoron To: Andreas Dilger cc: Theodore Tso , Horst von Brand , Linux Kernel Mailing List Subject: Re: [PATCH] random.c bugfix In-Reply-To: <20011030231926.E800@lynx.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/