summaryrefslogtreecommitdiffstats
path: root/sys/dev/rndvar.h
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-01-19 23:52:54 +0000
committerderaadt <deraadt@openbsd.org>2014-01-19 23:52:54 +0000
commitfad3d6a5cb62efa2c3980f8e4ba134f41ee4dfe7 (patch)
treea0a4ab4ce4218313e4bac31d73a95cf079bff96d /sys/dev/rndvar.h
parentnewqueue support for the queue view, code mostly from pfctl. lifting done (diff)
downloadwireguard-openbsd-fad3d6a5cb62efa2c3980f8e4ba134f41ee4dfe7.tar.xz
wireguard-openbsd-fad3d6a5cb62efa2c3980f8e4ba134f41ee4dfe7.zip
Refactor rnd startup so arc4random/arc4random_buf can create a chacha state
on first call, very early on, from boot-supplied entropy, then feed from that. Later when we have more subsystems ready, the main() can properly initialize the entropy-driven model. Lots of discussion with mikeb. ok kettenis markus mikeb
Diffstat (limited to 'sys/dev/rndvar.h')
-rw-r--r--sys/dev/rndvar.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/rndvar.h b/sys/dev/rndvar.h
index 5e631d92dbf..17cc93c7bf4 100644
--- a/sys/dev/rndvar.h
+++ b/sys/dev/rndvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rndvar.h,v 1.32 2014/01/19 00:39:40 deraadt Exp $ */
+/* $OpenBSD: rndvar.h,v 1.33 2014/01/19 23:52:54 deraadt Exp $ */
/*
* Copyright (c) 1996,2000 Michael Shalayeff.
@@ -69,7 +69,6 @@ extern struct rndstats rndstats;
#define add_audio_randomness(d) enqueue_randomness(RND_SRC_AUDIO, (int)(d))
#define add_video_randomness(d) enqueue_randomness(RND_SRC_VIDEO, (int)(d))
-void random_init(void);
void random_start(void);
void enqueue_randomness(int, int);