From c5b86d52256d535149caefbe1031807b28c8face Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 8 Jul 2022 00:47:04 +0200 Subject: Add code using SHA intrinsics 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 3b1cf00..43735fc 100644 --- a/common.h +++ b/common.h @@ -27,10 +27,12 @@ /** * Process a chunk using SHA-1 or SHA-0 * - * @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 number of available bytes + * @return The number of processed bytes */ #if defined(__GNUC__) __attribute__((__nonnull__, __nothrow__)) #endif -void libsha1_process(struct libsha1_state *restrict, const unsigned char *restrict); +size_t libsha1_process(struct libsha1_state *restrict, const unsigned char *restrict, size_t); -- cgit v1.2.3-70-g09d2