Test chacha20 with a null output length

This commit is contained in:
Frank Denis 2014-09-16 15:25:54 -07:00
parent 6837c2d2c2
commit 4993073501

View File

@ -36,6 +36,8 @@ static void tv(void)
memset(out, 0x42, sizeof out);
assert(crypto_stream_chacha20(out, 0U, nonce, key) == 0);
assert(crypto_stream_chacha20_xor(out, out, 0U, nonce, key) == 0);
assert(crypto_stream_chacha20_xor(out, out, 0U, nonce, key) == 0);
assert(crypto_stream_chacha20_xor_ic(out, out, 0U, nonce, 1U, key) == 0);