diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-07-06 09:23:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 09:23:37 -0400 |
commit | b74a6f444568e59a7766d1e286f82d2ce3086dcd (patch) | |
tree | 97937fe23f742f6c352f39e206b7ce7d774ba358 /sosemanuk.cpp | |
parent | 6d9047b444731175e6ea9a447a3f0002685804be (diff) | |
download | cryptopp-git-b74a6f444568e59a7766d1e286f82d2ce3086dcd.tar.gz |
Add algorithm provider member function to Algorithm class
Diffstat (limited to 'sosemanuk.cpp')
-rw-r--r-- | sosemanuk.cpp | 9 |
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 ¶ms, const byte *userKey, size_t keylen)
{
CRYPTOPP_UNUSED(params);
|