crypto: aesni - Split AAD hash calculation to separate macro
authorDave Watson <davejwatson@fb.com>
Mon, 10 Dec 2018 19:58:19 +0000 (19:58 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 Dec 2018 03:52:42 +0000 (11:52 +0800)
commit38003cd26c9f59da77d98927fb9af58732da207a
tree2e973dd27e7c8ce3d92da1a6bb02f36d3528eb48
parente377bedb09d6970ad27d7714b0a6365ee7e4d732
crypto: aesni - Split AAD hash calculation to separate macro

AAD hash only needs to be calculated once for each scatter/gather operation.
Move it to its own macro, and call it from GCM_INIT instead of
INITIAL_BLOCKS.

Signed-off-by: Dave Watson <davejwatson@fb.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_avx-x86_64.S
arch/x86/crypto/aesni-intel_glue.c