crypto: arm64/crct10dif - register PMULL variants as separate algos
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 25 Jan 2019 09:36:26 +0000 (10:36 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Feb 2019 06:47:01 +0000 (14:47 +0800)
commit8336bdf12a9ea5bb77bb32d215a34485fb66245c
treec10ff7015366f00b35579b4e5d8cddbae2beb0f2
parent1b2ca568ca23a6cfa6aa28e8675b54940807231d
crypto: arm64/crct10dif - register PMULL variants as separate algos

The arm64 CRC-T10DIF implementation either uses 8-bit or 64-bit
polynomial multiplication instructions, since the latter are
faster but not mandatory in the architecture.

Since that prevents us from testing both implementations on the
same system, let's expose both implementations to the crypto API,
with the priorities reflecting that the P64 version is the
preferred one if available.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/crct10dif-ce-glue.c