lib/crypto: optimize aes_cmac_128
commit8795ad2030ade771145264be7c64d960dcfdbed7
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)
tree11ff3ac9ac3a3f992c8451175b632179b52cb3eb
parent0824221b4ae18e7ccba3f8057090abc925a02b99
lib/crypto: optimize aes_cmac_128

- We avoid variables in order to do a lazy cleanup
  in aes_cmac_128_final() via ZERO_STRUCTP(ctx)
- We avoid unused memcpy() calls
- We use the optimized aes_block_{xor,lshift}() 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_cmac_128.c
lib/crypto/aes_cmac_128.h