crypto: powerpc/sha256 - implement library instead of shash
authorEric Biggers <ebiggers@google.com>
Mon, 28 Apr 2025 17:00:31 +0000 (10:00 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 May 2025 10:20:43 +0000 (18:20 +0800)
commit1a49c573bf886349c7bc958b331c700cf18601d8
treed45679be9b62a0053c9ce64568069eb5b7b0a8ff
parentb67b6f9adb326f4a816b11bc3dabf9190070f536
crypto: powerpc/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/powerpc/crypto/Kconfig
arch/powerpc/crypto/Makefile
arch/powerpc/crypto/sha256-spe-asm.S [deleted file]
arch/powerpc/crypto/sha256-spe-glue.c [deleted file]
arch/powerpc/lib/crypto/Kconfig
arch/powerpc/lib/crypto/Makefile
arch/powerpc/lib/crypto/sha256-spe-asm.S [new file with mode: 0644]
arch/powerpc/lib/crypto/sha256.c [new file with mode: 0644]