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 /test.c | |
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 '')
-rw-r--r-- | test.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -362,7 +362,7 @@ digest_blake2s(int length, const void *msg, size_t msglen) data = malloc(req); memcpy(data, msg, msglen); libblake_blake2s_init(&s, ¶ms, NULL); - libblake_blake2s_digest(&s, data, msglen, (size_t)length / 8, buf); + libblake_blake2s_digest(&s, data, msglen, 0, (size_t)length / 8, buf); libblake_encode_hex(buf, (size_t)length / 8, hex, 0); free(data); @@ -429,7 +429,7 @@ digest_blake2b(int length, const void *msg, size_t msglen) data = malloc(req); memcpy(data, msg, msglen); libblake_blake2b_init(&s, ¶ms, NULL); - libblake_blake2b_digest(&s, data, msglen, (size_t)length / 8, buf); + libblake_blake2b_digest(&s, data, msglen, 0, (size_t)length / 8, buf); libblake_encode_hex(buf, (size_t)length / 8, hex, 0); free(data); |