Lines Matching refs:WG_KEY_LEN
60 explicit_bzero_safe(peer->preshared_key, WG_KEY_LEN); in wireguard_peer_free()
172 … sd_netlink_message_append_data(message, WGPEER_A_PRESHARED_KEY, &peer->preshared_key, WG_KEY_LEN); in wireguard_set_peer_one()
251 … r = sd_netlink_message_append_data(message, WGDEVICE_A_PRIVATE_KEY, &w->private_key, WG_KEY_LEN); in wireguard_set_interface()
488 uint8_t ret[static WG_KEY_LEN], in wireguard_decode_key_and_warn() argument
504 memzero(ret, WG_KEY_LEN); in wireguard_decode_key_and_warn()
519 if (len != WG_KEY_LEN) { in wireguard_decode_key_and_warn()
526 memcpy(ret, key, WG_KEY_LEN); in wireguard_decode_key_and_warn()
1072 explicit_bzero_safe(w->private_key, WG_KEY_LEN); in wireguard_done()
1080 static int wireguard_read_key_file(const char *filename, uint8_t dest[static WG_KEY_LEN]) { in wireguard_read_key_file() argument
1099 if (key_len != WG_KEY_LEN) in wireguard_read_key_file()
1102 memcpy(dest, key, WG_KEY_LEN); in wireguard_read_key_file()