summaryrefslogtreecommitdiffhomepage
path: root/src/cookie.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-27 18:08:19 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-27 18:08:19 +0100
commit2aecdd106f20816cee7e85902d7c517606b1e563 (patch)
treee423a407a56b87a8e75e0bf7c8884bff74953d54 /src/cookie.c
parentdbd56ac3969f3d100e945fc27599cf8ccdd098e9 (diff)
blake2s: remove outlen parameter from final
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/cookie.c')
-rw-r--r--src/cookie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cookie.c b/src/cookie.c
index bd23a14..a2ddbcd 100644
--- a/src/cookie.c
+++ b/src/cookie.c
@@ -38,7 +38,7 @@ static void precompute_key(u8 key[NOISE_SYMMETRIC_KEY_LEN],
blake2s_init(&blake, NOISE_SYMMETRIC_KEY_LEN);
blake2s_update(&blake, label, COOKIE_KEY_LABEL_LEN);
blake2s_update(&blake, pubkey, NOISE_PUBLIC_KEY_LEN);
- blake2s_final(&blake, key, NOISE_SYMMETRIC_KEY_LEN);
+ blake2s_final(&blake, key);
}
/* Must hold peer->handshake.static_identity->lock */
@@ -111,7 +111,7 @@ static void make_cookie(u8 cookie[COOKIE_LEN], struct sk_buff *skb,
blake2s_update(&state, (u8 *)&ipv6_hdr(skb)->saddr,
sizeof(struct in6_addr));
blake2s_update(&state, (u8 *)&udp_hdr(skb)->source, sizeof(__be16));
- blake2s_final(&state, cookie, COOKIE_LEN);
+ blake2s_final(&state, cookie);
up_read(&checker->secret_lock);
}