diff options
author | Mattias Andrée <maandree@kth.se> | 2022-01-08 10:13:28 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-01-08 10:13:28 +0100 |
commit | fb527a8eb943bf7efdf6dc858c9fd88a3fcdbd19 (patch) | |
tree | adb5310a9cceaf24b460db710f350671c55c8995 /libblake.h | |
parent | m (diff) | |
download | libblake-fb527a8eb943bf7efdf6dc858c9fd88a3fcdbd19.tar.gz libblake-fb527a8eb943bf7efdf6dc858c9fd88a3fcdbd19.tar.bz2 libblake-fb527a8eb943bf7efdf6dc858c9fd88a3fcdbd19.tar.xz |
Add last_node parameter to libblake_blake2[sb]_digest
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libblake.h')
-rw-r--r-- | libblake.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -112,14 +112,14 @@ struct libblake_blake2b_state { void libblake_blake2s_init(struct libblake_blake2s_state *state, const struct libblake_blake2s_params *params, const unsigned char *key /* append null bytes until 64 bytes; if key is used */); size_t libblake_blake2s_update(struct libblake_blake2s_state *state, const void *data, size_t len); -void libblake_blake2s_digest(struct libblake_blake2s_state *state, void *data, size_t len, +void libblake_blake2s_digest(struct libblake_blake2s_state *state, void *data, size_t len, int last_node /* normally 0 */, size_t output_len, unsigned char output[static output_len]); LIBBLAKE_CONST__ size_t libblake_blake2s_digest_get_required_input_size(size_t len); void libblake_blake2b_init(struct libblake_blake2b_state *state, const struct libblake_blake2b_params *params, const unsigned char *key /* append null bytes until 128 bytes; if key is used */); size_t libblake_blake2b_update(struct libblake_blake2b_state *state, const void *data, size_t len); -void libblake_blake2b_digest(struct libblake_blake2b_state *state, void *data, size_t len, +void libblake_blake2b_digest(struct libblake_blake2b_state *state, void *data, size_t len, int last_node /* normally 0 */, size_t output_len, unsigned char output[static output_len]); LIBBLAKE_CONST__ size_t libblake_blake2b_digest_get_required_input_size(size_t len); |