Searched refs:current_keypair (Results 1 – 4 of 4) sorted by relevance
/drivers/net/wireguard/ |
D | noise.c | 171 old = rcu_dereference_protected(keypairs->current_keypair, in wg_noise_keypairs_clear() 173 RCU_INIT_POINTER(keypairs->current_keypair, NULL); in wg_noise_keypairs_clear() 191 keypair = rcu_dereference_protected(peer->keypairs.current_keypair, in wg_noise_expire_current_peer_keypairs() 201 struct noise_keypair *previous_keypair, *next_keypair, *current_keypair; in add_new_keypair() local 208 current_keypair = rcu_dereference_protected(keypairs->current_keypair, in add_new_keypair() 228 wg_noise_keypair_put(current_keypair, true); in add_new_keypair() 233 current_keypair); in add_new_keypair() 238 rcu_assign_pointer(keypairs->current_keypair, new_keypair); in add_new_keypair() 283 rcu_dereference_protected(keypairs->current_keypair, in wg_noise_received_with_keypair() 286 rcu_assign_pointer(keypairs->current_keypair, received_keypair); in wg_noise_received_with_keypair()
|
D | noise.h | 44 struct noise_keypair __rcu *current_keypair; member
|
D | send.c | 130 keypair = rcu_dereference_bh(peer->keypairs.current_keypair); in keep_key_fresh() 358 rcu_dereference_bh(peer->keypairs.current_keypair)); in wg_packet_send_staged_packets()
|
D | receive.c | 236 keypair = rcu_dereference_bh(peer->keypairs.current_keypair); in keep_key_fresh()
|