summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2011-01-10 02:44:18 +0000
committerderaadt <deraadt@openbsd.org>2011-01-10 02:44:18 +0000
commit6ff820b8431992f5ad84be4fe2f17a933c8d9d19 (patch)
tree5e95391531380360315d5c68478f39e0f6f32f23
parentbe more careful with nanotime() calls in early entropy storage, since (diff)
downloadwireguard-openbsd-6ff820b8431992f5ad84be4fe2f17a933c8d9d19.tar.xz
wireguard-openbsd-6ff820b8431992f5ad84be4fe2f17a933c8d9d19.zip
zero another intermediate key storage area
-rw-r--r--sys/dev/rnd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c
index 5be1ca00d1d..cdc6269aa13 100644
--- a/sys/dev/rnd.c
+++ b/sys/dev/rnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd.c,v 1.132 2011/01/09 22:40:51 deraadt Exp $ */
+/* $OpenBSD: rnd.c,v 1.133 2011/01/10 02:44:18 deraadt Exp $ */
/*
* Copyright (c) 2011 Theo de Raadt.
@@ -507,6 +507,7 @@ extract_entropy(u_int8_t *buf, int nbytes)
}
/* Wipe data from memory */
+ bzero(extract_pool, sizeof(extract_pool));
bzero(&tmp, sizeof(tmp));
bzero(buffer, sizeof(buffer));
}