Skip site navigation (1)Skip section navigation (2)
Date:      10 Mar 2001 14:25:45 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Mark Murray <markm@FreeBSD.org>
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
Message-ID:  <xzpr905u55y.fsf@flood.ping.uio.no>
In-Reply-To: Mark Murray's message of "Sat, 10 Mar 2001 04:51:57 -0800 (PST)"
References:  <200103101251.f2ACpv610133@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Mark Murray <markm@FreeBSD.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpr905u55y.fsf>