lib: crypto: Plumb in the Intel AES instructions.
commit9d193a942fdbcab135e40d06422eab640d33d00b
authorJeremy Allison <jra@samba.org>
Wed, 6 Sep 2017 18:40:02 +0000 (6 11:40 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sun, 10 Sep 2017 23:18:19 +0000 (11 01:18 +0200)
treeac959a056c6f285e35d4268e6e6e3a6cee97a2d3
parent8e2afc83b012bf1caa662a03c4cff28d9f0259a6
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>
(cherry picked from commit 53ac0f7c59a9192e4fa88bf3d257ad80379ded23)
lib/crypto/aes.c
lib/crypto/aes.h
lib/crypto/aesni.h [new file with mode: 0644]
lib/crypto/wscript_build