Lines Matching refs:static_identity

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()
529 down_read(&handshake->static_identity->lock); in wg_noise_handshake_create_initiation()
532 if (unlikely(!handshake->static_identity->has_identity)) in wg_noise_handshake_create_initiation()
556 handshake->static_identity->static_public, in wg_noise_handshake_create_initiation()
578 up_read(&handshake->static_identity->lock); in wg_noise_handshake_create_initiation()
598 down_read(&wg->static_identity.lock); in wg_noise_handshake_consume_initiation()
599 if (unlikely(!wg->static_identity.has_identity)) in wg_noise_handshake_consume_initiation()
602 handshake_init(chaining_key, hash, wg->static_identity.static_public); in wg_noise_handshake_consume_initiation()
608 if (!mix_dh(chaining_key, key, wg->static_identity.static_private, e)) in wg_noise_handshake_consume_initiation()
661 up_read(&wg->static_identity.lock); in wg_noise_handshake_consume_initiation()
678 down_read(&handshake->static_identity->lock); in wg_noise_handshake_create_response()
722 up_read(&handshake->static_identity->lock); in wg_noise_handshake_create_response()
742 down_read(&wg->static_identity.lock); in wg_noise_handshake_consume_response()
744 if (unlikely(!wg->static_identity.has_identity)) in wg_noise_handshake_consume_response()
774 if (!mix_dh(chaining_key, NULL, wg->static_identity.static_private, e)) in wg_noise_handshake_consume_response()
812 up_read(&wg->static_identity.lock); in wg_noise_handshake_consume_response()