summaryrefslogtreecommitdiff
path: root/include/crypto/sha2.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2025-04-18 10:59:41 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2025-04-23 15:52:36 +0800
commiteba187a6e7141a1166a68c4d27b4ee5a27670b3b (patch)
treea9e5072409201c19fecae8d7357e3e4bbc9f5111 /include/crypto/sha2.h
parenta86ee2d74013e071efaa18631f9aa313262e5b1f (diff)
crypto: x86/sha256 - 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/crypto/sha2.h')
-rw-r--r--include/crypto/sha2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/sha2.h b/include/crypto/sha2.h
index b9e9281d76c9..d9b1b9932393 100644
--- a/include/crypto/sha2.h
+++ b/include/crypto/sha2.h
@@ -64,6 +64,11 @@ extern const u8 sha384_zero_message_hash[SHA384_DIGEST_SIZE];
extern const u8 sha512_zero_message_hash[SHA512_DIGEST_SIZE];
+struct crypto_sha256_state {
+ u32 state[SHA256_DIGEST_SIZE / 4];
+ u64 count;
+};
+
struct sha256_state {
u32 state[SHA256_DIGEST_SIZE / 4];
u64 count;