crypto: arm64/crct10dif - Remove remaining 64x64 PMULL fallback code
authorArd Biesheuvel <ardb@kernel.org>
Tue, 5 Nov 2024 16:09:03 +0000 (17:09 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Nov 2024 11:52:51 +0000 (19:52 +0800)
commit779cee8209c67aae195a81c3a72bac9e127fdaee
tree551178dc2d790533abda5482a960539313051fd3
parent67dfb1b73f423622a0096ea43fb1f5b7336f49e0
crypto: arm64/crct10dif - Remove remaining 64x64 PMULL fallback code

The only remaining user of the fallback implementation of 64x64
polynomial multiplication using 8x8 PMULL instructions is the final
reduction from a 16 byte vector to a 16-bit CRC.

The fallback code is complicated and messy, and this reduction has
little impact on the overall performance, so instead, let's calculate
the final CRC by passing the 16 byte vector to the generic CRC-T10DIF
implementation when running the fallback version.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/crct10dif-ce-core.S
arch/arm64/crypto/crct10dif-ce-glue.c