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

Move the arm 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/arm/crypto/crct10dif-ce-glue.c to
arch/arm/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-6-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/arm/Kconfig
arch/arm/crypto/Kconfig
arch/arm/crypto/Makefile
arch/arm/crypto/crct10dif-ce-glue.c [deleted file]
arch/arm/lib/Makefile
arch/arm/lib/crc-t10dif-core.S [moved from arch/arm/crypto/crct10dif-ce-core.S with 100% similarity]
arch/arm/lib/crc-t10dif-glue.c [new file with mode: 0644]