crypto: mips/sha256 - implement library instead of shash
authorEric Biggers <ebiggers@google.com>
Mon, 28 Apr 2025 17:00:30 +0000 (10:00 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 May 2025 10:20:43 +0000 (18:20 +0800)
commitb67b6f9adb326f4a816b11bc3dabf9190070f536
tree6a07add9482568fb731e25b2f45d205c94e35ab2
parent6e36be511d2846f40c0095c408797ceef17db4f5
crypto: mips/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/mips/cavium-octeon/Kconfig
arch/mips/cavium-octeon/crypto/octeon-sha256.c
arch/mips/configs/cavium_octeon_defconfig
arch/mips/crypto/Kconfig