summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2025-04-18 06:00:11 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2025-04-23 10:52:46 +0300
commitb333c273ab43b96ca25469770d3319ec7ababd5a (patch)
tree37a212eefd9060fbd216773c90223b93447cae6c /include
parent8ba81fef400bf5dec895bc259d65c91bfece798a (diff)
downloadlinux-b333c273ab43b96ca25469770d3319ec7ababd5a.tar.xz
crypto: arm64/sha3-ce - Use API partial block handling
Use the Crypto API partial block handling. Also remove the unnecessary SIMD fallback path. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r--include/crypto/sha3.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/crypto/sha3.h b/include/crypto/sha3.h
index 080f60c2e6b1..661f196193cf 100644
--- a/include/crypto/sha3.h
+++ b/include/crypto/sha3.h
@@ -17,8 +17,10 @@
#define SHA3_512_DIGEST_SIZE (512 / 8)
#define SHA3_512_BLOCK_SIZE (200 - 2 * SHA3_512_DIGEST_SIZE)
+#define SHA3_STATE_SIZE 200
+
struct sha3_state {
- u64 st[25];
+ u64 st[SHA3_STATE_SIZE / 8];
unsigned int rsiz;
unsigned int rsizw;