Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: arm/ghash - fix big-endian bug in ghash

This fixes a bug in the new v8 Crypto Extensions GHASH code
that only manifests itself in big-endian mode.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Ard Biesheuvel and committed by
Herbert Xu
fa50d7ee a83034f5

+1 -1
+1 -1
arch/arm/crypto/ghash-ce-core.S
··· 40 40 * struct ghash_key const *k, const char *head) 41 41 */ 42 42 ENTRY(pmull_ghash_update) 43 - vld1.8 {SHASH}, [r3] 43 + vld1.64 {SHASH}, [r3] 44 44 vld1.64 {XL}, [r1] 45 45 vmov.i8 MASK, #0xe1 46 46 vext.8 SHASH2, SHASH, SHASH, #8