diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-08-18 21:41:55 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-08-18 21:41:55 -0400 |
commit | 1f5d0d85cf40e840ebac88de70db5e508564648d (patch) | |
tree | ba51575d66aac3e55289227929f395b05d223c13 /tiger.cpp | |
parent | 92163356db5c31600b9b1ecf9cd4986fb92db76e (diff) | |
download | cryptopp-git-1f5d0d85cf40e840ebac88de70db5e508564648d.tar.gz |
Add Tiger cipher AlgorithmProvider()
Diffstat (limited to 'tiger.cpp')
-rw-r--r-- | tiger.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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);
|