aboutsummaryrefslogtreecommitdiffstats
path: root/lib/memweight.c
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2025-07-12 23:22:58 +0000
committerEric Biggers <[email protected]>2025-07-14 18:11:29 +0000
commit70cb6ca58fddb02e269fe743ba75d53d577b5b1c (patch)
treefc0f7e08c047a35fbf765981731a6b24cb9fc652 /lib/memweight.c
parentcrypto: sha1 - Use same state format as legacy drivers (diff)
downloadkernel-70cb6ca58fddb02e269fe743ba75d53d577b5b1c.tar.gz
kernel-70cb6ca58fddb02e269fe743ba75d53d577b5b1c.zip
lib/crypto: arm/sha1: Migrate optimized code into library
Instead of exposing the arm-optimized SHA-1 code via arm-specific crypto_shash algorithms, instead just implement the sha1_blocks() library function. This is much simpler, it makes the SHA-1 library functions be arm-optimized, and it fixes the longstanding issue where the arm-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. To match sha1_blocks(), change the type of the nblocks parameter of the assembly functions from int to size_t. The assembly functions actually already treated it as size_t. Reviewed-by: Ard Biesheuvel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Eric Biggers <[email protected]>
Diffstat (limited to 'lib/memweight.c')
0 files changed, 0 insertions, 0 deletions