crypto: arm/blake2s - fix for big endian
authorEric Biggers <ebiggers@google.com>
Wed, 10 Mar 2021 07:27:26 +0000 (23:27 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Mar 2021 10:59:45 +0000 (21:59 +1100)
commitd2f2516a3882c0c6463e33c9b112b39bd483f821
tree9cb75588236bf2336464ecf5262cdd49599380a6
parent0914999744e5f233d4690aab97b09c780f9c2cb0
crypto: arm/blake2s - fix for big endian

The new ARM BLAKE2s code doesn't work correctly (fails the self-tests)
in big endian kernel builds because it doesn't swap the endianness of
the message words when loading them.  Fix this.

Fixes: 5172d322d34c ("crypto: arm/blake2s - add ARM scalar optimized BLAKE2s")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/blake2s-core.S