• Home
  • Raw
  • Download

Lines Matching refs:NOISE_PUBLIC_KEY_LEN

55 		       NOISE_PUBLIC_KEY_LEN);  in wg_noise_precompute_static_static()
61 const u8 peer_public_key[NOISE_PUBLIC_KEY_LEN], in wg_noise_handshake_init() argument
69 memcpy(handshake->remote_static, peer_public_key, NOISE_PUBLIC_KEY_LEN); in wg_noise_handshake_init()
80 memset(&handshake->ephemeral_private, 0, NOISE_PUBLIC_KEY_LEN); in handshake_zero()
81 memset(&handshake->remote_ephemeral, 0, NOISE_PUBLIC_KEY_LEN); in handshake_zero()
296 const u8 private_key[NOISE_PUBLIC_KEY_LEN]) in wg_noise_set_static_identity_private_key() argument
299 NOISE_PUBLIC_KEY_LEN); in wg_noise_set_static_identity_private_key()
406 const u8 private[NOISE_PUBLIC_KEY_LEN], in mix_dh() argument
407 const u8 public[NOISE_PUBLIC_KEY_LEN]) in mix_dh() argument
409 u8 dh_calculation[NOISE_PUBLIC_KEY_LEN]; in mix_dh()
414 NOISE_SYMMETRIC_KEY_LEN, 0, NOISE_PUBLIC_KEY_LEN, chaining_key); in mix_dh()
415 memzero_explicit(dh_calculation, NOISE_PUBLIC_KEY_LEN); in mix_dh()
421 const u8 precomputed[NOISE_PUBLIC_KEY_LEN]) in mix_precomputed_dh() argument
423 static u8 zero_point[NOISE_PUBLIC_KEY_LEN]; in mix_precomputed_dh()
424 if (unlikely(!crypto_memneq(precomputed, zero_point, NOISE_PUBLIC_KEY_LEN))) in mix_precomputed_dh()
427 NOISE_SYMMETRIC_KEY_LEN, 0, NOISE_PUBLIC_KEY_LEN, in mix_precomputed_dh()
456 const u8 remote_static[NOISE_PUBLIC_KEY_LEN]) in handshake_init() argument
460 mix_hash(hash, remote_static, NOISE_PUBLIC_KEY_LEN); in handshake_init()
485 static void message_ephemeral(u8 ephemeral_dst[NOISE_PUBLIC_KEY_LEN], in message_ephemeral() argument
486 const u8 ephemeral_src[NOISE_PUBLIC_KEY_LEN], in message_ephemeral() argument
491 memcpy(ephemeral_dst, ephemeral_src, NOISE_PUBLIC_KEY_LEN); in message_ephemeral()
492 mix_hash(hash, ephemeral_src, NOISE_PUBLIC_KEY_LEN); in message_ephemeral()
494 NOISE_PUBLIC_KEY_LEN, chaining_key); in message_ephemeral()
557 NOISE_PUBLIC_KEY_LEN, key, handshake->hash); in wg_noise_handshake_create_initiation()
593 u8 s[NOISE_PUBLIC_KEY_LEN]; in wg_noise_handshake_consume_initiation()
594 u8 e[NOISE_PUBLIC_KEY_LEN]; in wg_noise_handshake_consume_initiation()
644 memcpy(handshake->remote_ephemeral, e, NOISE_PUBLIC_KEY_LEN); in wg_noise_handshake_consume_initiation()
737 u8 e[NOISE_PUBLIC_KEY_LEN]; in wg_noise_handshake_consume_response()
738 u8 ephemeral_private[NOISE_PUBLIC_KEY_LEN]; in wg_noise_handshake_consume_response()
739 u8 static_private[NOISE_PUBLIC_KEY_LEN]; in wg_noise_handshake_consume_response()
758 NOISE_PUBLIC_KEY_LEN); in wg_noise_handshake_consume_response()
794 memcpy(handshake->remote_ephemeral, e, NOISE_PUBLIC_KEY_LEN); in wg_noise_handshake_consume_response()
809 memzero_explicit(ephemeral_private, NOISE_PUBLIC_KEY_LEN); in wg_noise_handshake_consume_response()
810 memzero_explicit(static_private, NOISE_PUBLIC_KEY_LEN); in wg_noise_handshake_consume_response()