mirror-linux/arch/riscv/crypto
Eric Biggers bf52d93865 crypto: riscv/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.

To match sha256_blocks_arch(), change the type of the nblocks parameter
of the assembly function from int to size_t.  The assembly function
actually already treated it as size_t.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-05-05 18:20:43 +08:00
..
Kconfig crypto: riscv/sha256 - implement library instead of shash 2025-05-05 18:20:43 +08:00
Makefile crypto: riscv/sha256 - implement library instead of shash 2025-05-05 18:20:43 +08:00
aes-macros.S
aes-riscv64-glue.c crypto: riscv - add vector crypto accelerated AES-CBC-CTS 2024-03-20 08:56:11 -07:00
aes-riscv64-zvkned-zvbb-zvkg.S
aes-riscv64-zvkned-zvkb.S
aes-riscv64-zvkned.S crypto: riscv - add vector crypto accelerated AES-CBC-CTS 2024-03-20 08:56:11 -07:00
ghash-riscv64-glue.c crypto: riscv/ghash - Use API partial block handling 2025-04-23 11:33:47 +08:00
ghash-riscv64-zvkg.S crypto: riscv - add vector crypto accelerated GHASH 2024-01-22 17:55:20 -08:00
sha512-riscv64-glue.c crypto: riscv/sha512 - Use API partial block handling 2025-04-23 15:52:46 +08:00
sha512-riscv64-zvknhb-zvkb.S crypto: riscv - Use SYM_FUNC_START for functions only called directly 2025-04-25 10:46:05 +08:00
sm3-riscv64-glue.c crypto: riscv/sm3 - Use API partial block handling 2025-04-23 15:52:47 +08:00
sm3-riscv64-zvksh-zvkb.S crypto: riscv - Use SYM_FUNC_START for functions only called directly 2025-04-25 10:46:05 +08:00
sm4-riscv64-glue.c crypto: riscv - add vector crypto accelerated SM4 2024-01-22 17:55:24 -08:00
sm4-riscv64-zvksed-zvkb.S crypto: riscv - add vector crypto accelerated SM4 2024-01-22 17:55:24 -08:00