aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/stream/stream_cipher.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/stream/stream_cipher.cpp b/src/lib/stream/stream_cipher.cpp
index c0e75c0a8..77e68d129 100644
--- a/src/lib/stream/stream_cipher.cpp
+++ b/src/lib/stream/stream_cipher.cpp
@@ -64,6 +64,12 @@ std::unique_ptr<StreamCipher> StreamCipher::create(const std::string& algo_spec,
if(provider.empty() || provider == "base")
return std::unique_ptr<StreamCipher>(new ChaCha(req.arg_as_integer(0, 20)));
}
+
+ if(req.algo_name() == "ChaCha20")
+ {
+ if(provider.empty() || provider == "base")
+ return std::unique_ptr<StreamCipher>(new ChaCha(20));
+ }
#endif
#if defined(BOTAN_HAS_SALSA20)