Searched refs:NOISE_AUTHTAG_LEN (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/dev/wg/ |
H A D | wg_noise.h | 15 #define NOISE_AUTHTAG_LEN CHACHA20POLY1305_AUTHTAG_SIZE macro 101 uint8_t es[NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN], 102 uint8_t ets[NOISE_TIMESTAMP_LEN + NOISE_AUTHTAG_LEN]); 109 uint8_t es[NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN], 110 uint8_t ets[NOISE_TIMESTAMP_LEN + NOISE_AUTHTAG_LEN]); 117 uint8_t en[0 + NOISE_AUTHTAG_LEN]); 125 uint8_t en[0 + NOISE_AUTHTAG_LEN]);
|
H A D | wg_noise.c | 947 uint8_t es[NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN], in noise_create_initiation() 948 uint8_t ets[NOISE_TIMESTAMP_LEN + NOISE_AUTHTAG_LEN]) in noise_create_initiation() 1002 uint8_t es[NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN], in noise_consume_initiation() 1003 uint8_t ets[NOISE_TIMESTAMP_LEN + NOISE_AUTHTAG_LEN]) in noise_consume_initiation() 1026 NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN, key, hs.hs_hash) != 0) in noise_consume_initiation() 1039 NOISE_TIMESTAMP_LEN + NOISE_AUTHTAG_LEN, key, hs.hs_hash) != 0) in noise_consume_initiation() 1081 uint8_t en[0 + NOISE_AUTHTAG_LEN]) in noise_create_response() 1132 uint8_t en[0 + NOISE_AUTHTAG_LEN]) in noise_consume_response() 1172 0 + NOISE_AUTHTAG_LEN, key, hs.hs_hash) != 0) in noise_consume_response() 1350 noise_mix_hash(hash, dst, src_len + NOISE_AUTHTAG_LEN); in noise_msg_encrypt()
|
H A D | if_wg.c | 85 uint8_t es[NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN]; 86 uint8_t ets[NOISE_TIMESTAMP_LEN + NOISE_AUTHTAG_LEN]; 95 uint8_t en[0 + NOISE_AUTHTAG_LEN]; 1657 if (len > (sizeof(struct wg_pkt_data) + NOISE_AUTHTAG_LEN)) in wg_deliver_out() 1728 sizeof(struct wg_pkt_data) + NOISE_AUTHTAG_LEN); in wg_deliver_in() 1731 sizeof(struct wg_pkt_data) + NOISE_AUTHTAG_LEN); in wg_deliver_in() 2023 NOISE_AUTHTAG_LEN && *mtod(m, uint32_t *) == WG_PKT_DATA) { in wg_input()
|