aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/stream/chacha/chacha.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-08-29 15:35:29 -0400
committerJack Lloyd <[email protected]>2016-08-30 07:39:25 -0400
commit5739c41504f8193b71e3b0ff6fbe9a508f3ece6a (patch)
treed588cf58066000779d2017fd61fa88d61cd2d129 /src/lib/stream/chacha/chacha.h
parenta09d2df0885137ea6d7af181e3bcc823412850d8 (diff)
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
Diffstat (limited to 'src/lib/stream/chacha/chacha.h')
-rw-r--r--src/lib/stream/chacha/chacha.h2
1 files changed, 1 insertions, 1 deletions
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;