summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2025-04-18 11:00:25 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2025-04-23 15:52:46 +0800
commit561aab1104d80083886beaaeee39fa6482d6f157 (patch)
treee7fc265447d27f0efa2b7ddbabf3a433d2e0e6e3 /include
parent0b4aa3d10f7dbe398e4d5050f3ccb7d0ca438913 (diff)
crypto: riscv/sha512 - Use API partial block handling
Use the Crypto API partial block handling. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r--include/crypto/sha512_base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crypto/sha512_base.h b/include/crypto/sha512_base.h
index 8cb172e52dc0..e9f302ec3ede 100644
--- a/include/crypto/sha512_base.h
+++ b/include/crypto/sha512_base.h
@@ -10,7 +10,10 @@
#include <crypto/internal/hash.h>
#include <crypto/sha2.h>
+#include <linux/compiler.h>
+#include <linux/math.h>
#include <linux/string.h>
+#include <linux/types.h>
#include <linux/unaligned.h>
typedef void (sha512_block_fn)(struct sha512_state *sst, u8 const *src,
@@ -175,4 +178,7 @@ static inline int sha512_base_finish(struct shash_desc *desc, u8 *out)
return 0;
}
+void sha512_generic_block_fn(struct sha512_state *sst, u8 const *src,
+ int blocks);
+
#endif /* _CRYPTO_SHA512_BASE_H */