From 499307350173ec8be0fcd72628333c5aad075801 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 16 Sep 2014 15:25:54 -0700 Subject: [PATCH] Test chacha20 with a null output length --- test/default/chacha20.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/default/chacha20.c b/test/default/chacha20.c index 484c9283..78ecdde1 100644 --- a/test/default/chacha20.c +++ b/test/default/chacha20.c @@ -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);