aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/engine/def_engine/lookup_hash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstate/engine/def_engine/lookup_hash.cpp')
-rw-r--r--src/libstate/engine/def_engine/lookup_hash.cpp41
1 files changed, 3 insertions, 38 deletions
diff --git a/src/libstate/engine/def_engine/lookup_hash.cpp b/src/libstate/engine/def_engine/lookup_hash.cpp
index 55ee922f9..0bfa08e3b 100644
--- a/src/libstate/engine/def_engine/lookup_hash.cpp
+++ b/src/libstate/engine/def_engine/lookup_hash.cpp
@@ -36,18 +36,10 @@
#include <botan/md4.h>
#endif
-#if defined(BOTAN_HAS_MD4_IA32)
- #include <botan/md4_ia32.h>
-#endif
-
#if defined(BOTAN_HAS_MD5)
#include <botan/md5.h>
#endif
-#if defined(BOTAN_HAS_MD5_IA32)
- #include <botan/md5_ia32.h>
-#endif
-
#if defined(BOTAN_HAS_RIPEMD_128)
#include <botan/rmd128.h>
#endif
@@ -60,18 +52,6 @@
#include <botan/sha160.h>
#endif
-#if defined(BOTAN_HAS_SHA1_IA32)
- #include <botan/sha1_ia32.h>
-#endif
-
-#if defined(BOTAN_HAS_SHA1_SSE2)
- #include <botan/sha1_sse2.h>
-#endif
-
-#if defined(BOTAN_HAS_SHA1_AMD64)
- #include <botan/sha1_amd64.h>
-#endif
-
#if defined(BOTAN_HAS_SHA2)
#include <botan/sha2_32.h>
#include <botan/sha2_64.h>
@@ -128,18 +108,12 @@ Default_Engine::find_hash(const SCAN_Name& request,
return new MD2;
#endif
-#if defined(BOTAN_HAS_MD4_IA32)
- if(request.algo_name() == "MD4")
- return new MD4_IA32;
-#elif defined(BOTAN_HAS_MD4)
+#if defined(BOTAN_HAS_MD4)
if(request.algo_name() == "MD4")
return new MD4;
#endif
-#if defined(BOTAN_HAS_MD5_IA32)
- if(request.algo_name() == "MD5")
- return new MD5_IA32;
-#elif defined(BOTAN_HAS_MD5)
+#if defined(BOTAN_HAS_MD5)
if(request.algo_name() == "MD5")
return new MD5;
#endif
@@ -154,16 +128,7 @@ Default_Engine::find_hash(const SCAN_Name& request,
return new RIPEMD_160;
#endif
-#if defined(BOTAN_HAS_SHA1_SSE2)
- if(request.algo_name() == "SHA-160")
- return new SHA_160_SSE2;
-#elif defined(BOTAN_HAS_SHA1_AMD64)
- if(request.algo_name() == "SHA-160")
- return new SHA_160_AMD64;
-#elif defined(BOTAN_HAS_SHA1_IA32)
- if(request.algo_name() == "SHA-160")
- return new SHA_160_IA32;
-#elif defined(BOTAN_HAS_SHA1)
+#if defined(BOTAN_HAS_SHA1)
if(request.algo_name() == "SHA-160")
return new SHA_160;
#endif