Lines Matching defs:WG_STATIC_KEY_LEN
357 #define WG_STATIC_KEY_LEN CURVE25519_KEY_LEN
390 uint8_t wgmi_static[WG_STATIC_KEY_LEN + WG_AUTHTAG_LEN];
636 uint8_t wgp_pubkey[WG_STATIC_KEY_LEN];
697 uint8_t wg_privkey[WG_STATIC_KEY_LEN];
698 uint8_t wg_pubkey[WG_STATIC_KEY_LEN];
769 const uint8_t[static WG_STATIC_KEY_LEN], struct psref *);
1091 const uint8_t privkey[static WG_STATIC_KEY_LEN],
1092 const uint8_t pubkey[static WG_STATIC_KEY_LEN])
1095 CTASSERT(WG_STATIC_KEY_LEN == crypto_scalarmult_curve25519_BYTES);
1182 const uint8_t local_key[static WG_STATIC_KEY_LEN],
1183 const uint8_t remote_key[static WG_STATIC_KEY_LEN])
1599 uint8_t peer_pubkey[WG_STATIC_KEY_LEN];
1655 error = wg_algo_aead_dec(peer_pubkey, WG_STATIC_KEY_LEN, cipher_key, 0,
2421 const uint8_t pubkey[static WG_STATIC_KEY_LEN], struct psref *psref)
2426 wgp = thmap_get(wg->wg_peers_bypubkey, pubkey, WG_STATIC_KEY_LEN);
4628 wg_calc_pubkey(uint8_t pubkey[static WG_STATIC_KEY_LEN],
4629 const uint8_t privkey[static WG_STATIC_KEY_LEN])
4885 if (privkey_len != WG_STATIC_KEY_LEN)
4887 memcpy(wg->wg_privkey, privkey, WG_STATIC_KEY_LEN);
5025 wg->wg_privkey, WG_STATIC_KEY_LEN))