[PATCH] lib/crypto: powerpc/aes: Fix rndkey_from_vsx() on big endian CPUs

Eric Biggers ebiggers at kernel.org
Thu Feb 19 08:40:10 AEDT 2026


On Sun, Feb 15, 2026 at 06:21:04PM -0800, Eric Biggers wrote:
> I finally got a big endian PPC64 kernel to boot in QEMU.  The PPC64 VSX
> optimized AES library code does work in that case, with the exception of
> rndkey_from_vsx() which doesn't take into account that the order in
> which the VSX code stores the round key words depends on the endianness.
> So fix rndkey_from_vsx() to do the right thing on big endian CPUs.
> 
> Fixes: 7cf2082e74ce ("lib/crypto: powerpc/aes: Migrate POWER8 optimized code into library")
> Signed-off-by: Eric Biggers <ebiggers at kernel.org>
> ---
>  lib/crypto/powerpc/aes.h | 14 ++++++++------
>  1 file changed, 8 insertions(+), 6 deletions(-)
> 

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next

- Eric


More information about the Linuxppc-dev mailing list