From 5739c41504f8193b71e3b0ff6fbe9a508f3ece6a Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 29 Aug 2016 15:35:29 -0400 Subject: Add NEWHOPE KEM scheme Provides conjectured 200-bit security against a quantum attacker. Based on the public domain reference implementation at https://github.com/tpoeppelmann/newhope and bit-for-bit compatible with that version. Test vectors generated by the reference testvector.c --- src/lib/stream/chacha/chacha.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/stream/chacha/chacha.h') diff --git a/src/lib/stream/chacha/chacha.h b/src/lib/stream/chacha/chacha.h index f8f42e41d..7ba37012f 100644 --- a/src/lib/stream/chacha/chacha.h +++ b/src/lib/stream/chacha/chacha.h @@ -24,7 +24,7 @@ class BOTAN_DLL ChaCha final : public StreamCipher * Currently only 8, 12 or 20 rounds are supported, all others * will throw an exception */ - ChaCha(size_t rounds); + ChaCha(size_t rounds = 20); void cipher(const byte in[], byte out[], size_t length) override; -- cgit v1.2.3