summaryrefslogtreecommitdiff
path: root/shacal2.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-08-18 22:26:01 -0400
committerJeffrey Walton <noloader@gmail.com>2018-08-18 22:26:01 -0400
commit3929c3594c1a084beb045afe22ec19d170a01c47 (patch)
tree7b773379a6d9f3c224c453d7e27542bb9b2df810 /shacal2.cpp
parent1f5d0d85cf40e840ebac88de70db5e508564648d (diff)
downloadcryptopp-git-3929c3594c1a084beb045afe22ec19d170a01c47.tar.gz
Add SHACAL2 cipher AlgorithmProvider()
Diffstat (limited to 'shacal2.cpp')
-rw-r--r--shacal2.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/shacal2.cpp b/shacal2.cpp
index bdaf644e..37ba9899 100644
--- a/shacal2.cpp
+++ b/shacal2.cpp
@@ -44,6 +44,15 @@ extern void SHACAL2_Enc_ProcessAndXorBlock_SHANI(const word32* subKeys,
const byte *inBlock, const byte *xorBlock, byte *outBlock);
#endif
+std::string SHACAL2::Base::AlgorithmProvider() const
+{
+#if CRYPTOPP_SHANI_AVAILABLE
+ if (HasSHA())
+ return "SHANI";
+#endif
+ return "C++";
+}
+
void SHACAL2::Base::UncheckedSetKey(const byte *userKey, unsigned int keylen, const NameValuePairs &)
{
AssertValidKeyLength(keylen);