Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/wireguard/
Dcookie.c63 precompute_key(peer->latest_cookie.cookie_decryption_key, in wg_cookie_checker_precompute_peer_keys()
65 precompute_key(peer->latest_cookie.message_mac1_key, in wg_cookie_checker_precompute_peer_keys()
162 down_write(&peer->latest_cookie.lock); in wg_cookie_add_mac_to_packet()
164 peer->latest_cookie.message_mac1_key); in wg_cookie_add_mac_to_packet()
165 memcpy(peer->latest_cookie.last_mac1_sent, macs->mac1, COOKIE_LEN); in wg_cookie_add_mac_to_packet()
166 peer->latest_cookie.have_sent_mac1 = true; in wg_cookie_add_mac_to_packet()
167 up_write(&peer->latest_cookie.lock); in wg_cookie_add_mac_to_packet()
169 down_read(&peer->latest_cookie.lock); in wg_cookie_add_mac_to_packet()
170 if (peer->latest_cookie.is_valid && in wg_cookie_add_mac_to_packet()
171 !wg_birthdate_has_expired(peer->latest_cookie.birthdate, in wg_cookie_add_mac_to_packet()
[all …]
Dpeer.h49 struct cookie latest_cookie; member
Dpeer.c44 wg_cookie_init(&peer->latest_cookie); in wg_peer_create()