Searched refs:keypairs (Results 1 – 8 of 8) sorted by relevance
151 void wg_noise_keypairs_clear(struct noise_keypairs *keypairs) in wg_noise_keypairs_clear() argument155 spin_lock_bh(&keypairs->keypair_update_lock); in wg_noise_keypairs_clear()161 old = rcu_dereference_protected(keypairs->next_keypair, in wg_noise_keypairs_clear()162 lockdep_is_held(&keypairs->keypair_update_lock)); in wg_noise_keypairs_clear()163 RCU_INIT_POINTER(keypairs->next_keypair, NULL); in wg_noise_keypairs_clear()166 old = rcu_dereference_protected(keypairs->previous_keypair, in wg_noise_keypairs_clear()167 lockdep_is_held(&keypairs->keypair_update_lock)); in wg_noise_keypairs_clear()168 RCU_INIT_POINTER(keypairs->previous_keypair, NULL); in wg_noise_keypairs_clear()171 old = rcu_dereference_protected(keypairs->current_keypair, in wg_noise_keypairs_clear()172 lockdep_is_held(&keypairs->keypair_update_lock)); in wg_noise_keypairs_clear()[all …]
109 void wg_noise_keypairs_clear(struct noise_keypairs *keypairs);110 bool wg_noise_received_with_keypair(struct noise_keypairs *keypairs,133 struct noise_keypairs *keypairs);
47 spin_lock_init(&peer->keypairs.keypair_update_lock); in wg_peer_create()101 wg_noise_keypairs_clear(&peer->keypairs); in peer_remove_after_dead()
97 &peer->keypairs)) { in wg_packet_send_handshake_response()130 keypair = rcu_dereference_bh(peer->keypairs.current_keypair); in keep_key_fresh()359 rcu_dereference_bh(peer->keypairs.current_keypair)); in wg_packet_send_staged_packets()
43 struct noise_keypairs keypairs; member
177 &peer->keypairs)) { in wg_receive_handshake_packet()229 keypair = rcu_dereference_bh(peer->keypairs.current_keypair); in keep_key_fresh()345 if (unlikely(wg_noise_received_with_keypair(&peer->keypairs, in wg_packet_consume_data_done()
86 wg_noise_keypairs_clear(&peer->keypairs); in wg_pm_notification()126 wg_noise_keypairs_clear(&peer->keypairs); in wg_stop()
131 wg_noise_keypairs_clear(&peer->keypairs); in wg_queued_expired_zero_key_material()