diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-20 11:53:41 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-20 11:53:41 +0100 |
commit | b23336049cc5394675209fcbc3dcd552d0466b5e (patch) | |
tree | c8fe5ea4105b60bce6331a0f845a9ec68df7fb90 | |
parent | install_name_tool does not support -- (diff) | |
download | libar2-b23336049cc5394675209fcbc3dcd552d0466b5e.tar.gz libar2-b23336049cc5394675209fcbc3dcd552d0466b5e.tar.bz2 libar2-b23336049cc5394675209fcbc3dcd552d0466b5e.tar.xz |
Update for libblake 3.01.2.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | libar2_hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libar2_hash.c b/libar2_hash.c index 5704ac4..f0f53f2 100644 --- a/libar2_hash.c +++ b/libar2_hash.c @@ -478,7 +478,7 @@ initial_hash(unsigned char hash[static 64], void *msg, size_t msglen, unsigned char block[128 + 3]; size_t n = 0, off; - libblake_blake2b_init(&state, &b2params, NULL); + libblake_blake2b_init(&state, &b2params); n += store32(&block[n], params->lanes); n += store32(&block[n], (uint_least32_t)params->hashlen); @@ -600,7 +600,7 @@ argon2_blake2b_exthash(void *hash_, size_t hashlen, void *msg_, size_t msglen) params = b2params; params.digest_len = (uint_least8_t)MIN(hashlen, (size_t)params.digest_len); - libblake_blake2b_init(&state, ¶ms, NULL); + libblake_blake2b_init(&state, ¶ms); n = store32(block, (uint_least32_t)hashlen); n += off = storemem(&block[n], msg, msglen, 128 - n); if (off == msglen) { @@ -614,13 +614,13 @@ argon2_blake2b_exthash(void *hash_, size_t hashlen, void *msg_, size_t msglen) hashlen -= 32; params.digest_len = 64; while (hashlen > 64) { - libblake_blake2b_init(&state, ¶ms, NULL); + libblake_blake2b_init(&state, ¶ms); libblake_blake2b_digest(&state, hash, 64, 0, 64, &hash[32]); hash += 32; hashlen -= 32; } params.digest_len = (uint_least8_t)hashlen; - libblake_blake2b_init(&state, ¶ms, NULL); + libblake_blake2b_init(&state, ¶ms); libblake_blake2b_digest(&state, hash, 64, 0, hashlen, &hash[32]); } |