diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-20 12:09:19 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-20 12:09:19 +0100 |
commit | 3f89cecef3137a280bf07febdc7d236944c775d2 (patch) | |
tree | 4feb6b1a4ef9876a938fc20882f50d87232fd007 | |
parent | m (diff) | |
download | blakesum-3f89cecef3137a280bf07febdc7d236944c775d2.tar.gz blakesum-3f89cecef3137a280bf07febdc7d236944c775d2.tar.bz2 blakesum-3f89cecef3137a280bf07febdc7d236944c775d2.tar.xz |
Update for libblake 3.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | b2sum.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |