summaryrefslogtreecommitdiffstats
path: root/sys/dev/random/harvest.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-03-10 12:51:55 +0000
committermarkm <markm@FreeBSD.org>2001-03-10 12:51:55 +0000
commitad4dd3b5a22959becd824aa989ac27a7b27e037e (patch)
tree46e10e74c3796f985f882d072fc9ecd912b67560 /sys/dev/random/harvest.c
parenta9b8e8be5d560774accffee6d14de8dfce8c81ba (diff)
downloadFreeBSD-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.c5
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);
OpenPOWER on IntegriCloud