Go to the source code of this file.
|
| static_always_inline noise_local_t * | noise_local_get (uint32_t locali) |
| |
| void | noise_local_init (noise_local_t *, struct noise_upcall *) |
| |
| bool | noise_local_set_private (noise_local_t *, const uint8_t[NOISE_PUBLIC_KEY_LEN]) |
| |
| void | noise_remote_init (noise_remote_t *, uint32_t, const uint8_t[NOISE_PUBLIC_KEY_LEN], uint32_t) |
| |
| void | noise_remote_precompute (noise_remote_t *) |
| |
| bool | noise_create_initiation (vlib_main_t *vm, noise_remote_t *, uint32_t *s_idx, uint8_t ue[NOISE_PUBLIC_KEY_LEN], uint8_t es[NOISE_PUBLIC_KEY_LEN+NOISE_AUTHTAG_LEN], uint8_t ets[NOISE_TIMESTAMP_LEN+NOISE_AUTHTAG_LEN]) |
| |
| bool | noise_consume_initiation (vlib_main_t *vm, noise_local_t *, noise_remote_t **, uint32_t s_idx, uint8_t ue[NOISE_PUBLIC_KEY_LEN], uint8_t es[NOISE_PUBLIC_KEY_LEN+NOISE_AUTHTAG_LEN], uint8_t ets[NOISE_TIMESTAMP_LEN+NOISE_AUTHTAG_LEN]) |
| |
| bool | noise_create_response (vlib_main_t *vm, noise_remote_t *, uint32_t *s_idx, uint32_t *r_idx, uint8_t ue[NOISE_PUBLIC_KEY_LEN], uint8_t en[0+NOISE_AUTHTAG_LEN]) |
| |
| bool | noise_consume_response (vlib_main_t *vm, noise_remote_t *, uint32_t s_idx, uint32_t r_idx, uint8_t ue[NOISE_PUBLIC_KEY_LEN], uint8_t en[0+NOISE_AUTHTAG_LEN]) |
| |
| bool | noise_remote_begin_session (vlib_main_t *vm, noise_remote_t *r) |
| |
| void | noise_remote_clear (vlib_main_t *vm, noise_remote_t *r) |
| |
| void | noise_remote_expire_current (noise_remote_t *r) |
| |
| bool | noise_remote_ready (noise_remote_t *) |
| |
| enum noise_state_crypt | noise_remote_encrypt (vlib_main_t *vm, noise_remote_t *, uint32_t *r_idx, uint64_t *nonce, uint8_t *src, size_t srclen, uint8_t *dst) |
| |
| enum noise_state_crypt | noise_remote_decrypt (vlib_main_t *vm, noise_remote_t *, uint32_t r_idx, uint64_t nonce, uint8_t *src, size_t srclen, uint8_t *dst) |
| |
◆ COUNTER_BITS
| #define COUNTER_BITS (sizeof(unsigned long) * 8) |
◆ COUNTER_BITS_TOTAL
| #define COUNTER_BITS_TOTAL 8192 |
◆ COUNTER_NUM
◆ COUNTER_WINDOW_SIZE
◆ NOISE_AUTHTAG_LEN
| #define NOISE_AUTHTAG_LEN 16 |
◆ NOISE_HANDSHAKE_NAME
| #define NOISE_HANDSHAKE_NAME "Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s" |
◆ NOISE_HASH_LEN
◆ NOISE_IDENTIFIER_NAME
| #define NOISE_IDENTIFIER_NAME "WireGuard v1 zx2c4 Jason@zx2c4.com" |
◆ NOISE_PUBLIC_KEY_LEN
◆ NOISE_SYMMETRIC_KEY_LEN
| #define NOISE_SYMMETRIC_KEY_LEN 32 |
◆ NOISE_TIMESTAMP_LEN
| #define NOISE_TIMESTAMP_LEN (sizeof(uint64_t) + sizeof(uint32_t)) |
◆ REJECT_AFTER_MESSAGES
◆ REJECT_AFTER_TIME
| #define REJECT_AFTER_TIME 180 |
◆ REJECT_INTERVAL
| #define REJECT_INTERVAL (0.02) /* fifty times per sec */ |
◆ REJECT_INTERVAL_MASK
| #define REJECT_INTERVAL_MASK (~((1ull<<24)-1)) |
◆ REKEY_AFTER_MESSAGES
| #define REKEY_AFTER_MESSAGES (1ull << 60) |
◆ REKEY_AFTER_TIME
| #define REKEY_AFTER_TIME 120 |
◆ REKEY_AFTER_TIME_RECV
| #define REKEY_AFTER_TIME_RECV 165 |
◆ noise_counter_t
◆ noise_handshake_t
◆ noise_keypair_t
◆ noise_local_t
◆ noise_remote_t
◆ noise_state_crypt
| Enumerator |
|---|
| SC_OK | |
| SC_CONN_RESET | |
| SC_KEEP_KEY_FRESH | |
| SC_FAILED | |
Definition at line 52 of file wireguard_noise.h.
◆ noise_state_hs
| Enumerator |
|---|
| HS_ZEROED | |
| CREATED_INITIATION | |
| CONSUMED_INITIATION | |
| CREATED_RESPONSE | |
| CONSUMED_RESPONSE | |
Definition at line 60 of file wireguard_noise.h.
◆ noise_consume_initiation()
| bool noise_consume_initiation |
( |
vlib_main_t * |
vm, |
|
|
noise_local_t * |
, |
|
|
noise_remote_t ** |
, |
|
|
uint32_t |
s_idx, |
|
|
uint8_t |
ue[NOISE_PUBLIC_KEY_LEN], |
|
|
uint8_t |
es[NOISE_PUBLIC_KEY_LEN+NOISE_AUTHTAG_LEN], |
|
|
uint8_t |
ets[NOISE_TIMESTAMP_LEN+NOISE_AUTHTAG_LEN] |
|
) |
| |
◆ noise_consume_response()
| bool noise_consume_response |
( |
vlib_main_t * |
vm, |
|
|
noise_remote_t * |
, |
|
|
uint32_t |
s_idx, |
|
|
uint32_t |
r_idx, |
|
|
uint8_t |
ue[NOISE_PUBLIC_KEY_LEN], |
|
|
uint8_t |
en[0+NOISE_AUTHTAG_LEN] |
|
) |
| |
◆ noise_create_initiation()
| bool noise_create_initiation |
( |
vlib_main_t * |
vm, |
|
|
noise_remote_t * |
, |
|
|
uint32_t * |
s_idx, |
|
|
uint8_t |
ue[NOISE_PUBLIC_KEY_LEN], |
|
|
uint8_t |
es[NOISE_PUBLIC_KEY_LEN+NOISE_AUTHTAG_LEN], |
|
|
uint8_t |
ets[NOISE_TIMESTAMP_LEN+NOISE_AUTHTAG_LEN] |
|
) |
| |
◆ noise_create_response()
| bool noise_create_response |
( |
vlib_main_t * |
vm, |
|
|
noise_remote_t * |
, |
|
|
uint32_t * |
s_idx, |
|
|
uint32_t * |
r_idx, |
|
|
uint8_t |
ue[NOISE_PUBLIC_KEY_LEN], |
|
|
uint8_t |
en[0+NOISE_AUTHTAG_LEN] |
|
) |
| |
◆ noise_local_get()
◆ noise_local_init()
| void noise_local_init |
( |
noise_local_t * |
, |
|
|
struct noise_upcall * |
|
|
) |
| |
◆ noise_local_set_private()
| bool noise_local_set_private |
( |
noise_local_t * |
, |
|
|
const uint8_t |
[NOISE_PUBLIC_KEY_LEN] |
|
) |
| |
◆ noise_remote_begin_session()
◆ noise_remote_clear()
◆ noise_remote_decrypt()
◆ noise_remote_encrypt()
◆ noise_remote_expire_current()
◆ noise_remote_init()
| void noise_remote_init |
( |
noise_remote_t * |
, |
|
|
uint32_t |
, |
|
|
const uint8_t |
[NOISE_PUBLIC_KEY_LEN], |
|
|
uint32_t |
|
|
) |
| |
◆ noise_remote_precompute()
◆ noise_remote_ready()
◆ noise_local_pool