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

crypto_generichash_keybytes_min() cannot be 0, even if 0 is a valid key length

This commit is contained in:
Frank Denis 2014-09-15 10:26:29 -07:00
parent f812967fb8
commit d7edf5c34b

View File

@ -33,7 +33,7 @@ int main(void)
assert(crypto_generichash_bytes() > 0U);
assert(crypto_generichash_bytes() >= crypto_generichash_bytes_min());
assert(crypto_generichash_bytes() <= crypto_generichash_bytes_max());
assert(crypto_generichash_keybytes_min() >= 0U);
assert(crypto_generichash_keybytes_min() > 0U);
assert(crypto_generichash_keybytes_max() > 0U);
assert(crypto_generichash_keybytes() > 0U);
assert(crypto_generichash_keybytes() >= crypto_generichash_keybytes_min());