]> Git Repo - J-linux.git/commit
crypto: arm64/chacha - fix hchacha_block_neon() for big endian
authorEric Biggers <[email protected]>
Sat, 23 Feb 2019 06:54:08 +0000 (22:54 -0800)
committerHerbert Xu <[email protected]>
Thu, 28 Feb 2019 06:37:48 +0000 (14:37 +0800)
commitf86d17e9efe010b894db231329ee36b24bcc1b24
treee94ae38cfe1a3e9bbbc41765a1aa10de14097f84
parent4b6d196c9cec548a6b1cf5bb07b4a8b8d375829d
crypto: arm64/chacha - fix hchacha_block_neon() for big endian

On big endian arm64 kernels, the xchacha20-neon and xchacha12-neon
self-tests fail because hchacha_block_neon() outputs little endian words
but the C code expects native endianness.  Fix it to output the words in
native endianness (which also makes it match the arm32 version).

Fixes: cc7cf991e9eb ("crypto: arm64/chacha20 - add XChaCha20 support")
Signed-off-by: Eric Biggers <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
arch/arm64/crypto/chacha-neon-core.S
This page took 0.050604 seconds and 4 git commands to generate.