Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 29 Oct 2001 11:54:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 29 Oct 2001 11:54:42 -0500 Received: from waste.org ([209.173.204.2]:58397 "EHLO waste.org") by vger.kernel.org with ESMTP id ; Mon, 29 Oct 2001 11:54:36 -0500 Date: Mon, 29 Oct 2001 10:58:28 -0600 (CST) From: Oliver Xymoron To: Horst von Brand cc: Andreas Dilger , Linux Kernel Mailing List Subject: Re: [PATCH] random.c bugfix In-Reply-To: <200110291615.f9TGFYYY010564@pincoya.inf.utfsm.cl> 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 Mon, 29 Oct 2001, Horst von Brand wrote: > Andreas Dilger said: > > [...] > > > (*) I don't know enough about the hash functions to know how to add a > > few odd bytes into the store in a useful and safe way. We don't > > really want to discard them either - think if a user-space random > > daemon on an otherwise entropy-free system only writes one byte at > > a time... > > I'm no expert either, but padding with anything (zeroes?) to get the right > length should be safe, no? No. A 4-byte accumulator is the right answer. We have to be careful here though - the actual entropy might be in the partial words, we have to account for it conservatively. -- "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/