Home
last modified time | relevance | path

Searched refs:blake (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/wireguard/
H A Dcookie.c36 struct blake2s_ctx blake; in precompute_key() local
38 blake2s_init(&blake, NOISE_SYMMETRIC_KEY_LEN); in precompute_key()
39 blake2s_update(&blake, label, COOKIE_KEY_LABEL_LEN); in precompute_key()
40 blake2s_update(&blake, pubkey, NOISE_PUBLIC_KEY_LEN); in precompute_key()
41 blake2s_final(&blake, key); in precompute_key()
94 struct blake2s_ctx blake; in make_cookie() local
106 blake2s_init_key(&blake, COOKIE_LEN, checker->secret, NOISE_HASH_LEN); in make_cookie()
108 blake2s_update(&blake, (u8 *)&ip_hdr(skb)->saddr, in make_cookie()
111 blake2s_update(&blake, (u8 *)&ipv6_hdr(skb)->saddr, in make_cookie()
113 blake2s_update(&blake, (u8 *)&udp_hdr(skb)->source, sizeof(__be16)); in make_cookie()
[all …]
H A Dnoise.c36 struct blake2s_ctx blake; in wg_noise_init() local
40 blake2s_init(&blake, NOISE_HASH_LEN); in wg_noise_init()
41 blake2s_update(&blake, handshake_init_chaining_key, NOISE_HASH_LEN); in wg_noise_init()
42 blake2s_update(&blake, identifier_name, sizeof(identifier_name)); in wg_noise_init()
43 blake2s_final(&blake, handshake_init_hash); in wg_noise_init()
307 struct blake2s_ctx blake; in hmac() local
313 blake2s_init(&blake, BLAKE2S_HASH_SIZE); in hmac()
314 blake2s_update(&blake, key, keylen); in hmac()
315 blake2s_final(&blake, x_key); in hmac()
322 blake2s_init(&blake, BLAKE2S_HASH_SIZE); in hmac()
[all …]