]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2e0d5771cc5e530057aa22b32acc12165bd4565
treec10ff7015366f00b35579b4e5d8cddbae2beb0f2
parent901269e8969d5bc238ef451391b5066c3bd7f1c9
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