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>
This commit is contained in:
Ard Biesheuvel
2018-01-19 12:04:35 +00:00
committed by Herbert Xu
parent 83dee2ce1a
commit beeb504adf
2 changed files with 60 additions and 127 deletions

View File

@@ -19,7 +19,6 @@
struct sha3_state {
u64 st[25];
unsigned int md_len;
unsigned int rsiz;
unsigned int rsizw;