From 08b3ac79c7432df8381ef1e5cbaa687aab4072b5 Mon Sep 17 00:00:00 2001 From: jsing Date: Sun, 26 Mar 2023 17:33:41 +0000 Subject: [PATCH] Add blank lines for readability. --- lib/libcrypto/sha/sha1_one.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.20.1