]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
crypto: arm64/ghash - register PMULL variants as separate algos
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 25 Jan 2019 09:36:27 +0000 (10:36 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Feb 2019 06:44:38 +0000 (14:44 +0800)
commit5a22b198cd5274470d637d45f0e3bcdc0175a349
tree5378a76fcec89ab77718fd51238e2ed9e2365b25
parenta8a344166343e8283fcbef56b931125098a1cbd4
crypto: arm64/ghash - register PMULL variants as separate algos

The arm64 GHASH 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/ghash-ce-glue.c