]> git.baikalelectronics.ru Git - 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)
commit1781c0f5c285961d7ccceae0fa42c25d240f0e8a
tree5378a76fcec89ab77718fd51238e2ed9e2365b25
parent412cecad58559065508e9576902d88bfe317c899
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