commit | f9b1d64678607e132051d232c7a2127f32947d64 | [log] [tgz] |
---|---|---|
author | Dave Watson <davejwatson@fb.com> | Mon Dec 10 19:56:45 2018 +0000 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Sun Dec 23 11:52:41 2018 +0800 |
tree | 89ea87ec7b0e97b67ecb999bf7f4f6adca0fe604 | |
parent | 00c9fe37a7f27a306bcaa5737f0787fe139f8aba [diff] |
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>