Lines Matching refs:ephemeral_private
80 memset(&handshake->ephemeral_private, 0, NOISE_PUBLIC_KEY_LEN); in handshake_zero()
541 curve25519_generate_secret(handshake->ephemeral_private); in wg_noise_handshake_create_initiation()
543 handshake->ephemeral_private)) in wg_noise_handshake_create_initiation()
550 if (!mix_dh(handshake->chaining_key, key, handshake->ephemeral_private, in wg_noise_handshake_create_initiation()
688 curve25519_generate_secret(handshake->ephemeral_private); in wg_noise_handshake_create_response()
690 handshake->ephemeral_private)) in wg_noise_handshake_create_response()
697 if (!mix_dh(handshake->chaining_key, NULL, handshake->ephemeral_private, in wg_noise_handshake_create_response()
702 if (!mix_dh(handshake->chaining_key, NULL, handshake->ephemeral_private, in wg_noise_handshake_create_response()
738 u8 ephemeral_private[NOISE_PUBLIC_KEY_LEN]; in wg_noise_handshake_consume_response() local
757 memcpy(ephemeral_private, handshake->ephemeral_private, in wg_noise_handshake_consume_response()
770 if (!mix_dh(chaining_key, NULL, ephemeral_private, e)) in wg_noise_handshake_consume_response()
809 memzero_explicit(ephemeral_private, NOISE_PUBLIC_KEY_LEN); in wg_noise_handshake_consume_response()