FD.io VPP  v19.08-27-gf4dcae4
Vector Packet Processing
crypto.c File Reference
+ Include dependency graph for crypto.c:

Go to the source code of this file.

Functions

static_always_inline u32 vnet_crypto_process_ops_call_handler (vlib_main_t *vm, vnet_crypto_main_t *cm, vnet_crypto_op_id_t opt, vnet_crypto_op_t *ops[], u32 n_ops)
 
u32 vnet_crypto_process_ops (vlib_main_t *vm, vnet_crypto_op_t ops[], u32 n_ops)
 
u32 vnet_crypto_register_engine (vlib_main_t *vm, char *name, int prio, char *desc)
 
int vnet_crypto_set_handler (char *alg_name, char *engine)
 
int vnet_crypto_is_set_handler (vnet_crypto_alg_t alg)
 
void vnet_crypto_register_ops_handler (vlib_main_t *vm, u32 engine_index, vnet_crypto_op_id_t opt, vnet_crypto_ops_handler_t *fn)
 
void vnet_crypto_register_key_handler (vlib_main_t *vm, u32 engine_index, vnet_crypto_key_handler_t *key_handler)
 
static int vnet_crypto_key_len_check (vnet_crypto_alg_t alg, u16 length)
 
u32 vnet_crypto_key_add (vlib_main_t *vm, vnet_crypto_alg_t alg, u8 *data, u16 length)
 
void vnet_crypto_key_del (vlib_main_t *vm, vnet_crypto_key_index_t index)
 
static void vnet_crypto_init_cipher_data (vnet_crypto_alg_t alg, vnet_crypto_op_id_t eid, vnet_crypto_op_id_t did, char *name, u8 is_aead)
 
static void vnet_crypto_init_hmac_data (vnet_crypto_alg_t alg, vnet_crypto_op_id_t id, char *name)
 
clib_error_tvnet_crypto_init (vlib_main_t *vm)
 

Variables

vnet_crypto_main_t crypto_main
 

Function Documentation

clib_error_t* vnet_crypto_init ( vlib_main_t vm)

Definition at line 291 of file crypto.c.

+ Here is the call graph for this function:

static void vnet_crypto_init_cipher_data ( vnet_crypto_alg_t  alg,
vnet_crypto_op_id_t  eid,
vnet_crypto_op_id_t  did,
char *  name,
u8  is_aead 
)
static

Definition at line 251 of file crypto.c.

static void vnet_crypto_init_hmac_data ( vnet_crypto_alg_t  alg,
vnet_crypto_op_id_t  id,
char *  name 
)
static

Definition at line 278 of file crypto.c.

int vnet_crypto_is_set_handler ( vnet_crypto_alg_t  alg)

Definition at line 133 of file crypto.c.

+ Here is the caller graph for this function:

u32 vnet_crypto_key_add ( vlib_main_t vm,
vnet_crypto_alg_t  alg,
u8 data,
u16  length 
)

Definition at line 207 of file crypto.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vnet_crypto_key_del ( vlib_main_t vm,
vnet_crypto_key_index_t  index 
)

Definition at line 233 of file crypto.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int vnet_crypto_key_len_check ( vnet_crypto_alg_t  alg,
u16  length 
)
static

Definition at line 179 of file crypto.c.

+ Here is the caller graph for this function:

u32 vnet_crypto_process_ops ( vlib_main_t vm,
vnet_crypto_op_t  ops[],
u32  n_ops 
)

Definition at line 46 of file crypto.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u32 vnet_crypto_process_ops_call_handler ( vlib_main_t vm,
vnet_crypto_main_t cm,
vnet_crypto_op_id_t  opt,
vnet_crypto_op_t ops[],
u32  n_ops 
)

Definition at line 23 of file crypto.c.

+ Here is the caller graph for this function:

u32 vnet_crypto_register_engine ( vlib_main_t vm,
char *  name,
int  prio,
char *  desc 
)

Definition at line 78 of file crypto.c.

+ Here is the caller graph for this function:

void vnet_crypto_register_key_handler ( vlib_main_t vm,
u32  engine_index,
vnet_crypto_key_handler_t key_handler 
)

Definition at line 169 of file crypto.c.

+ Here is the caller graph for this function:

void vnet_crypto_register_ops_handler ( vlib_main_t vm,
u32  engine_index,
vnet_crypto_op_id_t  opt,
vnet_crypto_ops_handler_t fn 
)

Definition at line 141 of file crypto.c.

int vnet_crypto_set_handler ( char *  alg_name,
char *  engine 
)

Definition at line 95 of file crypto.c.

+ Here is the caller graph for this function:

Variable Documentation

vnet_crypto_main_t crypto_main

Definition at line 20 of file crypto.c.