Searched refs:static_identity (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
D | noise.c | 50 if (!peer->handshake.static_identity->has_identity || in wg_noise_precompute_static_static() 52 peer->handshake.static_identity->static_private, in wg_noise_precompute_static_static() 60 struct noise_static_identity *static_identity, in wg_noise_handshake_init() argument 73 handshake->static_identity = static_identity; in wg_noise_handshake_init() 295 struct noise_static_identity *static_identity, in wg_noise_set_static_identity_private_key() argument 298 memcpy(static_identity->static_private, private_key, in wg_noise_set_static_identity_private_key() 300 curve25519_clamp_secret(static_identity->static_private); in wg_noise_set_static_identity_private_key() 301 static_identity->has_identity = curve25519_generate_public( in wg_noise_set_static_identity_private_key() 302 static_identity->static_public, private_key); in wg_noise_set_static_identity_private_key() 496 down_read(&handshake->static_identity->lock); in wg_noise_handshake_create_initiation() [all …]
|
D | netlink.c | 239 down_read(&wg->static_identity.lock); in wg_get_device_dump() 240 if (wg->static_identity.has_identity) { in wg_get_device_dump() 243 wg->static_identity.static_private) || in wg_get_device_dump() 246 wg->static_identity.static_public)) { in wg_get_device_dump() 247 up_read(&wg->static_identity.lock); in wg_get_device_dump() 251 up_read(&wg->static_identity.lock); in wg_get_device_dump() 396 down_read(&wg->static_identity.lock); in set_peer() 397 if (wg->static_identity.has_identity && in set_peer() 399 wg->static_identity.static_public, in set_peer() 406 up_read(&wg->static_identity.lock); in set_peer() [all …]
|
D | noise.h | 71 struct noise_static_identity *static_identity; member 96 struct noise_static_identity *static_identity, 115 struct noise_static_identity *static_identity,
|
D | cookie.c | 47 if (likely(checker->device->static_identity.has_identity)) { in wg_cookie_checker_precompute_device_keys() 49 checker->device->static_identity.static_public, in wg_cookie_checker_precompute_device_keys() 52 checker->device->static_identity.static_public, in wg_cookie_checker_precompute_device_keys()
|
D | device.h | 45 struct noise_static_identity static_identity; member
|
D | device.c | 246 memzero_explicit(&wg->static_identity, sizeof(wg->static_identity)); in wg_destruct() 300 init_rwsem(&wg->static_identity.lock); in wg_newlink()
|
D | peer.c | 40 wg_noise_handshake_init(&peer->handshake, &wg->static_identity, in wg_peer_create()
|