aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/common.h b/common.h
index 50e62ab..388a03a 100644
--- a/common.h
+++ b/common.h
@@ -35,10 +35,12 @@
/**
* Process a chunk using SHA-2
*
- * @param state The hashing state
- * @param chunk The data to process
+ * @param state The hashing state
+ * @param data The data to process
+ * @param len The amount of available data
+ * @return The amount of data processed
*/
#if defined(__GNUC__)
__attribute__((__nonnull__, __nothrow__))
#endif
-void libsha2_process(struct libsha2_state *restrict, const unsigned char *restrict);
+size_t libsha2_process(struct libsha2_state *restrict, const unsigned char *restrict, size_t);