diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-01-19 15:04:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-03 19:58:33 +0300 |
commit | 66ae99ca89cb3f22ffff81084ce5446d0122abdb (patch) | |
tree | 735d4d336f9f492789f19a72f9589ecf1522c593 /crypto/chacha20poly1305.c | |
parent | e02e32d0b7b2c0f1da4069224c9a8038a0db5b38 (diff) | |
download | linux-66ae99ca89cb3f22ffff81084ce5446d0122abdb.tar.xz |
crypto: sha3-generic - fixes for alignment and big endian operation
commit c013cee99d5a18aec8c71fee8f5f41369cd12595 upstream.
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.
Fixes: 53964b9ee63b7075 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/chacha20poly1305.c')
0 files changed, 0 insertions, 0 deletions