diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-01-19 12:04:33 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-01-26 01:10:32 +1100 |
commit | 50a0dceaa2634cd5a2a645ae0714da22fbbb2358 (patch) | |
tree | 10914991542ac7a6a977efcde7361d9ffe4be2c7 /crypto/algif_hash.c | |
parent | 7f975af478b6c083dbdfa08350a1499307468bea (diff) | |
download | linux-crypto-50a0dceaa2634cd5a2a645ae0714da22fbbb2358.tar.gz linux-crypto-50a0dceaa2634cd5a2a645ae0714da22fbbb2358.zip |
crypto: sha3-generic - fixes for alignment and big endian operation
Ensure that the input is byte swabbed before injecting it into the
SHA3 transform. Use the get_unaligned() accessor for this so that
we don't perform unaligned access inadvertently on architectures
that do not support that.
Cc: <stable@vger.kernel.org>
Fixes: dc4b27a1bc222c3b ("crypto: sha3 - Add SHA-3 hash algorithm")
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algif_hash.c')
0 files changed, 0 insertions, 0 deletions