From owner-cvs-all Sat Mar 10 5:25:56 2001 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id A297137B719; Sat, 10 Mar 2001 05:25:50 -0800 (PST) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id OAA29959; Sat, 10 Mar 2001 14:25:46 +0100 (CET) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Mark Murray Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/random randomdev.h harvest.c hash.c hash.h randomdev.c yarrow.c yarrow.h References: <200103101251.f2ACpv610133@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: 10 Mar 2001 14:25:45 +0100 In-Reply-To: Mark Murray's message of "Sat, 10 Mar 2001 04:51:57 -0800 (PST)" Message-ID: Lines: 23 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark Murray writes: > o Bug fixes. The streamlining of the crypto stuff enabled me to > find and fix some bugs. DES also found a bug in the reseed routine > which is fixed. That bug essentially made the reseed routine useless, as the entropy harvested from interrupts etc. was never hashed into random_state. The only entropy you ever got was 32 bytes of whatever was on the stack when reseed() was called. > o Change the way reseeds clear "used" entropy. Previously, only the > source(s) that caused a reseed were cleared. Now all sources in the > relevant pool(s) are cleared. Clarification: what is now getting cleared (and didn't use to) are the entropy estimates for the various entropy sources. Since all sources in a given time bin feed their entropy into the same pool, once that pool has been hashed into random_state the total entropy estimate for that pool should be reset to zero DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message