summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2023-03-26 17:33:42 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2023-03-26 17:33:42 +0000
commitd94b962bb739245811acd0caa93dee29498632fe (patch)
tree453d2c266ffc4627eb7a4adc9db6d464a1759078 /lib
parent69b88f28b0089fdaeaa53f3e8a941543a317ba4c (diff)
Add blank lines for readability.
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/sha/sha1_one.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libcrypto/sha/sha1_one.c b/lib/libcrypto/sha/sha1_one.c
index 085c1db23e9..74d719d1b20 100644
--- a/lib/libcrypto/sha/sha1_one.c
+++ b/lib/libcrypto/sha/sha1_one.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sha1_one.c,v 1.13 2023/03/26 16:40:07 jsing Exp $ */
+/* $OpenBSD: sha1_one.c,v 1.14 2023/03/26 17:33:41 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -73,11 +73,14 @@ SHA1(const unsigned char *d, size_t n, unsigned char *md)
if (md == NULL)
md = m;
+
if (!SHA1_Init(&c))
return NULL;
SHA1_Update(&c, d, n);
SHA1_Final(md, &c);
+
explicit_bzero(&c, sizeof(c));
+
return (md);
}
#endif