crypto: arm64/aes-ce-cipher - match round key endianness with generic code
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 24 Jul 2017 10:28:10 +0000 (11:28 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Aug 2017 01:27:19 +0000 (09:27 +0800)
commitf402e3115e20b345bd6fbfcf463a506d958c7bf6
tree701bf0f90557307d554f48df36a41224762aa3b6
parentda1793312f7693787e0ed22aa121261c3e0e15c0
crypto: arm64/aes-ce-cipher - match round key endianness with generic code

In order to be able to reuse the generic AES code as a fallback for
situations where the NEON may not be used, update the key handling
to match the byte order of the generic code: it stores round keys
as sequences of 32-bit quantities rather than streams of bytes, and
so our code needs to be updated to reflect that.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/aes-ce-ccm-core.S
arch/arm64/crypto/aes-ce-cipher.c
arch/arm64/crypto/aes-ce.S