mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
crypto_generichash_keybytes_min() cannot be 0, even if 0 is a valid key length
This commit is contained in:
parent
f812967fb8
commit
d7edf5c34b
@ -33,7 +33,7 @@ int main(void)
|
|||||||
assert(crypto_generichash_bytes() > 0U);
|
assert(crypto_generichash_bytes() > 0U);
|
||||||
assert(crypto_generichash_bytes() >= crypto_generichash_bytes_min());
|
assert(crypto_generichash_bytes() >= crypto_generichash_bytes_min());
|
||||||
assert(crypto_generichash_bytes() <= crypto_generichash_bytes_max());
|
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_max() > 0U);
|
||||||
assert(crypto_generichash_keybytes() > 0U);
|
assert(crypto_generichash_keybytes() > 0U);
|
||||||
assert(crypto_generichash_keybytes() >= crypto_generichash_keybytes_min());
|
assert(crypto_generichash_keybytes() >= crypto_generichash_keybytes_min());
|
||||||
|
Loading…
Reference in New Issue
Block a user