diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-10-11 20:15:19 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-10-21 05:03:45 +0200 |
commit | caf4b9e2b326cc2a5005a5c557274306536ace61 (patch) | |
tree | 27737da2ba2a6598dbe13dc2ecdac25b27327d69 /arch/arm64/crypto/aes-modes.S | |
parent | crypto: arm64/aes-neon - fix for big endian (diff) | |
download | linux-caf4b9e2b326cc2a5005a5c557274306536ace61.tar.xz linux-caf4b9e2b326cc2a5005a5c557274306536ace61.zip |
crypto: arm64/aes-xts-ce: fix for big endian
Emit the XTS tweak literal constants in the appropriate order for a
single 128-bit scalar literal load.
Fixes: 49788fe2a128 ("arm64/crypto: AES-ECB/CBC/CTR/XTS using ARMv8 NEON and Crypto Extensions")
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | arch/arm64/crypto/aes-modes.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/crypto/aes-modes.S b/arch/arm64/crypto/aes-modes.S index f6e372c528eb..c53dbeae79f2 100644 --- a/arch/arm64/crypto/aes-modes.S +++ b/arch/arm64/crypto/aes-modes.S @@ -386,7 +386,8 @@ AES_ENDPROC(aes_ctr_encrypt) .endm .Lxts_mul_x: - .word 1, 0, 0x87, 0 +CPU_LE( .quad 1, 0x87 ) +CPU_BE( .quad 0x87, 1 ) AES_ENTRY(aes_xts_encrypt) FRAME_PUSH |