diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-08-18 22:26:01 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-08-18 22:26:01 -0400 |
commit | 3929c3594c1a084beb045afe22ec19d170a01c47 (patch) | |
tree | 7b773379a6d9f3c224c453d7e27542bb9b2df810 /shacal2.cpp | |
parent | 1f5d0d85cf40e840ebac88de70db5e508564648d (diff) | |
download | cryptopp-git-3929c3594c1a084beb045afe22ec19d170a01c47.tar.gz |
Add SHACAL2 cipher AlgorithmProvider()
Diffstat (limited to 'shacal2.cpp')
-rw-r--r-- | shacal2.cpp | 9 |
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);
|