|
static noise_keypair_t * | noise_remote_keypair_allocate (noise_remote_t *) |
|
static void | noise_remote_keypair_free (vlib_main_t *vm, noise_remote_t *, noise_keypair_t **) |
|
static uint32_t | noise_remote_handshake_index_get (noise_remote_t *) |
|
static void | noise_remote_handshake_index_drop (noise_remote_t *) |
|
static uint64_t | noise_counter_send (noise_counter_t *) |
|
static bool | noise_counter_recv (noise_counter_t *, uint64_t) |
|
static void | noise_kdf (uint8_t *, uint8_t *, uint8_t *, const uint8_t *, size_t, size_t, size_t, size_t, const uint8_t[NOISE_HASH_LEN]) |
|
static bool | noise_mix_dh (uint8_t[NOISE_HASH_LEN], uint8_t[NOISE_SYMMETRIC_KEY_LEN], const uint8_t[NOISE_PUBLIC_KEY_LEN], const uint8_t[NOISE_PUBLIC_KEY_LEN]) |
|
static bool | noise_mix_ss (uint8_t ck[NOISE_HASH_LEN], uint8_t key[NOISE_SYMMETRIC_KEY_LEN], const uint8_t ss[NOISE_PUBLIC_KEY_LEN]) |
|
static void | noise_mix_hash (uint8_t[NOISE_HASH_LEN], const uint8_t *, size_t) |
|
static void | noise_mix_psk (uint8_t[NOISE_HASH_LEN], uint8_t[NOISE_HASH_LEN], uint8_t[NOISE_SYMMETRIC_KEY_LEN], const uint8_t[NOISE_SYMMETRIC_KEY_LEN]) |
|
static void | noise_param_init (uint8_t[NOISE_HASH_LEN], uint8_t[NOISE_HASH_LEN], const uint8_t[NOISE_PUBLIC_KEY_LEN]) |
|
static void | noise_msg_encrypt (vlib_main_t *vm, uint8_t *, uint8_t *, size_t, uint32_t key_idx, uint8_t[NOISE_HASH_LEN]) |
|
static bool | noise_msg_decrypt (vlib_main_t *vm, uint8_t *, uint8_t *, size_t, uint32_t key_idx, uint8_t[NOISE_HASH_LEN]) |
|
static void | noise_msg_ephemeral (uint8_t[NOISE_HASH_LEN], uint8_t[NOISE_HASH_LEN], const uint8_t src[NOISE_PUBLIC_KEY_LEN]) |
|
static void | noise_tai64n_now (uint8_t[NOISE_TIMESTAMP_LEN]) |
|
static void | secure_zero_memory (void *v, size_t n) |
|
void | noise_local_init (noise_local_t *l, struct noise_upcall *upcall) |
|
bool | noise_local_set_private (noise_local_t *l, const uint8_t private[NOISE_PUBLIC_KEY_LEN]) |
|
void | noise_remote_init (noise_remote_t *r, uint32_t peer_pool_idx, const uint8_t public[NOISE_PUBLIC_KEY_LEN], u32 noise_local_idx) |
|
void | noise_remote_precompute (noise_remote_t *r) |
|
bool | noise_create_initiation (vlib_main_t *vm, noise_remote_t *r, 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 *l, noise_remote_t **rp, 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 *r, 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 *r, 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 *r) |
|
static bool | chacha20poly1305_calc (vlib_main_t *vm, u8 *src, u32 src_len, u8 *dst, u8 *aad, u32 aad_len, u64 nonce, vnet_crypto_op_id_t op_id, vnet_crypto_key_index_t key_index) |
|
enum noise_state_crypt | noise_remote_encrypt (vlib_main_t *vm, noise_remote_t *r, 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 *r, uint32_t r_idx, uint64_t nonce, uint8_t *src, size_t srclen, uint8_t *dst) |
|