lib: crypto: Plumb in the Intel AES instructions.
authorJeremy Allison <jra@samba.org>
Wed, 6 Sep 2017 18:40:02 +0000 (11:40 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 7 Sep 2017 00:01:08 +0000 (02:01 +0200)
commit53ac0f7c59a9192e4fa88bf3d257ad80379ded23
treed55e1e5051d0c18557df946f74454db356f1bd8e
parent3324b55bde96d4098df2f1138be5fd243206ceba
lib: crypto: Plumb in the Intel AES instructions.

Causes:

AES_set_encrypt_key()
AES_set_decrypt_key()
AES_encrypt()
AES_decrypt()

to probe for the Intel AES instructions at runtime (only once)
and then call the hardware implementations if so, otherwise
fall back to the software implementations.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13008

Based on original work by Justin Maggard <jmaggard@netgear.com>

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/crypto/aes.c
lib/crypto/aes.h
lib/crypto/aesni.h [new file with mode: 0644]
lib/crypto/wscript_build