Home
last modified time | relevance | path

Searched refs:preshared_key (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/net/wireguard/
Dnetlink.c132 peer->handshake.preshared_key); in get_peer()
359 u8 *public_key = NULL, *preshared_key = NULL; in set_peer() local
372 preshared_key = nla_data(attrs[WGPEER_A_PRESHARED_KEY]); in set_peer()
412 peer = wg_peer_create(wg, public_key, preshared_key); in set_peer()
429 if (preshared_key) { in set_peer()
431 memcpy(&peer->handshake.preshared_key, preshared_key, in set_peer()
Dnoise.c71 memcpy(handshake->preshared_key, peer_preshared_key, in wg_noise_handshake_init()
708 handshake->preshared_key); in wg_noise_handshake_create_response()
740 u8 preshared_key[NOISE_SYMMETRIC_KEY_LEN]; in wg_noise_handshake_consume_response() local
759 memcpy(preshared_key, handshake->preshared_key, in wg_noise_handshake_consume_response()
778 mix_psk(chaining_key, hash, key, preshared_key); in wg_noise_handshake_consume_response()
811 memzero_explicit(preshared_key, NOISE_SYMMETRIC_KEY_LEN); in wg_noise_handshake_consume_response()
Dpeer.c23 const u8 preshared_key[NOISE_SYMMETRIC_KEY_LEN]) in wg_peer_create()
41 public_key, preshared_key, peer); in wg_peer_create()
Dpeer.h71 const u8 preshared_key[NOISE_SYMMETRIC_KEY_LEN]);
Dnoise.h78 u8 preshared_key[NOISE_SYMMETRIC_KEY_LEN]; member