artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d18bc66
)
Add blank lines for readability.
author
jsing
<jsing@openbsd.org>
Sun, 26 Mar 2023 17:33:41 +0000
(17:33 +0000)
committer
jsing
<jsing@openbsd.org>
Sun, 26 Mar 2023 17:33:41 +0000
(17:33 +0000)
lib/libcrypto/sha/sha1_one.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/sha/sha1_one.c
b/lib/libcrypto/sha/sha1_one.c
index
085c1db
..
74d719d
100644
(file)
--- a/
lib/libcrypto/sha/sha1_one.c
+++ b/
lib/libcrypto/sha/sha1_one.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sha1_one.c,v 1.1
3 2023/03/26 16:40:07
jsing Exp $ */
+/* $OpenBSD: sha1_one.c,v 1.1
4 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