]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aesni - Merge GCM_ENC_DEC
authorDave Watson <davejwatson@fb.com>
Mon, 10 Dec 2018 19:56:45 +0000 (19:56 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 Dec 2018 03:52:41 +0000 (11:52 +0800)
commit52b95fc14954b3e361f5368b9d38a4fe5c53f4d0
tree89ea87ec7b0e97b67ecb999bf7f4f6adca0fe604
parent7dd88fb224ddeda2b25ed50e634637d4481f651a
crypto: aesni - Merge GCM_ENC_DEC

The GCM_ENC_DEC routines for AVX and AVX2 are identical, except they
call separate sub-macros.  Pass the macros as arguments, and merge them.
This facilitates additional refactoring, by requiring changes in only
one place.

The GCM_ENC_DEC macro was moved above the CONFIG_AS_AVX* ifdefs,
since it will be used by both AVX and AVX2.

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