diff options
author | markm <markm@FreeBSD.org> | 2001-03-10 12:51:55 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-03-10 12:51:55 +0000 |
commit | ad4dd3b5a22959becd824aa989ac27a7b27e037e (patch) | |
tree | 46e10e74c3796f985f882d072fc9ecd912b67560 /sys/dev/random/harvest.c | |
parent | a9b8e8be5d560774accffee6d14de8dfce8c81ba (diff) | |
download | FreeBSD-src-ad4dd3b5a22959becd824aa989ac27a7b27e037e.zip FreeBSD-src-ad4dd3b5a22959becd824aa989ac27a7b27e037e.tar.gz |
Very large makeover of the /dev/random driver.
o Separate the kernel stuff from the Yarrow algorithm. Yarrow is now
well contained in one source file and one header.
o Replace the Blowfish-based crypto routines with Rijndael-based ones.
(Rijndael is the new AES algorithm). The huge improvement in
Rijndael's key-agility over Blowfish means that this is an
extremely dramatic improvement in speed, and makes a heck of
a difference in its (lack of) CPU load.
o Clean up the sysctl's. At BDE's prompting, I have gone back to
static sysctls.
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.
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.
o Code tidy-up. Mostly to make it (nearly) 80-column compliant.
Diffstat (limited to 'sys/dev/random/harvest.c')
-rw-r--r-- | sys/dev/random/harvest.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c index 59495d7..c0c9a02 100644 --- a/sys/dev/random/harvest.c +++ b/sys/dev/random/harvest.c @@ -38,10 +38,7 @@ #include <machine/cpu.h> -#include <crypto/blowfish/blowfish.h> - -#include <dev/random/hash.h> -#include <dev/random/yarrow.h> +#include <dev/random/randomdev.h> static u_int read_random_phony(void *, u_int); |