FD.io VPP  v21.01.1
Vector Packet Processing
wireguard_cookie.c File Reference
+ Include dependency graph for wireguard_cookie.c:

Go to the source code of this file.

Functions

static void cookie_precompute_key (uint8_t *, const uint8_t[COOKIE_INPUT_SIZE], const char *)
 
static void cookie_macs_mac1 (message_macs_t *, const void *, size_t, const uint8_t[COOKIE_KEY_SIZE])
 
static void cookie_macs_mac2 (message_macs_t *, const void *, size_t, const uint8_t[COOKIE_COOKIE_SIZE])
 
static void cookie_checker_make_cookie (vlib_main_t *vm, cookie_checker_t *, uint8_t[COOKIE_COOKIE_SIZE], ip4_address_t ip4, u16 udp_port)
 
void cookie_maker_init (cookie_maker_t *cp, const uint8_t key[COOKIE_INPUT_SIZE])
 
void cookie_checker_update (cookie_checker_t *cc, uint8_t key[COOKIE_INPUT_SIZE])
 
void cookie_maker_mac (cookie_maker_t *cp, message_macs_t *cm, void *buf, size_t len)
 
enum cookie_mac_state cookie_checker_validate_macs (vlib_main_t *vm, cookie_checker_t *cc, message_macs_t *cm, void *buf, size_t len, bool busy, ip4_address_t ip4, u16 udp_port)
 

Function Documentation

◆ cookie_checker_make_cookie()

static void cookie_checker_make_cookie ( vlib_main_t vm,
cookie_checker_t cc,
uint8_t  cookie[COOKIE_COOKIE_SIZE],
ip4_address_t  ip4,
u16  udp_port 
)
static

Definition at line 142 of file wireguard_cookie.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cookie_checker_update()

void cookie_checker_update ( cookie_checker_t cc,
uint8_t  key[COOKIE_INPUT_SIZE] 
)

Definition at line 46 of file wireguard_cookie.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cookie_checker_validate_macs()

enum cookie_mac_state cookie_checker_validate_macs ( vlib_main_t vm,
cookie_checker_t cc,
message_macs_t cm,
void *  buf,
size_t  len,
bool  busy,
ip4_address_t  ip4,
u16  udp_port 
)

Definition at line 79 of file wireguard_cookie.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cookie_macs_mac1()

static void cookie_macs_mac1 ( message_macs_t cm,
const void *  buf,
size_t  len,
const uint8_t  key[COOKIE_KEY_SIZE] 
)
static

Definition at line 120 of file wireguard_cookie.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cookie_macs_mac2()

static void cookie_macs_mac2 ( message_macs_t cm,
const void *  buf,
size_t  len,
const uint8_t  key[COOKIE_COOKIE_SIZE] 
)
static

Definition at line 131 of file wireguard_cookie.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cookie_maker_init()

void cookie_maker_init ( cookie_maker_t cp,
const uint8_t  key[COOKIE_INPUT_SIZE] 
)

Definition at line 38 of file wireguard_cookie.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cookie_maker_mac()

void cookie_maker_mac ( cookie_maker_t cp,
message_macs_t cm,
void *  buf,
size_t  len 
)

Definition at line 61 of file wireguard_cookie.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cookie_precompute_key()

static void cookie_precompute_key ( uint8_t *  key,
const uint8_t  input[COOKIE_INPUT_SIZE],
const char *  label 
)
static

Definition at line 108 of file wireguard_cookie.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: