]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: crct10dif - expose arch-optimized lib function
authorEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:20:47 +0000 (17:20 -0800)
committerEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:23:13 +0000 (17:23 -0800)
commit21dda37f3f8b70dd3531bf388773f1b4c803a130
tree852adb2d0e411a289572af510d44b42c64c2d062
parent0961c3bcefa64d5f0999e2b703391862c733bb52
crypto: crct10dif - expose arch-optimized lib function

Now that crc_t10dif_update() may be directly optimized for each
architecture, make the shash driver for crct10dif register a
crct10dif-$arch algorithm that uses it, instead of only
crct10dif-generic which uses crc_t10dif_generic().

The result is that architecture-optimized crct10dif will remain
available through the shash API once the architectures implement
crc_t10dif_arch() instead of the shash API.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20241202012056.209768-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
crypto/Makefile
crypto/crct10dif_generic.c