Searched refs:static_identity (Results 1 - 7 of 7) sorted by relevance

/linux-master/drivers/net/wireguard/
H A Dnoise.h71 struct noise_static_identity *static_identity; member in struct:noise_handshake
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 Dnetlink.c239 down_read(&wg->static_identity.lock);
240 if (wg->static_identity.has_identity) {
243 wg->static_identity.static_private) ||
246 wg->static_identity.static_public)) {
247 up_read(&wg->static_identity.lock);
251 up_read(&wg->static_identity.lock);
396 down_read(&wg->static_identity.lock);
397 if (wg->static_identity.has_identity &&
399 wg->static_identity.static_public,
406 up_read(&wg->static_identity
[all...]
H A Dnoise.c46 /* Must hold peer->handshake.static_identity->lock */
50 if (!peer->handshake.static_identity->has_identity ||
52 peer->handshake.static_identity->static_private,
60 struct noise_static_identity *static_identity,
73 handshake->static_identity = static_identity;
293 /* Must hold static_identity->lock */
295 struct noise_static_identity *static_identity,
298 memcpy(static_identity->static_private, private_key,
300 curve25519_clamp_secret(static_identity
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) argument
294 wg_noise_set_static_identity_private_key( struct noise_static_identity *static_identity, const u8 private_key[NOISE_PUBLIC_KEY_LEN]) argument
[all...]
H A Ddevice.h45 struct noise_static_identity static_identity; member in struct:wg_device
H A Dcookie.c44 /* Must hold peer->handshake.static_identity->lock */
47 if (likely(checker->device->static_identity.has_identity)) {
49 checker->device->static_identity.static_public,
52 checker->device->static_identity.static_public,
H A Ddevice.c263 memzero_explicit(&wg->static_identity, sizeof(wg->static_identity));
317 init_rwsem(&wg->static_identity.lock);
H A Dpeer.c40 wg_noise_handshake_init(&peer->handshake, &wg->static_identity,

Completed in 108 milliseconds