linux/arch/powerpc/crypto
Eric Biggers 6b9ae8cfaa lib/crypto: powerpc/sha1: Migrate optimized code into library
Instead of exposing the powerpc-optimized SHA-1 code via
powerpc-specific crypto_shash algorithms, instead just implement the
sha1_blocks() library function.  This is much simpler, it makes the
SHA-1 library functions be powerpc-optimized, and it fixes the
longstanding issue where the powerpc-optimized SHA-1 code was disabled
by default.  SHA-1 still remains available through crypto_shash, but
individual architectures no longer need to handle it.

Note: to see the diff from arch/powerpc/crypto/sha1-spe-glue.c to
lib/crypto/powerpc/sha1.h, view this commit with 'git show -M10'.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250712232329.818226-11-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
2025-07-14 11:11:49 -07:00
..
.gitignore powerpc/crypto: Add generated P8 asm to .gitignore 2024-06-04 17:45:46 +10:00
aes-gcm-p10-glue.c crypto: skcipher - Make skcipher_walk src.virt.addr const 2025-03-15 16:21:22 +08:00
aes-gcm-p10.S crypto: powerpc/p10-aes-gcm - Re-write AES/GCM stitched implementation 2024-10-05 13:22:05 +08:00
aes-spe-core.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
aes-spe-glue.c cyrpto: powerpc/aes - delete the rebundant word "block" in comments 2022-07-22 16:22:04 +08:00
aes-spe-keys.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
aes-spe-modes.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
aes-spe-regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
aes-tab-4k.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
aes.c crypto: powerpc - Include uaccess.h and others 2025-04-16 15:36:23 +08:00
aes_cbc.c crypto: powerpc - Include uaccess.h and others 2025-04-16 15:36:23 +08:00
aes_ctr.c crypto: powerpc - Include uaccess.h and others 2025-04-16 15:36:23 +08:00
aes_xts.c crypto: powerpc - Include uaccess.h and others 2025-04-16 15:36:23 +08:00
aesp8-ppc.h crypto: vmx - Move to arch/powerpc/crypto 2024-01-26 16:36:57 +08:00
aesp8-ppc.pl crypto: vmx - Move to arch/powerpc/crypto 2024-01-26 16:36:57 +08:00
aesp10-ppc.pl powerpc/crypto: Fix aes-gcm-p10 link errors 2023-05-30 15:50:32 +10:00
curve25519-ppc64le-core.c crypto: ppc/curve25519 - add missing MODULE_DESCRIPTION() macro 2024-08-02 21:11:20 +08:00
curve25519-ppc64le_asm.S crypto: ppc/curve25519 - Low-level primitives for ppc64le 2024-05-31 17:34:56 +08:00
ghash.c crypto: powerpc/ghash - Use API partial block handling 2025-04-23 11:33:47 +08:00
ghashp8-ppc.pl crypto: vmx - Move to arch/powerpc/crypto 2024-01-26 16:36:57 +08:00
ghashp10-ppc.pl powerpc/crypto: Fix aes-gcm-p10 link errors 2023-05-30 15:50:32 +10:00
Kconfig lib/crypto: powerpc/sha1: Migrate optimized code into library 2025-07-14 11:11:49 -07:00
Makefile lib/crypto: powerpc/sha1: Migrate optimized code into library 2025-07-14 11:11:49 -07:00
md5-asm.S powerpc: flexible GPR range save/restore macros 2021-11-29 23:15:20 +11:00
md5-glue.c crypto: powerpc/md5 - Use API partial block handling 2025-04-23 11:33:47 +08:00
ppc-xlate.pl crypto: p10-aes-gcm - A perl script to process PowerPC assembler source. 2023-03-14 17:06:43 +08:00
vmx.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00