summaryrefslogtreecommitdiff
path: root/chacha.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-10-26 03:13:06 -0400
committerJeffrey Walton <noloader@gmail.com>2018-10-26 03:13:06 -0400
commit8da2b91cbaf01640e6330e5dc6e858007da70945 (patch)
tree3e6b9bff02ac975c02e6bf820b88ea9d2713c0fa /chacha.cpp
parent76ab8ffa4b86710766dd1ba861deeccc261ffdcf (diff)
downloadcryptopp-git-8da2b91cbaf01640e6330e5dc6e858007da70945.tar.gz
Add ChaCha AlgorithmName override
Diffstat (limited to 'chacha.cpp')
-rw-r--r--chacha.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/chacha.cpp b/chacha.cpp
index 9a5aedfc..723f37f2 100644
--- a/chacha.cpp
+++ b/chacha.cpp
@@ -32,6 +32,11 @@ void ChaCha_TestInstantiations()
}
#endif
+std::string ChaCha_Policy::AlgorithmName() const
+{
+ return std::string("ChaCha")+IntToString(m_rounds);
+}
+
std::string ChaCha_Policy::AlgorithmProvider() const
{
#if (CRYPTOPP_SSE2_INTRIN_AVAILABLE || CRYPTOPP_SSE2_ASM_AVAILABLE)