svn commit: r274103 - head/sys/dev/random
Ian Lepore
ian at FreeBSD.org
Tue Nov 4 23:38:13 UTC 2014
On Tue, 2014-11-04 at 23:02 +0000, Dag-Erling Smørgrav wrote:
> Author: des
> Date: Tue Nov 4 23:02:19 2014
> New Revision: 274103
> URL: https://svnweb.freebsd.org/changeset/base/274103
>
> Log:
> When reseeding the DPRNG, we're supposed to hash the current key and
> some accumulated entropy twice and use that as the new key. Due to a
> typo, we were using the output of the first hash round instead of the
> second. Correct this, but eliminate temp[] since we can reuse hash[].
> Also add comments explaining what is going on and why.
>
> Noticed by: Sami Farin <sami.farin at gmail.com>
> Reviewed by: markm@
> Approved by: so (des)
>
> Modified:
> head/sys/dev/random/fortuna.c
>
> Modified: head/sys/dev/random/fortuna.c
> ==============================================================================
> --- head/sys/dev/random/fortuna.c Tue Nov 4 23:02:16 2014 (r274102)
> +++ head/sys/dev/random/fortuna.c Tue Nov 4 23:02:19 2014 (r274103)
> @@ -25,6 +25,17 @@
> *
> */
>
> +/* This implementation of Fortuna is based on the descriptions found in
> + * ISBN 0-471-22357-3 "Practical Cryptography" by Ferguson and Schneier
> + * ("K&S").
I'm guessing s/b F&S.
-- Ian
More information about the svn-src-head
mailing list