]> Gentwo Git Trees - linux/.git/commit
crypto: arm64/sha3 - Update sha3_ce_transform() to prepare for library
authorEric Biggers <ebiggers@kernel.org>
Sun, 26 Oct 2025 05:50:25 +0000 (22:50 -0700)
committerEric Biggers <ebiggers@kernel.org>
Thu, 6 Nov 2025 04:02:35 +0000 (20:02 -0800)
commitbe755eb2b021495e1935813abaf9e1f1de1d8c78
tree75ae1486752afc183b8d51178d35ea13e51929f7
parent6fa873641c0bdfa849130a81aa7339ccfd42b52a
crypto: arm64/sha3 - Update sha3_ce_transform() to prepare for library

- Use size_t lengths, to match the library.

- Pass the block size instead of digest size, and add support for the
  block size that SHAKE128 uses.  This allows the code to be used with
  SHAKE128 and SHAKE256, which don't have the concept of a digest size.
  SHAKE256 has the same block size as SHA3-256, but SHAKE128 has a
  unique block size.  Thus, there are now 5 supported block sizes.

Don't bother changing the "glue" code arm64_sha3_update() too much, as
it gets deleted when the SHA-3 code is migrated into lib/crypto/ anyway.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251026055032.1413733-9-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/arm64/crypto/sha3-ce-core.S
arch/arm64/crypto/sha3-ce-glue.c