mirror of
https://github.com/BLAKE2/BLAKE2
synced 2024-11-08 14:59:19 +01:00
consistency
This commit is contained in:
parent
2a22fad500
commit
ee9e22ba34
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user