1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00

Accept a null keylen for blake2

This commit is contained in:
Frank Denis 2013-03-19 00:35:53 -07:00
parent 34f2982754
commit a8ba78e527

View File

@ -14,7 +14,7 @@ crypto_generichash_blake2b(unsigned char *out, const unsigned char *in,
size_t keylen)
{
if (outlen <= 0U || outlen > BLAKE2B_OUTBYTES ||
keylen <= 0U || keylen > BLAKE2B_KEYBYTES ||
keylen > BLAKE2B_KEYBYTES ||
inlen > UINT64_MAX) {
return -1;
}