not necessary to zero hash context; the hash final functions all do that.
authortedu <tedu@openbsd.org>
Tue, 23 Dec 2014 20:32:05 +0000 (20:32 +0000)
committertedu <tedu@openbsd.org>
Tue, 23 Dec 2014 20:32:05 +0000 (20:32 +0000)
sys/dev/rnd.c

index e3686a7..d5d8d88 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: rnd.c,v 1.167 2014/12/23 20:29:23 tedu Exp $  */
+/*     $OpenBSD: rnd.c,v 1.168 2014/12/23 20:32:05 tedu Exp $  */
 
 /*
  * Copyright (c) 2011 Theo de Raadt.
@@ -526,7 +526,6 @@ extract_entropy(u_int8_t *buf)
 
        /* Wipe data from memory */
        explicit_bzero(extract_pool, sizeof(extract_pool));
-       explicit_bzero(&shactx, sizeof(shactx));
        explicit_bzero(digest, sizeof(digest));
 }