Lines Matching refs:new_keypair
199 struct noise_keypair *new_keypair) in add_new_keypair() argument
210 if (new_keypair->i_am_the_initiator) { in add_new_keypair()
238 rcu_assign_pointer(keypairs->current_keypair, new_keypair); in add_new_keypair()
245 rcu_assign_pointer(keypairs->next_keypair, new_keypair); in add_new_keypair()
819 struct noise_keypair *new_keypair; in wg_noise_handshake_begin_session() local
827 new_keypair = keypair_create(handshake->entry.peer); in wg_noise_handshake_begin_session()
828 if (!new_keypair) in wg_noise_handshake_begin_session()
830 new_keypair->i_am_the_initiator = handshake->state == in wg_noise_handshake_begin_session()
832 new_keypair->remote_index = handshake->remote_index; in wg_noise_handshake_begin_session()
834 if (new_keypair->i_am_the_initiator) in wg_noise_handshake_begin_session()
835 derive_keys(&new_keypair->sending, &new_keypair->receiving, in wg_noise_handshake_begin_session()
838 derive_keys(&new_keypair->receiving, &new_keypair->sending, in wg_noise_handshake_begin_session()
845 add_new_keypair(keypairs, new_keypair); in wg_noise_handshake_begin_session()
848 new_keypair->internal_id, in wg_noise_handshake_begin_session()
852 &handshake->entry, &new_keypair->entry); in wg_noise_handshake_begin_session()
854 kfree_sensitive(new_keypair); in wg_noise_handshake_begin_session()