lib/crypto: optimize aes_gcm_128
commit965f04d5e6c34cc56809ab42abe506ae1a7530ce
authorStefan Metzmacher <metze@samba.org>
Tue, 11 Aug 2015 22:59:58 +0000 (12 00:59 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 27 Aug 2015 18:23:20 +0000 (27 20:23 +0200)
treefdeb5081e76121705b8d1b780c43c3b03db68c67
parent7e8333dac3922104849da0fde9528e2c2c36b6c9
lib/crypto: optimize aes_gcm_128

- We avoid variables in order to do a lazy cleanup
  in aes_ccm_128_digest() via ZERO_STRUCTP(ctx)
- We use the optimized aes_block_{xor,rshift}() functions
- Align AES_BLOCK_SIZE arrays to 8 bytes

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/crypto/aes_gcm_128.c
lib/crypto/aes_gcm_128.h