From: tedu Date: Tue, 23 Dec 2014 20:32:05 +0000 (+0000) Subject: not necessary to zero hash context; the hash final functions all do that. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=32129028426152620b8dc318052d9799e3a8a906;p=openbsd not necessary to zero hash context; the hash final functions all do that. --- 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)); }