aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-01-08 10:13:28 +0100
committerMattias Andrée <maandree@kth.se>2022-01-08 10:13:28 +0100
commitfb527a8eb943bf7efdf6dc858c9fd88a3fcdbd19 (patch)
treeadb5310a9cceaf24b460db710f350671c55c8995 /test.c
parentm (diff)
downloadlibblake-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.c b/test.c
index 9cb85dd..77bdbc0 100644
--- a/test.c
+++ b/test.c
@@ -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, &params, 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, &params, 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);