summaryrefslogtreecommitdiffstats
path: root/sys/dev/rndvar.h
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2011-01-08 19:45:07 +0000
committerderaadt <deraadt@openbsd.org>2011-01-08 19:45:07 +0000
commit39993f6f79b563bc0b480b3da7d5eaccc0bd722e (patch)
tree247e9bf792946973205c921d6293b249911da73d /sys/dev/rndvar.h
parentChange detection of indefinite BER lenghts (which is not allowed). Only a (diff)
downloadwireguard-openbsd-39993f6f79b563bc0b480b3da7d5eaccc0bd722e.tar.xz
wireguard-openbsd-39993f6f79b563bc0b480b3da7d5eaccc0bd722e.zip
split randomattach into random_init() and random_start(), so that we
can make attempts to load 'entropy' into the RC4. ok miod ariane
Diffstat (limited to 'sys/dev/rndvar.h')
-rw-r--r--sys/dev/rndvar.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/rndvar.h b/sys/dev/rndvar.h
index 34f62d70ffa..51e7b084095 100644
--- a/sys/dev/rndvar.h
+++ b/sys/dev/rndvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rndvar.h,v 1.28 2011/01/07 23:13:48 tedu Exp $ */
+/* $OpenBSD: rndvar.h,v 1.29 2011/01/08 19:45:08 deraadt Exp $ */
/*
* Copyright (c) 1996,2000 Michael Shalayeff.
@@ -74,6 +74,9 @@ 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);
void arc4random_buf(void *, size_t);
u_int32_t arc4random(void);