Home
last modified time | relevance | path

Searched refs:keypairs (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/drivers/net/wireguard/
Dnoise.c151 void wg_noise_keypairs_clear(struct noise_keypairs *keypairs) in wg_noise_keypairs_clear() argument
155 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 …]
Dnoise.h109 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);
Dpeer.c47 spin_lock_init(&peer->keypairs.keypair_update_lock); in wg_peer_create()
101 wg_noise_keypairs_clear(&peer->keypairs); in peer_remove_after_dead()
Dsend.c97 &peer->keypairs)) { in wg_packet_send_handshake_response()
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()
Dpeer.h43 struct noise_keypairs keypairs; member
Dreceive.c177 &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()
Ddevice.c85 wg_noise_keypairs_clear(&peer->keypairs); in wg_pm_notification()
125 wg_noise_keypairs_clear(&peer->keypairs); in wg_stop()
Dtimers.c131 wg_noise_keypairs_clear(&peer->keypairs); in wg_queued_expired_zero_key_material()
/linux-6.1.9/Documentation/admin-guide/
Dmodule-signing.rst128 Cryptographic keypairs are required to generate and check signatures. A