Lines Matching refs:cookie
69 void wg_cookie_init(struct cookie *cookie) in wg_cookie_init() argument
71 memset(cookie, 0, sizeof(*cookie)); in wg_cookie_init()
72 init_rwsem(&cookie->lock); in wg_cookie_init()
84 const u8 cookie[COOKIE_LEN]) in compute_mac2()
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()
114 blake2s_final(&state, cookie); in make_cookie()
127 u8 cookie[COOKIE_LEN]; in wg_cookie_validate_packet() local
140 make_cookie(cookie, skb, checker); in wg_cookie_validate_packet()
142 compute_mac2(computed_mac, skb->data, skb->len, cookie); in wg_cookie_validate_packet()
174 peer->latest_cookie.cookie); in wg_cookie_add_mac_to_packet()
186 u8 cookie[COOKIE_LEN]; in wg_cookie_message_create() local
192 make_cookie(cookie, skb, checker); in wg_cookie_message_create()
193 xchacha20poly1305_encrypt(dst->encrypted_cookie, cookie, COOKIE_LEN, in wg_cookie_message_create()
202 u8 cookie[COOKIE_LEN]; in wg_cookie_message_consume() local
217 cookie, src->encrypted_cookie, sizeof(src->encrypted_cookie), in wg_cookie_message_consume()
224 memcpy(peer->latest_cookie.cookie, cookie, COOKIE_LEN); in wg_cookie_message_consume()