From ee9e22ba34f93309b2ff86da272592d28cdd110d Mon Sep 17 00:00:00 2001 From: JP Aumasson Date: Wed, 12 Oct 2016 18:08:51 +0200 Subject: consistency --- ref/blake2xb-ref.c | 2 +- ref/blake2xs-ref.c | 2 +- sse/blake2xb.c | 2 +- sse/blake2xs.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ref/blake2xb-ref.c b/ref/blake2xb-ref.c index 640daf0..e47091d 100644 --- a/ref/blake2xb-ref.c +++ b/ref/blake2xb-ref.c @@ -34,7 +34,7 @@ int blake2xb_init( blake2xb_state *S, const size_t outlen, const void *key, size return -1; } - if (keylen > 0 && key == NULL) { + if (NULL == key && keylen > 0) { return -1; } diff --git a/ref/blake2xs-ref.c b/ref/blake2xs-ref.c index b0799d0..7e2b31d 100644 --- a/ref/blake2xs-ref.c +++ b/ref/blake2xs-ref.c @@ -34,7 +34,7 @@ int blake2xs_init( blake2xs_state *S, const size_t outlen, const void *key, size return -1; } - if (keylen > 0 && key == NULL) { + if (NULL == key & keylen > 0) { return -1; } diff --git a/sse/blake2xb.c b/sse/blake2xb.c index 640daf0..e47091d 100644 --- a/sse/blake2xb.c +++ b/sse/blake2xb.c @@ -34,7 +34,7 @@ int blake2xb_init( blake2xb_state *S, const size_t outlen, const void *key, size return -1; } - if (keylen > 0 && key == NULL) { + if (NULL == key && keylen > 0) { return -1; } diff --git a/sse/blake2xs.c b/sse/blake2xs.c index b0799d0..7e2b31d 100644 --- a/sse/blake2xs.c +++ b/sse/blake2xs.c @@ -34,7 +34,7 @@ int blake2xs_init( blake2xs_state *S, const size_t outlen, const void *key, size return -1; } - if (keylen > 0 && key == NULL) { + if (NULL == key & keylen > 0) { return -1; } -- cgit v1.2.3