Lines Matching defs:wg
585 struct wg_device *wg)
598 down_read(&wg->static_identity.lock);
599 if (unlikely(!wg->static_identity.has_identity))
602 handshake_init(chaining_key, hash, wg->static_identity.static_public);
608 if (!mix_dh(chaining_key, key, wg->static_identity.static_private, e))
617 peer = wg_pubkey_hashtable_lookup(wg->peer_hashtable, s);
661 up_read(&wg->static_identity.lock);
729 struct wg_device *wg)
742 down_read(&wg->static_identity.lock);
744 if (unlikely(!wg->static_identity.has_identity))
748 wg->index_hashtable, INDEX_HASHTABLE_HANDSHAKE,
774 if (!mix_dh(chaining_key, NULL, wg->static_identity.static_private, e))
812 up_read(&wg->static_identity.lock);