summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-01-19 13:04:35 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-25 15:10:33 +0100
commitbeeb504adf3d08c0e916f43259e8e2ad6bdd30ee (patch)
tree6cefe5f2de0b0095ad066782be3937d859134a12 /include/crypto
parentcrypto: sha3-generic - rewrite KECCAK transform to help the compiler optimize (diff)
downloadlinux-beeb504adf3d08c0e916f43259e8e2ad6bdd30ee.tar.xz
linux-beeb504adf3d08c0e916f43259e8e2ad6bdd30ee.zip
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>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/sha3.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/crypto/sha3.h b/include/crypto/sha3.h
index b9d9bd553b48..1339dcdbc9b2 100644
--- a/include/crypto/sha3.h
+++ b/include/crypto/sha3.h
@@ -19,7 +19,6 @@
struct sha3_state {
u64 st[25];
- unsigned int md_len;
unsigned int rsiz;
unsigned int rsizw;