From ad858d741989a04039e638cdf9e0acd19c337d75 Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Sat, 3 Jan 2015 13:25:51 +1000 Subject: [PATCH] Change default ChaCha key size to 256-bit --- libraries/Crypto/ChaCha.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Crypto/ChaCha.cpp b/libraries/Crypto/ChaCha.cpp index 836fdc72..fa53b563 100644 --- a/libraries/Crypto/ChaCha.cpp +++ b/libraries/Crypto/ChaCha.cpp @@ -57,8 +57,8 @@ ChaCha::~ChaCha() size_t ChaCha::keySize() const { - // Default key size is 128-bit, but any key size is allowed. - return 16; + // Default key size is 256-bit, but any key size is allowed. + return 32; } size_t ChaCha::ivSize() const