Fortuna as default PRNG
authorGreg Hudson <ghudson@mit.edu>
Thu, 24 Feb 2011 09:58:45 +0000 (09:58 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 24 Feb 2011 09:58:45 +0000 (09:58 +0000)
commit76a54ee9451a793b2ebd313865fbc10619081d26
treeaee2f9296d584557e96166240d11f8e6b0fcc8ab
parentbe7e134d8e42402de0f205d5c14f8bd76bad461d
Fortuna as default PRNG

Rewrite prng_fortuna.c to much more closely match the description of
Fortuna in chapter 9 of Cryptography Engineering.  Add a facility to
get OS entropy and implement it for Unix and Windows (not yet tested
on Windows) to replace prng/fortuna/entropy.c.  Rewrite the test
harness to always ensure stable output and perform a statistical test
on the predictable internal state resulting from the stable-output
tests.

ticket: 6874

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24652 dc483132-0cff-0310-8789-dd5450dbe970
12 files changed:
src/lib/crypto/krb/prng/fortuna/Makefile.in
src/lib/crypto/krb/prng/fortuna/deps
src/lib/crypto/krb/prng/fortuna/entropy.c [deleted file]
src/lib/crypto/krb/prng/fortuna/fortuna.h [deleted file]
src/lib/crypto/krb/prng/fortuna/prng_fortuna.c
src/lib/crypto/krb/prng/fortuna/t_fortuna.c
src/lib/crypto/krb/prng/fortuna/t_fortuna.expected [new file with mode: 0644]
src/lib/crypto/krb/prng/fortuna/t_fortuna_make_oct.c [deleted file]
src/lib/crypto/krb/prng/fortuna/t_fortuna_make_oct.expected [deleted file]
src/lib/crypto/krb/prng/prng.c
src/lib/crypto/krb/prng/prng.h
src/lib/crypto/libk5crypto.exports