1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-09-16 08:31:34 +02:00

consistency

This commit is contained in:
JP Aumasson 2016-10-12 18:08:51 +02:00
parent 2a22fad500
commit ee9e22ba34
4 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}