summaryrefslogtreecommitdiff
path: root/whrlpool.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-06 09:23:37 -0400
committerGitHub <noreply@github.com>2018-07-06 09:23:37 -0400
commitb74a6f444568e59a7766d1e286f82d2ce3086dcd (patch)
tree97937fe23f742f6c352f39e206b7ce7d774ba358 /whrlpool.cpp
parent6d9047b444731175e6ea9a447a3f0002685804be (diff)
downloadcryptopp-git-b74a6f444568e59a7766d1e286f82d2ce3086dcd.tar.gz
Add algorithm provider member function to Algorithm class
Diffstat (limited to 'whrlpool.cpp')
-rw-r--r--whrlpool.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/whrlpool.cpp b/whrlpool.cpp
index 3986e225..799b7f3c 100644
--- a/whrlpool.cpp
+++ b/whrlpool.cpp
@@ -89,6 +89,15 @@ void Whirlpool_TestInstantiations()
}
#endif
+std::string Whirlpool::AlgorithmProvider() const
+{
+#if CRYPTOPP_SSE2_ASM_AVAILABLE
+ if (HasSSE2())
+ return "SSE2";
+#endif
+ return "C++";
+}
+
void Whirlpool::InitState(HashWordType *state)
{
memset(state, 0, 8*sizeof(state[0]));