arm64/crc-t10dif: expose CRC-T10DIF function through lib
authorEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:20:50 +0000 (17:20 -0800)
committerEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:23:13 +0000 (17:23 -0800)
commit2051da858534a73589cdb27af914fe1c03b9ee98
tree0bfa524aaf932a4503dbaca37c8a41d695c61874
parent1684e8293605062dee45a5e4118fe8db6cd0d9d9
arm64/crc-t10dif: expose CRC-T10DIF function through lib

Move the arm64 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.

Note: to see the diff from arch/arm64/crypto/crct10dif-ce-glue.c to
arch/arm64/lib/crc-t10dif-glue.c, view this commit with 'git show -M10'.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20241202012056.209768-7-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/arm64/Kconfig
arch/arm64/configs/defconfig
arch/arm64/crypto/Kconfig
arch/arm64/crypto/Makefile
arch/arm64/crypto/crct10dif-ce-core.S [deleted file]
arch/arm64/crypto/crct10dif-ce-glue.c [deleted file]
arch/arm64/lib/Makefile
arch/arm64/lib/crc-t10dif-core.S [new file with mode: 0644]
arch/arm64/lib/crc-t10dif-glue.c [new file with mode: 0644]
tools/testing/selftests/arm64/fp/kernel-test.c