]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/crc-t10dif: expose CRC-T10DIF function through lib
authorEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:20:48 +0000 (17:20 -0800)
committerEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:23:13 +0000 (17:23 -0800)
commited4bc981d52b49c5d35bfc4cacdac98ff135add3
tree46565a3abcb8c3f452adc9e2e9cbbecb5803f880
parent21dda37f3f8b70dd3531bf388773f1b4c803a130
x86/crc-t10dif: expose CRC-T10DIF function through lib

Move the x86 CRC-T10DIF assembly code into the lib directory and wire it
up to the library interface.  This allows it to be used without going
through the crypto API.  It remains usable via the crypto API too via
the shash algorithms that use the library interface.  Thus all the
arch-specific "shash" code becomes unnecessary and is removed.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20241202012056.209768-5-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/x86/Kconfig
arch/x86/crypto/Kconfig
arch/x86/crypto/Makefile
arch/x86/crypto/crct10dif-pclmul_glue.c [deleted file]
arch/x86/lib/Makefile
arch/x86/lib/crc-t10dif-glue.c [new file with mode: 0644]
arch/x86/lib/crct10dif-pcl-asm_64.S [moved from arch/x86/crypto/crct10dif-pcl-asm_64.S with 100% similarity]