diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-10-11 18:15:13 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-12 10:39:34 (GMT) |
commit | d33a490770e5b5bde66b2773b6e0162039dae11a (patch) | |
tree | 893aaddbc168fab601c13712aea85d0263f6bf26 /security/keys/proc.c | |
parent | eb64cbc5665d6756cebe85977e493fe0507f0bdb (diff) | |
download | linux-d33a490770e5b5bde66b2773b6e0162039dae11a.tar.xz |
crypto: arm64/aes-ce - fix for big endian
commit 1803b9a52c4e5a5dbb8a27126f6bc06939359753 upstream.
The core AES cipher implementation that uses ARMv8 Crypto Extensions
instructions erroneously loads the round keys as 64-bit quantities,
which causes the algorithm to fail when built for big endian. In
addition, the key schedule generation routine fails to take endianness
into account as well, when loading the combining the input key with
the round constants. So fix both issues.
Fixes: 12ac3efe74f8 ("arm64/crypto: use crypto instructions to generate AES key schedule")
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/keys/proc.c')
0 files changed, 0 insertions, 0 deletions