Add blank lines for readability.
authorjsing <jsing@openbsd.org>
Sun, 26 Mar 2023 17:33:41 +0000 (17:33 +0000)
committerjsing <jsing@openbsd.org>
Sun, 26 Mar 2023 17:33:41 +0000 (17:33 +0000)
lib/libcrypto/sha/sha1_one.c

index 085c1db..74d719d 100644 (file)
@@ -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