summaryrefslogtreecommitdiff
path: root/sosemanuk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sosemanuk.cpp')
-rw-r--r--sosemanuk.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/sosemanuk.cpp b/sosemanuk.cpp
index d303f878..52a02d9b 100644
--- a/sosemanuk.cpp
+++ b/sosemanuk.cpp
@@ -19,6 +19,15 @@
NAMESPACE_BEGIN(CryptoPP)
+std::string SosemanukPolicy::AlgorithmProvider() const
+{
+#if CRYPTOPP_SSE2_ASM_AVAILABLE
+ if (HasSSE2())
+ return "SSE2";
+#endif
+ return "C++";
+}
+
void SosemanukPolicy::CipherSetKey(const NameValuePairs &params, const byte *userKey, size_t keylen)
{
CRYPTOPP_UNUSED(params);