commit | 174122c39c369ed924d2608fc0be0171997ce800 | [log] [tgz] |
---|---|---|
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | Tue Oct 11 19:15:16 2016 +0100 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Oct 21 11:03:43 2016 +0800 |
tree | b04179b9129e8428867354be4a16b26abdb19686 | |
parent | ee71e5f1e7d25543ee63a80451871f8985b8d431 [diff] |
crypto: arm64/sha2-ce - fix for big endian The SHA256 digest is an array of 8 32-bit quantities, so we should refer to them as such in order for this code to work correctly when built for big endian. So replace 16 byte scalar loads and stores with 4x32 vector ones where appropriate. Fixes: 6ba6c74dfc6b ("arm64/crypto: SHA-224/SHA-256 using ARMv8 Crypto Extensions") Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>