diff options
author | des <des@FreeBSD.org> | 2014-11-04 23:02:19 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2014-11-04 23:02:19 +0000 |
commit | f095756b28c91ea56b5b2778e01f3ea61bc7ccee (patch) | |
tree | de438a97a9fd76027cadc7925967539b6f2364a6 /tools/test/auxinfo | |
parent | 938d2505e3c21aed03a011442ea9f0272c9b23a2 (diff) | |
download | FreeBSD-src-f095756b28c91ea56b5b2778e01f3ea61bc7ccee.zip FreeBSD-src-f095756b28c91ea56b5b2778e01f3ea61bc7ccee.tar.gz |
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@gmail.com>
Reviewed by: markm@
Approved by: so (des)
Diffstat (limited to 'tools/test/auxinfo')
0 files changed, 0 insertions, 0 deletions