aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/engine/simd_engine/simd_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/engine/simd_engine/simd_engine.cpp')
-rw-r--r--src/lib/engine/simd_engine/simd_engine.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/lib/engine/simd_engine/simd_engine.cpp b/src/lib/engine/simd_engine/simd_engine.cpp
index 35d9cdad4..f60c5beb2 100644
--- a/src/lib/engine/simd_engine/simd_engine.cpp
+++ b/src/lib/engine/simd_engine/simd_engine.cpp
@@ -9,10 +9,6 @@
#include <botan/algo_registry.h>
#include <botan/cpuid.h>
-#if defined(BOTAN_HAS_SHA1_SSE2)
- #include <botan/sha1_sse2.h>
-#endif
-
namespace Botan {
BlockCipher*
@@ -40,12 +36,8 @@ HashFunction*
SIMD_Engine::find_hash(const SCAN_Name& request,
Algorithm_Factory&) const
{
-#if defined(BOTAN_HAS_SHA1_SSE2)
- if(request.algo_name() == "SHA-160" && CPUID::has_sse2())
- return new SHA_160_SSE2;
-#endif
-
- BOTAN_UNUSED(request);
+ if(HashFunction* c = Algo_Registry<HashFunction>::global_registry().make(request, "sse2"))
+ return c;
return nullptr;
}