Skip to content

crypto: add SIMD helpers for AEADs

Eric Biggers linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9crypto: simd - support wrapping AEAD algorithmscrypto/simd.c include/crypto/internal/simd.h+289 -00 replies
2/9crypto: x86/aesni - convert to use skcipher SIMD bulk registrationarch/x86/crypto/aesni-intel_glue.c+7 -360 replies
3/9crypto: x86/aesni - convert to use AEAD SIMD helpersarch/x86/crypto/aesni-intel_glue.c+15 -1460 replies
4/9crypto: x86/aegis128 - convert to use AEAD SIMD helpersarch/x86/crypto/aegis128-aesni-glue.c crypto/Kconfig+31 -1280 replies
5/9crypto: x86/aegis128l - convert to use AEAD SIMD helpersarch/x86/crypto/aegis128l-aesni-glue.c crypto/Kconfig+31 -1280 replies
6/9crypto: x86/aegis256 - convert to use AEAD SIMD helpersarch/x86/crypto/aegis256-aesni-glue.c crypto/Kconfig+31 -1280 replies
7/9crypto: x86/morus640 - convert to use AEAD SIMD helpersarch/x86/crypto/morus640-sse2-glue.c arch/x86/crypto/morus640_glue.c crypto/Kconfig +1 more+30 -1480 replies
8/9crypto: x86/morus1280 - convert to use AEAD SIMD helpersarch/x86/crypto/morus1280-avx2-glue.c arch/x86/crypto/morus1280-sse2-glue.c arch/x86/crypto/morus1280_glue.c +2 more+37 -1530 replies
9/9crypto: testmgr - remove workaround for AEADs that modify aead_requestcrypto/testmgr.c+0 -30 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchOndrej Mosnacek
SeriesR-b
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] crypto: add SIMD helpers for AEADs

This series updates crypto_simd to support wrapping AEADs, then makes all AEADs that implement the same functionality use crypto_simd instead.

This simplifies the code, and it also fixes the bug where these algorithms modify the user-provided aead_request. This was a problem because users may expect to be able to use the same aead_request for another encryption/decryption without reinitializing everything. The last patch removes the test workaround now that this bug is fixed.

Eric Biggers (9):
crypto: simd - support wrapping AEAD algorithms
crypto: x86/aesni - convert to use skcipher SIMD bulk registration
crypto: x86/aesni - convert to use AEAD SIMD helpers
crypto: x86/aegis128 - convert to use AEAD SIMD helpers
crypto: x86/aegis128l - convert to use AEAD SIMD helpers
crypto: x86/aegis256 - convert to use AEAD SIMD helpers
crypto: x86/morus640 - convert to use AEAD SIMD helpers
crypto: x86/morus1280 - convert to use AEAD SIMD helpers
crypto: testmgr - remove workaround for AEADs that modify aead_request

 arch/x86/crypto/aegis128-aesni-glue.c  | 157 +++------------
 arch/x86/crypto/aegis128l-aesni-glue.c | 157 +++------------
 arch/x86/crypto/aegis256-aesni-glue.c  | 157 +++------------
 arch/x86/crypto/aesni-intel_glue.c     | 204 ++-----------------
 arch/x86/crypto/morus1280-avx2-glue.c  |  12 +-
 arch/x86/crypto/morus1280-sse2-glue.c  |  12 +-
 arch/x86/crypto/morus1280_glue.c       |  85 --------
 arch/x86/crypto/morus640-sse2-glue.c   |  12 +-
 arch/x86/crypto/morus640_glue.c        |  85 --------
 crypto/Kconfig                         |  10 +-
 crypto/simd.c                          | 269 +++++++++++++++++++++++++
 crypto/testmgr.c                       |   3 -
 include/crypto/internal/simd.h         |  20 ++
 include/crypto/morus1280_glue.h        |  79 ++------
 include/crypto/morus640_glue.h         |  79 ++------
 15 files changed, 471 insertions(+), 870 deletions(-)
Signature · 1 line
2.21.0