aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-03-23 16:33:09 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-03-24 07:24:56 -0400
commitfa50d7ee45bfd6db66b38fc4930ce3cc3661b845 (patch)
tree44fb9986e027cd983a3a1085bc7a1b81c1bc7f4f /arch
parenta83034f5cb135bceb5b23dce1746ef2d98c68234 (diff)
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/crypto/ghash-ce-core.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/crypto/ghash-ce-core.S b/arch/arm/crypto/ghash-ce-core.S
index e643a15eadf2..f6ab8bcc9efe 100644
--- a/arch/arm/crypto/ghash-ce-core.S
+++ b/arch/arm/crypto/ghash-ce-core.S
@@ -40,7 +40,7 @@
40 * struct ghash_key const *k, const char *head) 40 * struct ghash_key const *k, const char *head)
41 */ 41 */
42ENTRY(pmull_ghash_update) 42ENTRY(pmull_ghash_update)
43 vld1.8 {SHASH}, [r3] 43 vld1.64 {SHASH}, [r3]
44 vld1.64 {XL}, [r1] 44 vld1.64 {XL}, [r1]
45 vmov.i8 MASK, #0xe1 45 vmov.i8 MASK, #0xe1
46 vext.8 SHASH2, SHASH, SHASH, #8 46 vext.8 SHASH2, SHASH, SHASH, #8