diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-08 00:47:04 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-08 00:47:04 +0200 |
commit | c5b86d52256d535149caefbe1031807b28c8face (patch) | |
tree | 0f5b52e3196ca435365244b7cc3b97f9fb9750c5 /common.h | |
parent | m (diff) | |
download | libsha1-c5b86d52256d535149caefbe1031807b28c8face.tar.gz libsha1-c5b86d52256d535149caefbe1031807b28c8face.tar.bz2 libsha1-c5b86d52256d535149caefbe1031807b28c8face.tar.xz |
Add code using SHA intrinsics
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); |