diff options
author | lloyd <[email protected]> | 2009-11-06 15:48:58 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-11-06 15:48:58 +0000 |
commit | 89da502ff80a9c63038b8b02a5062e460dff4649 (patch) | |
tree | 336208ded07cf9adcf7144d5748109fa24ad026c /src/libstate/libstate.cpp | |
parent | 2fa888b0147a644de0df42fe0721eeb385810714 (diff) |
Stub for AES class using Intel's AES-NI instructions and an engine for
providing it. Also stubs in the engine for VIA's AES instructions, but
needs CPUID checking also.
Diffstat (limited to 'src/libstate/libstate.cpp')
-rw-r--r-- | src/libstate/libstate.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstate/libstate.cpp b/src/libstate/libstate.cpp index c78bce62d..8b039a97a 100644 --- a/src/libstate/libstate.cpp +++ b/src/libstate/libstate.cpp @@ -37,6 +37,10 @@ #include <botan/eng_amd64.h> #endif +#if defined(BOTAN_HAS_ENGINE_AES_ISA) + #include <botan/aes_isa_engine.h> +#endif + #if defined(BOTAN_HAS_ENGINE_SIMD) #include <botan/simd_engine.h> #endif @@ -288,6 +292,10 @@ void Library_State::initialize(bool thread_safe) engines.push_back(new OpenSSL_Engine); #endif +#if defined(BOTAN_HAS_ENGINE_AES_ISA) + engines.push_back(new AES_ISA_Engine); +#endif + #if defined(BOTAN_HAS_ENGINE_SIMD) engines.push_back(new SIMD_Engine); #endif |