Skip to content

crypto: aesni: provide generic gcm(aes)

Sabrina Dubroca linux-crypto lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7crypto: aesni: make non-AVX AES-GCM work with any aadlenarch/x86/crypto/aesni-intel_asm.S+132 -370 replies
2/7crypto: aesni: make non-AVX AES-GCM work with all valid auth_tag_lenarch/x86/crypto/aesni-intel_asm.S+48 -140 replies
3/7crypto: aesni: make AVX AES-GCM work with any aadlenarch/x86/crypto/aesni-intel_avx-x86_64.S+88 -340 replies
4/7crypto: aesni: make AVX AES-GCM work with all valid auth_tag_lenarch/x86/crypto/aesni-intel_avx-x86_64.S+24 -70 replies
5/7crypto: aesni: make AVX2 AES-GCM work with any aadlenarch/x86/crypto/aesni-intel_avx-x86_64.S+58 -270 replies
6/7crypto: aesni: make AVX2 AES-GCM work with all valid auth_tag_lenarch/x86/crypto/aesni-intel_avx-x86_64.S+24 -70 replies
7/7crypto: aesni: add generic gcm(aes)arch/x86/crypto/aesni-intel_glue.c+158 -500 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] crypto: aesni: provide generic gcm(aes)

The current aesni AES-GCM implementation only offers support for rfc4106(gcm(aes)). This makes some things a little bit simpler (handling of associated data and authentication tag), but it means that non-IPsec users of gcm(aes) have to rely on gcm_base(ctr-aes-aesni,ghash-clmulni), which is much slower.

This patchset adds handling of all valid authentication tag lengths and of any associated data length to the assembly code, and exposes a generic gcm(aes) AEAD algorithm to the crypto API.

With these patches, performance of MACsec on a single core increases by 40% (from 4.5Gbps to around 6.3Gbps).

Sabrina Dubroca (7):
crypto: aesni: make non-AVX AES-GCM work with any aadlen
crypto: aesni: make non-AVX AES-GCM work with all valid auth_tag_len
crypto: aesni: make AVX AES-GCM work with any aadlen
crypto: aesni: make AVX AES-GCM work with all valid auth_tag_len
crypto: aesni: make AVX2 AES-GCM work with any aadlen
crypto: aesni: make AVX2 AES-GCM work with all valid auth_tag_len
crypto: aesni: add generic gcm(aes)

 arch/x86/crypto/aesni-intel_asm.S        | 231 +++++++++++++++++++------
 arch/x86/crypto/aesni-intel_avx-x86_64.S | 283 ++++++++++++++++++++++---------
 arch/x86/crypto/aesni-intel_glue.c       | 208 +++++++++++++++++------
 3 files changed, 539 insertions(+), 183 deletions(-)
Signature · 1 line
2.12.2