All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Migrate SPARC64 accelerated AES modes into library
@ 2026-11-18  4:10 Eric Biggers
  2026-11-18  4:10 ` [PATCH 1/4] lib/crypto: sparc/aes: Add and use round key load helper Eric Biggers
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Eric Biggers @ 2026-11-18  4:10 UTC (permalink / raw)
  To: linux-crypto
  Cc: Ard Biesheuvel, Jason A . Donenfeld, Herbert Xu, sparclinux,
	Andreas Larsson, David S . Miller, Stian Halseth, Magnus Lindholm,
	John Paul Adrian Glaubitz, Eric Biggers

This series is targeting libcrypto-next.  It can also be retrieved from:

    git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git aes-sparc-v1

This series migrates the SPARC64 crypto opcodes accelerated
implementations of AES-ECB, AES-CBC, and AES-CTR into lib/crypto/.

This makes the AES-ECB, AES-CBC, and AES-CTR library APIs be properly
accelerated on SPARC64, while still being available in the
crypto_skcipher API via crypto/aes.c.  As usual, the longstanding issue
of acceleration being disabled by default is also fixed.

After this, the only thing left in arch/sparc/crypto/ is Camellia.

Tested in QEMU (specifically commit 97c88c61d45d, which has Stian
Halseth's recent changes that added support for the AES, CRC32C, SHA1,
SHA256, and SHA512 opcodes) with the new ECB, CBC, and CTR KUnit tests
(https://lore.kernel.org/r/20261116062849.1071038-1-ebiggers@kernel.org/)
and CONFIG_CRYPTO_SELFTESTS_FULL=y, using Stian Halseth's patch that
makes the SPARC kernel detect QEMU's support for the crypto opcodes
(https://lore.kernel.org/r/20261117112914.2300417-1-stian@itx.no/).

Eric Biggers (4):
  lib/crypto: sparc/aes: Add and use round key load helper
  lib/crypto: sparc/aes-ctr: Migrate optimized code into library
  lib/crypto: sparc/aes-ecb: Migrate optimized code into library
  lib/crypto: sparc/aes-cbc: Migrate optimized code into library

 arch/sparc/crypto/Kconfig    |  10 -
 arch/sparc/crypto/Makefile   |   2 -
 arch/sparc/crypto/aes_glue.c | 344 ----------------------------------
 crypto/aes.c                 |  13 +-
 include/crypto/aes.h         |  39 ----
 lib/crypto/sparc/aes.h       | 348 +++++++++++++++++++++++++++++++----
 lib/crypto/sparc/aes_asm.S   |  24 ++-
 7 files changed, 334 insertions(+), 446 deletions(-)
 delete mode 100644 arch/sparc/crypto/aes_glue.c


base-commit: 30e5781e2cd0aeffd80d524bbdac176579a3235f
-- 
2.56.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-18  4:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18  4:10 [PATCH 0/4] Migrate SPARC64 accelerated AES modes into library Eric Biggers
2026-11-18  4:10 ` [PATCH 1/4] lib/crypto: sparc/aes: Add and use round key load helper Eric Biggers
2026-11-18  4:10 ` [PATCH 2/4] lib/crypto: sparc/aes-ctr: Migrate optimized code into library Eric Biggers
2026-11-18  4:10 ` [PATCH 3/4] lib/crypto: sparc/aes-ecb: " Eric Biggers
2026-11-18  4:10 ` [PATCH 4/4] lib/crypto: sparc/aes-cbc: " Eric Biggers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.