Searched refs:WG_KEY_LEN (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/network/netdev/ |
D | wireguard.h | 29 uint8_t public_key[WG_KEY_LEN]; 30 uint8_t preshared_key[WG_KEY_LEN]; 57 uint8_t private_key[WG_KEY_LEN];
|
D | wireguard.c | 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() [all …]
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-types-genl.c | 204 … [WGPEER_A_PUBLIC_KEY] = { .type = NETLINK_TYPE_BINARY, .size = WG_KEY_LEN }, 206 … [WGPEER_A_PRESHARED_KEY] = { .type = NETLINK_TYPE_BINARY, .size = WG_KEY_LEN }, 218 [WGDEVICE_A_PRIVATE_KEY] = { .type = NETLINK_TYPE_BINARY, .size = WG_KEY_LEN },
|
/systemd-251/src/basic/linux/ |
D | wireguard.h | 137 #define WG_KEY_LEN 32 macro
|