]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: sparc/sha256 - implement library instead of shash
authorEric Biggers <ebiggers@google.com>
Mon, 28 Apr 2025 17:00:35 +0000 (10:00 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 May 2025 10:20:44 +0000 (18:20 +0800)
commit699618d422759fe096a28ad2778d79807a5384ce
treedce83c26404afdca8b27d98d5651a6c0e8c6863d
parent77735920ca9d6456a8135b30396b460791ace262
crypto: sparc/sha256 - implement library instead of shash

Instead of providing crypto_shash algorithms for the arch-optimized
SHA-256 code, instead implement the SHA-256 library.  This is much
simpler, it makes the SHA-256 library functions be arch-optimized, and
it fixes the longstanding issue where the arch-optimized SHA-256 was
disabled by default.  SHA-256 still remains available through
crypto_shash, but individual architectures no longer need to handle it.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/sparc/crypto/Kconfig
arch/sparc/crypto/Makefile
arch/sparc/crypto/sha256_glue.c [deleted file]
arch/sparc/lib/Makefile
arch/sparc/lib/crypto/Kconfig [new file with mode: 0644]
arch/sparc/lib/crypto/Makefile [new file with mode: 0644]
arch/sparc/lib/crypto/sha256.c [new file with mode: 0644]
arch/sparc/lib/crypto/sha256_asm.S [moved from arch/sparc/crypto/sha256_asm.S with 96% similarity]
lib/crypto/Kconfig