From 3f89cecef3137a280bf07febdc7d236944c775d2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 20 Feb 2022 12:09:19 +0100 Subject: Update for libblake 3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- b2sum.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/b2sum.c b/b2sum.c index 1b48ad2..8d16d38 100644 --- a/b2sum.c +++ b/b2sum.c @@ -45,13 +45,13 @@ hash_fd_blake2bs(int fd, const char *fname, int decode_hex, unsigned char hash[] params2s.digest_len = (uint_least8_t)length; params2s.fanout = 1; params2s.depth = 1; - libblake_blake2s_init(&state2s, ¶ms2s, NULL); + libblake_blake2s_init(&state2s, ¶ms2s); } else { memset(¶ms2b, 0, sizeof(params2b)); params2b.digest_len = (uint_least8_t)length; params2b.fanout = 1; params2b.depth = 1; - libblake_blake2b_init(&state2b, ¶ms2b, NULL); + libblake_blake2b_init(&state2b, ¶ms2b); } for (;;) { if (len == size) @@ -121,14 +121,14 @@ hash_fd_blake2xbs(int fd, const char *fname, int decode_hex, unsigned char hash[ params2xs.fanout = 1; params2xs.depth = 1; params2xs.xof_len = (uint_least16_t)xlength; - libblake_blake2xs_init(&state2xs, ¶ms2xs, NULL); + libblake_blake2xs_init(&state2xs, ¶ms2xs); } else { memset(¶ms2xb, 0, sizeof(params2xb)); params2xb.digest_len = (uint_least8_t)length; params2xb.fanout = 1; params2xb.depth = 1; params2xb.xof_len = (uint_least32_t)xlength; - libblake_blake2xb_init(&state2xb, ¶ms2xb, NULL); + libblake_blake2xb_init(&state2xb, ¶ms2xb); } for (;;) { if (len == size) -- cgit v1.2.3-70-g09d2