From: jsing Date: Sun, 26 Mar 2023 17:33:41 +0000 (+0000) Subject: Add blank lines for readability. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=08b3ac79c7432df8381ef1e5cbaa687aab4072b5;p=openbsd Add blank lines for readability. --- 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