summaryrefslogtreecommitdiff
path: root/tiger.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-08-18 21:41:55 -0400
committerJeffrey Walton <noloader@gmail.com>2018-08-18 21:41:55 -0400
commit1f5d0d85cf40e840ebac88de70db5e508564648d (patch)
treeba51575d66aac3e55289227929f395b05d223c13 /tiger.cpp
parent92163356db5c31600b9b1ecf9cd4986fb92db76e (diff)
downloadcryptopp-git-1f5d0d85cf40e840ebac88de70db5e508564648d.tar.gz
Add Tiger cipher AlgorithmProvider()
Diffstat (limited to 'tiger.cpp')
-rw-r--r--tiger.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tiger.cpp b/tiger.cpp
index 77e2a27c..03d2ddb0 100644
--- a/tiger.cpp
+++ b/tiger.cpp
@@ -16,6 +16,17 @@
NAMESPACE_BEGIN(CryptoPP)
+std::string Tiger::AlgorithmProvider() const
+{
+#ifndef CRYPTOPP_DISABLE_TIGER_ASM
+# if CRYPTOPP_SSE2_ASM_AVAILABLE
+ if (HasSSE2())
+ return "SSE2";
+# endif
+#endif
+ return "C++";
+}
+
void Tiger::InitState(HashWordType *state)
{
state[0] = W64LIT(0x0123456789ABCDEF);