mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-28 22:21:15 -07:00
Accept a null keylen for blake2
This commit is contained in:
parent
34f2982754
commit
a8ba78e527
@ -14,7 +14,7 @@ crypto_generichash_blake2b(unsigned char *out, const unsigned char *in,
|
|||||||
size_t keylen)
|
size_t keylen)
|
||||||
{
|
{
|
||||||
if (outlen <= 0U || outlen > BLAKE2B_OUTBYTES ||
|
if (outlen <= 0U || outlen > BLAKE2B_OUTBYTES ||
|
||||||
keylen <= 0U || keylen > BLAKE2B_KEYBYTES ||
|
keylen > BLAKE2B_KEYBYTES ||
|
||||||
inlen > UINT64_MAX) {
|
inlen > UINT64_MAX) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user