diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-08 13:23:00 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-08 13:23:00 +0200 |
commit | 312a92b5104fd5e9090bc079f458f9105a91e1ea (patch) | |
tree | a2f68787a2a3ffaf5ca17661c503daebd96bc453 /common.h | |
parent | Use uint_leastN_t instead of uintN_t (diff) | |
download | libsha2-312a92b5104fd5e9090bc079f458f9105a91e1ea.tar.gz libsha2-312a92b5104fd5e9090bc079f458f9105a91e1ea.tar.bz2 libsha2-312a92b5104fd5e9090bc079f458f9105a91e1ea.tar.xz |
Use SHA extensions1.1
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
@@ -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); |