mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
![]() The assembly code that does all 80 rounds of SHA-1 is highly repetitive. Replace it with 20 expansions of a macro that does 4 rounds, using the macro arguments and .if directives to handle the slight variations between rounds. This reduces the length of sha1-ni-asm.S by 129 lines while still producing the exact same object file. This mirrors sha256-ni-asm.S which uses this same strategy. Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20250718191900.42877-3-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org> |
||
---|---|---|
.. | ||
.gitignore | ||
blake2s-core.S | ||
blake2s-glue.c | ||
chacha-avx2-x86_64.S | ||
chacha-avx512vl-x86_64.S | ||
chacha-ssse3-x86_64.S | ||
chacha_glue.c | ||
Kconfig | ||
Makefile | ||
poly1305-x86_64-cryptogams.pl | ||
poly1305_glue.c | ||
sha1-avx2-asm.S | ||
sha1-ni-asm.S | ||
sha1-ssse3-and-avx.S | ||
sha1.h | ||
sha256-avx-asm.S | ||
sha256-avx2-asm.S | ||
sha256-ni-asm.S | ||
sha256-ssse3-asm.S | ||
sha256.h | ||
sha512-avx-asm.S | ||
sha512-avx2-asm.S | ||
sha512-ssse3-asm.S | ||
sha512.h |