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)
committerBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 14:12:33 +0000 (15:12 +0100)
commitf11de1799fa89978ed8211a5da2c80edf515ca94
tree0bba0350f9e0c513c4002844531c508df3c7de1e
parent2264f18a8cfe0f21deeca94b64f2e978b7a4c992
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>
Change-Id: Ia5d6a7464a33240cafc544e79becd47018ecb703
arch/arm64/crypto/aes-ce-ccm-core.S
arch/arm64/crypto/aes-ce-cipher-core.c
arch/arm64/crypto/aes-ce.S