1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-11-08 14:59:19 +01:00

fix key length check

This commit is contained in:
JP Aumasson 2023-02-12 10:51:34 +01:00
parent fb4b09b495
commit ed1974ea83
3 changed files with 3 additions and 3 deletions

@ -33,7 +33,7 @@ int blake2xs_init_key( blake2xs_state *S, const size_t outlen, const void *key,
return -1; return -1;
} }
if (NULL != key && keylen > BLAKE2B_KEYBYTES) { if (NULL != key && keylen > BLAKE2S_KEYBYTES) {
return -1; return -1;
} }

@ -33,7 +33,7 @@ int blake2xs_init_key( blake2xs_state *S, const size_t outlen, const void *key,
return -1; return -1;
} }
if (NULL != key && keylen > BLAKE2B_KEYBYTES) { if (NULL != key && keylen > BLAKE2S_KEYBYTES) {
return -1; return -1;
} }

@ -33,7 +33,7 @@ int blake2xs_init_key( blake2xs_state *S, const size_t outlen, const void *key,
return -1; return -1;
} }
if (NULL != key && keylen > BLAKE2B_KEYBYTES) { if (NULL != key && keylen > BLAKE2S_KEYBYTES) {
return -1; return -1;
} }