From 32129028426152620b8dc318052d9799e3a8a906 Mon Sep 17 00:00:00 2001 From: tedu Date: Tue, 23 Dec 2014 20:32:05 +0000 Subject: [PATCH] not necessary to zero hash context; the hash final functions all do that. --- sys/dev/rnd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index e3686a7cc52..d5d8d888f83 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -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)); } -- 2.20.1