Searched refs:NOISE_PUBLIC_KEY_LEN (Results 1 – 9 of 9) sorted by relevance
/drivers/net/wireguard/ |
D | noise.c | 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() [all …]
|
D | noise.h | 51 u8 static_public[NOISE_PUBLIC_KEY_LEN]; 52 u8 static_private[NOISE_PUBLIC_KEY_LEN]; 73 u8 ephemeral_private[NOISE_PUBLIC_KEY_LEN]; 74 u8 remote_static[NOISE_PUBLIC_KEY_LEN]; 75 u8 remote_ephemeral[NOISE_PUBLIC_KEY_LEN]; 76 u8 precomputed_static_static[NOISE_PUBLIC_KEY_LEN]; 97 const u8 peer_public_key[NOISE_PUBLIC_KEY_LEN], 116 const u8 private_key[NOISE_PUBLIC_KEY_LEN]);
|
D | messages.h | 18 NOISE_PUBLIC_KEY_LEN = CURVE25519_KEY_SIZE, enumerator 83 u8 unencrypted_ephemeral[NOISE_PUBLIC_KEY_LEN]; 84 u8 encrypted_static[noise_encrypted_len(NOISE_PUBLIC_KEY_LEN)]; 93 u8 unencrypted_ephemeral[NOISE_PUBLIC_KEY_LEN];
|
D | netlink.c | 25 [WGDEVICE_A_PRIVATE_KEY] = NLA_POLICY_EXACT_LEN(NOISE_PUBLIC_KEY_LEN), 26 [WGDEVICE_A_PUBLIC_KEY] = NLA_POLICY_EXACT_LEN(NOISE_PUBLIC_KEY_LEN), 34 [WGPEER_A_PUBLIC_KEY] = NLA_POLICY_EXACT_LEN(NOISE_PUBLIC_KEY_LEN), 117 fail = nla_put(skb, WGPEER_A_PUBLIC_KEY, NOISE_PUBLIC_KEY_LEN, in get_peer() 242 NOISE_PUBLIC_KEY_LEN, in wg_get_device_dump() 245 NOISE_PUBLIC_KEY_LEN, in wg_get_device_dump() 366 nla_len(attrs[WGPEER_A_PUBLIC_KEY]) == NOISE_PUBLIC_KEY_LEN) in set_peer() 400 NOISE_PUBLIC_KEY_LEN)) { in set_peer() 545 NOISE_PUBLIC_KEY_LEN) { in wg_set_device() 547 u8 public_key[NOISE_PUBLIC_KEY_LEN]; in wg_set_device() [all …]
|
D | peerlookup.c | 11 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) in pubkey_bucket() argument 17 const u64 hash = siphash(pubkey, NOISE_PUBLIC_KEY_LEN, &table->key); in pubkey_bucket() 55 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) in wg_pubkey_hashtable_lookup() argument 63 NOISE_PUBLIC_KEY_LEN)) { in wg_pubkey_hashtable_lookup()
|
D | peerlookup.h | 31 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]);
|
D | cookie.c | 33 const u8 pubkey[NOISE_PUBLIC_KEY_LEN], in precompute_key() argument 40 blake2s_update(&blake, pubkey, NOISE_PUBLIC_KEY_LEN); in precompute_key()
|
D | peer.h | 70 const u8 public_key[NOISE_PUBLIC_KEY_LEN],
|
D | peer.c | 22 const u8 public_key[NOISE_PUBLIC_KEY_LEN], in wg_peer_create() argument
|