OSDN Git Service

crypto: aesni - Split AAD hash calculation to separate macro
authorDave Watson <davejwatson@fb.com>
Wed, 14 Feb 2018 17:39:36 +0000 (09:39 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Feb 2018 14:16:47 +0000 (22:16 +0800)
commitc594c5408552ed8d735b402f5a69b45be7d44ae3
tree7e425a8c3ff4d76846960cba18108cec5f9069c6
parent9ee4a5df220919c0b62165cb2813d63a7bdcb83d
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_asm.S