diff options
author | lloyd <[email protected]> | 2009-11-29 13:14:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-11-29 13:14:33 +0000 |
commit | 70ba49797c45db0c28a803341570f7d832c16e7d (patch) | |
tree | 246070d469b4df6528e85e61b05a9b892ba08736 /src/engine | |
parent | 68500fd6d481ebbb2474ca20d233cae80ec1a8eb (diff) | |
parent | 4a94c35f8c9b73666a53a14a9b0a2ee50a742e89 (diff) |
propagate from branch 'net.randombit.botan' (head ac4d8fecb28374d06094da3457aa1e23f77dfa52)
to branch 'net.randombit.botan.c++0x' (head 00f0eecf3374a14b6ab907bd235488f902608de4)
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/simd_engine/simd_engine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/simd_engine/simd_engine.cpp b/src/engine/simd_engine/simd_engine.cpp index 7e15f9ec1..fdb1644d0 100644 --- a/src/engine/simd_engine/simd_engine.cpp +++ b/src/engine/simd_engine/simd_engine.cpp @@ -6,6 +6,7 @@ */ #include <botan/simd_engine.h> +#include <botan/simd_32.h> #include <botan/cpuid.h> #if defined(BOTAN_HAS_SERPENT_SIMD) @@ -26,6 +27,9 @@ BlockCipher* SIMD_Engine::find_block_cipher(const SCAN_Name& request, Algorithm_Factory&) const { + if(!SIMD_32::enabled()) + return 0; + #if defined(BOTAN_HAS_SERPENT_SIMD) if(request.algo_name() == "Serpent") return new Serpent_SIMD; |