From 89da502ff80a9c63038b8b02a5062e460dff4649 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 6 Nov 2009 15:48:58 +0000 Subject: 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. --- src/libstate/libstate.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libstate') 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 #endif +#if defined(BOTAN_HAS_ENGINE_AES_ISA) + #include +#endif + #if defined(BOTAN_HAS_ENGINE_SIMD) #include #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 -- cgit v1.2.3