Ard Biesheuvel 1ce8e52f6f 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>
2018-02-03 17:05:34 +01:00
..
2016-07-18 17:35:38 +08:00
2017-11-15 15:53:18 +01:00
2016-07-18 17:35:39 +08:00
2016-07-18 17:35:44 +08:00
2017-11-24 08:33:41 +01:00
2017-10-05 09:43:59 +02:00
2016-08-16 17:16:49 +08:00