aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/simd_engine/simd_engine.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-29 01:40:43 +0000
committerlloyd <[email protected]>2009-10-29 01:40:43 +0000
commit1bc4d2fb37c8f1e6e94a65ec67062826393dda7f (patch)
treea6d686a796d255d0e1b55ac341d79236a41b018f /src/engine/simd_engine/simd_engine.h
parent16adc6a5424aad033a18bae872586a52e54d7d8e (diff)
Rename SSE2 stuff to be generally SIMD since it supports at least SSE2
and Altivec (though Altivec is seemingly slower ATM...)
Diffstat (limited to 'src/engine/simd_engine/simd_engine.h')
-rw-r--r--src/engine/simd_engine/simd_engine.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/engine/simd_engine/simd_engine.h b/src/engine/simd_engine/simd_engine.h
new file mode 100644
index 000000000..f7df6ff77
--- /dev/null
+++ b/src/engine/simd_engine/simd_engine.h
@@ -0,0 +1,29 @@
+/**
+* SIMD Assembly Engine
+* (C) 1999-2009 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#ifndef BOTAN_SIMD_ENGINE_H__
+#define BOTAN_SIMD_ENGINE_H__
+
+#include <botan/engine.h>
+
+namespace Botan {
+
+class BOTAN_DLL SIMD_Engine : public Engine
+ {
+ public:
+ std::string provider_name() const { return "sse2"; }
+ private:
+ BlockCipher* find_block_cipher(const SCAN_Name&,
+ Algorithm_Factory&) const;
+
+ HashFunction* find_hash(const SCAN_Name& reqeust,
+ Algorithm_Factory&) const;
+ };
+
+}
+
+#endif