crypto: sha3-generic - simplify code
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 19 Jan 2018 12:04:35 +0000 (12:04 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Jan 2018 14:10:33 +0000 (01:10 +1100)
commitbeeb504adf3d08c0e916f43259e8e2ad6bdd30ee
tree6cefe5f2de0b0095ad066782be3937d859134a12
parent83dee2ce1ae791c3dc0c9d4d3a8d42cb109613f6
crypto: sha3-generic - simplify code

In preparation of exposing the generic SHA3 implementation to other
versions as a fallback, simplify the code, and remove an inconsistency
in the output handling (endian swabbing rsizw words of state before
writing the output does not make sense)

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/sha3_generic.c
include/crypto/sha3.h