summaryrefslogtreecommitdiffstats
path: root/tools/test/auxinfo
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2014-11-04 23:02:19 +0000
committerdes <des@FreeBSD.org>2014-11-04 23:02:19 +0000
commitf095756b28c91ea56b5b2778e01f3ea61bc7ccee (patch)
treede438a97a9fd76027cadc7925967539b6f2364a6 /tools/test/auxinfo
parent938d2505e3c21aed03a011442ea9f0272c9b23a2 (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud