/kernel/linux/linux-5.10/drivers/net/wireguard/ |
H A D | noise.c | 46 /* Must hold peer->handshake.static_identity->lock */ 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() 73 handshake->static_identity = static_identity; in wg_noise_handshake_init() 293 /* Must hold static_identity->lock */ 295 struct noise_static_identity *static_identity, in wg_noise_set_static_identity_private_key() 298 memcpy(static_identity->static_private, private_key, in wg_noise_set_static_identity_private_key() 300 curve25519_clamp_secret(static_identity in wg_noise_set_static_identity_private_key() 59 wg_noise_handshake_init(struct noise_handshake *handshake, struct noise_static_identity *static_identity, const u8 peer_public_key[NOISE_PUBLIC_KEY_LEN], const u8 peer_preshared_key[NOISE_SYMMETRIC_KEY_LEN], struct wg_peer *peer) wg_noise_handshake_init() argument 294 wg_noise_set_static_identity_private_key( struct noise_static_identity *static_identity, const u8 private_key[NOISE_PUBLIC_KEY_LEN]) wg_noise_set_static_identity_private_key() argument [all...] |
H A 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 in set_peer() [all...] |
H A D | noise.h | 71 struct noise_static_identity *static_identity; member 87 * init): remote_static, precomputed_static_static, static_identity. 96 struct noise_static_identity *static_identity, 115 struct noise_static_identity *static_identity,
|
H A D | cookie.c | 44 /* Must hold peer->handshake.static_identity->lock */ 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()
|
H A D | device.h | 45 struct noise_static_identity static_identity; member
|
H A D | device.c | 247 memzero_explicit(&wg->static_identity, sizeof(wg->static_identity)); in wg_destruct() 301 init_rwsem(&wg->static_identity.lock); in wg_newlink()
|
H A D | peer.c | 40 wg_noise_handshake_init(&peer->handshake, &wg->static_identity, in wg_peer_create()
|
/kernel/linux/linux-6.6/drivers/net/wireguard/ |
H A D | noise.c | 46 /* Must hold peer->handshake.static_identity->lock */ 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() 73 handshake->static_identity = static_identity; in wg_noise_handshake_init() 293 /* Must hold static_identity->lock */ 295 struct noise_static_identity *static_identity, in wg_noise_set_static_identity_private_key() 298 memcpy(static_identity->static_private, private_key, in wg_noise_set_static_identity_private_key() 300 curve25519_clamp_secret(static_identity in wg_noise_set_static_identity_private_key() 59 wg_noise_handshake_init(struct noise_handshake *handshake, struct noise_static_identity *static_identity, const u8 peer_public_key[NOISE_PUBLIC_KEY_LEN], const u8 peer_preshared_key[NOISE_SYMMETRIC_KEY_LEN], struct wg_peer *peer) wg_noise_handshake_init() argument 294 wg_noise_set_static_identity_private_key( struct noise_static_identity *static_identity, const u8 private_key[NOISE_PUBLIC_KEY_LEN]) wg_noise_set_static_identity_private_key() argument [all...] |
H A 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 in set_peer() [all...] |
H A D | noise.h | 71 struct noise_static_identity *static_identity; member 87 * init): remote_static, precomputed_static_static, static_identity. 96 struct noise_static_identity *static_identity, 115 struct noise_static_identity *static_identity,
|
H A D | cookie.c | 44 /* Must hold peer->handshake.static_identity->lock */ 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()
|
H A D | device.h | 45 struct noise_static_identity static_identity; member
|
H A D | device.c | 264 memzero_explicit(&wg->static_identity, sizeof(wg->static_identity)); in wg_destruct() 318 init_rwsem(&wg->static_identity.lock); in wg_newlink()
|
H A D | peer.c | 40 wg_noise_handshake_init(&peer->handshake, &wg->static_identity, in wg_peer_create()
|