Skip to content

x86/crypto: gcmaes AVX scatter/gather support

Dave Watson linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12x86/crypto: aesni: Merge GCM_ENC_DECarch/x86/crypto/aesni-intel_avx-x86_64.S+318 -6330 replies
2/12x86/crypto: aesni: Introduce gcm_context_dataarch/x86/crypto/aesni-intel_avx-x86_64.S arch/x86/crypto/aesni-intel_glue.c+215 -2210 replies
3/12x86/crypto: aesni: Macro-ify func save/restorearch/x86/crypto/aesni-intel_avx-x86_64.S+36 -580 replies
4/12x86/crypto: aesni: support 256 byte keys in avx asmarch/x86/crypto/aesni-intel_avx-x86_64.S arch/x86/crypto/aesni-intel_glue.c+145 -610 replies
5/12x86/crypto: aesni: Add GCM_COMPLETE macroarch/x86/crypto/aesni-intel_avx-x86_64.S+8 -00 replies
6/12x86/crypto: aesni: Split AAD hash calculation to separate macroarch/x86/crypto/aesni-intel_avx-x86_64.S arch/x86/crypto/aesni-intel_glue.c+115 -1410 replies
7/12x86/crypto: aesni: Merge avx precompute functionsarch/x86/crypto/aesni-intel_avx-x86_64.S+27 -490 replies
8/12x86/crypto: aesni: Fill in new context data structuresarch/x86/crypto/aesni-intel_avx-x86_64.S+37 -140 replies
9/12x86/crypto: aesni: Move ghash_mul to GCM_COMPLETEarch/x86/crypto/aesni-intel_avx-x86_64.S+10 -40 replies
10/12x86/crypto: aesni: Introduce READ_PARTIAL_BLOCK macroarch/x86/crypto/aesni-intel_avx-x86_64.S+59 -430 replies
11/12x86/crypto: aesni: Introduce partial block macroarch/x86/crypto/aesni-intel_avx-x86_64.S+150 -60 replies
12/12x86/crypto: aesni: Add scatter/gather avx stubs, and use them in Carch/x86/crypto/aesni-intel_avx-x86_64.S arch/x86/crypto/aesni-intel_glue.c+198 -3320 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] x86/crypto: gcmaes AVX scatter/gather support

This patch set refactors the x86 aes/gcm AVX crypto routines to support true scatter/gather by adding gcm_enc/dec_update methods.

It is similar to the previous SSE patchset starting at e1fd316f. Unlike the SSE routines, the AVX routines did not support keysize 192 & 256, this patchset also adds support for those keysizes.

The final patch updates the C glue code, passing everything through the crypt_by_sg() function instead of the previous memcpy based routines.

Dave Watson (12):
x86/crypto: aesni: Merge GCM_ENC_DEC
x86/crypto: aesni: Introduce gcm_context_data x86/crypto: aesni: Macro-ify func save/restore x86/crypto: aesni: support 256 byte keys in avx asm x86/crypto: aesni: Add GCM_COMPLETE macro
x86/crypto: aesni: Split AAD hash calculation to separate macro x86/crypto: aesni: Merge avx precompute functions x86/crypto: aesni: Fill in new context data structures x86/crypto: aesni: Move ghash_mul to GCM_COMPLETE x86/crypto: aesni: Introduce READ_PARTIAL_BLOCK macro x86/crypto: aesni: Introduce partial block macro x86/crypto: aesni: Add scatter/gather avx stubs, and use them in C

 arch/x86/crypto/aesni-intel_avx-x86_64.S | 2125 ++++++++++------------
 arch/x86/crypto/aesni-intel_glue.c       |  353 ++--
 2 files changed, 1117 insertions(+), 1361 deletions(-)
Signature · 1 line
2.17.1