summaryrefslogtreecommitdiffstats
path: root/crypto/whrlpool/wp_dgst.c
diff options
context:
space:
mode:
authorKaoruToda <kunnpuu@gmail.com>2017-10-09 13:05:58 +0200
committerMatt Caswell <matt@openssl.org>2017-10-09 14:17:09 +0200
commit208fb891e36f16d20262710c70ef0ff3df0e885c (patch)
tree514e6161c7c21122fced736efaddd87f5b5e0538 /crypto/whrlpool/wp_dgst.c
parentDocument that lhash isn't thread safe under any circumstances and (diff)
downloadopenssl-208fb891e36f16d20262710c70ef0ff3df0e885c.tar.xz
openssl-208fb891e36f16d20262710c70ef0ff3df0e885c.zip
Since return is inconsistent, I removed unnecessary parentheses and
unified them. - return (0); -> return 0; - return (1); -> return 1; - return (-1); -> return -1; Reviewed-by: Stephen Henson <steve@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4500)
Diffstat (limited to 'crypto/whrlpool/wp_dgst.c')
-rw-r--r--crypto/whrlpool/wp_dgst.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/whrlpool/wp_dgst.c b/crypto/whrlpool/wp_dgst.c
index 6d925517a2..2fb397a389 100644
--- a/crypto/whrlpool/wp_dgst.c
+++ b/crypto/whrlpool/wp_dgst.c
@@ -67,7 +67,7 @@
int WHIRLPOOL_Init(WHIRLPOOL_CTX *c)
{
memset(c, 0, sizeof(*c));
- return (1);
+ return 1;
}
int WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *_inp, size_t bytes)
@@ -88,7 +88,7 @@ int WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *_inp, size_t bytes)
if (bytes)
WHIRLPOOL_BitUpdate(c, inp, bytes * 8);
- return (1);
+ return 1;
}
void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *_inp, size_t bits)
@@ -247,7 +247,7 @@ int WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c)
if (md) {
memcpy(md, c->H.c, WHIRLPOOL_DIGEST_LENGTH);
OPENSSL_cleanse(c, sizeof(*c));
- return (1);
+ return 1;
}
return (0);
}