From aaf95101ecdb076e7121125b5b59b79338f68e63 Mon Sep 17 00:00:00 2001 From: thib <> Date: Thu, 1 Jul 2010 17:44:20 +0000 Subject: AES-NI engine support for OpenSSL. This is code mostly picked up from upstream OpenSSL, or to be more exact a diff from David Woodhouse . Remember to make includes before doing a build! no objections from djm@ OK deraadt@, reyk@ (AES is about 4.25x faster on his x201 now) --- src/lib/libcrypto/engine/eng_all.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/libcrypto/engine/eng_all.c') diff --git a/src/lib/libcrypto/engine/eng_all.c b/src/lib/libcrypto/engine/eng_all.c index d29cd57dc2..69e54f461e 100644 --- a/src/lib/libcrypto/engine/eng_all.c +++ b/src/lib/libcrypto/engine/eng_all.c @@ -71,6 +71,11 @@ void ENGINE_load_builtin_engines(void) #if !defined(OPENSSL_NO_HW) && !defined(OPENSSL_NO_HW_PADLOCK) ENGINE_load_padlock(); #endif + +#if !defined(OPENSSL_NO_HW) && !defined(OPENSSL_NO_HW_AESNI) + ENGINE_load_aesni(); +#endif + ENGINE_load_dynamic(); #ifndef OPENSSL_NO_STATIC_ENGINE #ifndef OPENSSL_NO_HW -- cgit v1.2.3-55-g6feb