From 312a92b5104fd5e9090bc079f458f9105a91e1ea Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 8 Jul 2022 13:23:00 +0200 Subject: Use SHA extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'common.h') 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); -- cgit v1.2.3-70-g09d2