diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-27 18:08:19 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-27 18:08:19 +0100 |
commit | 34171de2868063bc2945340a388f7f45081821ed (patch) | |
tree | 36d2d349a9bc4d7055c8732f0e147e489a6d446f /src/noise.c | |
parent | blake2s: simplify (diff) | |
download | wireguard-monolithic-historical-34171de2868063bc2945340a388f7f45081821ed.tar.xz wireguard-monolithic-historical-34171de2868063bc2945340a388f7f45081821ed.zip |
blake2s: remove outlen parameter from final
Diffstat (limited to '')
-rw-r--r-- | src/noise.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/noise.c b/src/noise.c index bf0b8c5..5b073bd 100644 --- a/src/noise.c +++ b/src/noise.c @@ -40,7 +40,7 @@ void __init wg_noise_init(void) blake2s_init(&blake, NOISE_HASH_LEN); blake2s_update(&blake, handshake_init_chaining_key, NOISE_HASH_LEN); blake2s_update(&blake, identifier_name, sizeof(identifier_name)); - blake2s_final(&blake, handshake_init_hash, NOISE_HASH_LEN); + blake2s_final(&blake, handshake_init_hash); } /* Must hold peer->handshake.static_identity->lock */ @@ -389,7 +389,7 @@ static void mix_hash(u8 hash[NOISE_HASH_LEN], const u8 *src, size_t src_len) blake2s_init(&blake, NOISE_HASH_LEN); blake2s_update(&blake, hash, NOISE_HASH_LEN); blake2s_update(&blake, src, src_len); - blake2s_final(&blake, hash, NOISE_HASH_LEN); + blake2s_final(&blake, hash); } static void mix_psk(u8 chaining_key[NOISE_HASH_LEN], u8 hash[NOISE_HASH_LEN], |