]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aesni - Introduce gcm_context_data
authorDave Watson <davejwatson@fb.com>
Mon, 10 Dec 2018 19:57:00 +0000 (19:57 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 Dec 2018 03:52:42 +0000 (11:52 +0800)
commit33083a0c16cff7118d942e7eb039c070f4fd92cf
tree1d537f4c81832ce097a535e6593d17ae5b8eca4f
parenta343994aef65a48518b8b0c69f3da7b9e61c1928
crypto: aesni - Introduce gcm_context_data

Add the gcm_context_data structure to the avx asm routines.
This will be necessary to support both 256 bit keys and
scatter/gather.

The pre-computed HashKeys are now stored in the gcm_context_data
struct, which is expanded to hold the greater number of hashkeys
necessary for avx.

Loads and stores to the new struct are always done unlaligned to
avoid compiler issues, see 21655d23 "Use unaligned loads from
gcm_context_data"

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