Home
last modified time | relevance | path

Searched refs:COOKIE_LEN (Results 1 – 3 of 3) sorted by relevance

/drivers/net/wireguard/
Dcookie.c75 static void compute_mac1(u8 mac1[COOKIE_LEN], const void *message, size_t len, in compute_mac1() argument
80 blake2s(mac1, message, key, COOKIE_LEN, len, NOISE_SYMMETRIC_KEY_LEN); in compute_mac1()
83 static void compute_mac2(u8 mac2[COOKIE_LEN], const void *message, size_t len, in compute_mac2() argument
84 const u8 cookie[COOKIE_LEN]) in compute_mac2() argument
88 blake2s(mac2, message, cookie, COOKIE_LEN, len, COOKIE_LEN); in compute_mac2()
91 static void make_cookie(u8 cookie[COOKIE_LEN], struct sk_buff *skb, in make_cookie() argument
106 blake2s_init_key(&state, COOKIE_LEN, checker->secret, NOISE_HASH_LEN); in make_cookie()
126 u8 computed_mac[COOKIE_LEN]; in wg_cookie_validate_packet()
127 u8 cookie[COOKIE_LEN]; in wg_cookie_validate_packet()
132 if (crypto_memneq(computed_mac, macs->mac1, COOKIE_LEN)) in wg_cookie_validate_packet()
[all …]
Dmessages.h31 COOKIE_LEN = 16 enumerator
76 u8 mac1[COOKIE_LEN];
77 u8 mac2[COOKIE_LEN];
102 u8 encrypted_cookie[noise_encrypted_len(COOKIE_LEN)];
Dcookie.h26 u8 cookie[COOKIE_LEN];
28 u8 last_mac1_sent[COOKIE_LEN];