Lines Matching refs:static_identity
46 /* 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->static_private);
301 static_identity->has_identity = curve25519_generate_public(
302 static_identity->static_public, private_key);
529 down_read(&handshake->static_identity->lock);
532 if (unlikely(!handshake->static_identity->has_identity))
556 handshake->static_identity->static_public,
578 up_read(&handshake->static_identity->lock);
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))
661 up_read(&wg->static_identity.lock);
678 down_read(&handshake->static_identity->lock);
722 up_read(&handshake->static_identity->lock);
742 down_read(&wg->static_identity.lock);
744 if (unlikely(!wg->static_identity.has_identity))
774 if (!mix_dh(chaining_key, NULL, wg->static_identity.static_private, e))
812 up_read(&wg->static_identity.lock);