[openssh-commits] [openssh] 01/04: upstream: Use explicit_bzero instead of memset
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Jun 14 14:23:13 AEST 2019
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 10974f986fa842a3a3a693e3d5761072540002b4
Author: Darren Tucker <dtucker at dtucker.net>
Date: Sat Jun 8 09:01:14 2019 +1000
upstream: Use explicit_bzero instead of memset
in hash Final and End functions. OK deraadt@ djm@
---
openbsd-compat/sha1.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/openbsd-compat/sha1.c b/openbsd-compat/sha1.c
index 4b5381f8..c616778e 100644
--- a/openbsd-compat/sha1.c
+++ b/openbsd-compat/sha1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sha1.c,v 1.23 2014/01/08 06:14:57 tedu Exp $ */
+/* $OpenBSD: sha1.c,v 1.24 2015/01/15 13:05:59 millert Exp $ */
/*
* SHA-1 in C
@@ -172,6 +172,6 @@ SHA1Final(u_int8_t digest[SHA1_DIGEST_LENGTH], SHA1_CTX *context)
digest[i] = (u_int8_t)
((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255);
}
- memset(context, 0, sizeof(*context));
+ explicit_bzero(context, sizeof(*context));
}
#endif /* !WITH_OPENSSL */
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list