FD.io VPP
v20.01-48-g3e0dafb74
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | vnet_crypto_key_t |
struct | vnet_crypto_alg_data_t |
struct | vnet_crypto_op_t |
struct | vnet_crypto_op_data_t |
struct | vnet_crypto_thread_t |
struct | vnet_crypto_engine_t |
struct | vnet_crypto_main_t |
Macros | |
#define | VNET_CRYPTO_RING_SIZE 512 |
#define | foreach_crypto_cipher_alg |
#define | foreach_crypto_aead_alg |
#define | foreach_crypto_hmac_alg |
#define | foreach_crypto_op_type |
#define | foreach_crypto_op_status |
#define | VNET_CRYPTO_OP_FLAG_INIT_IV (1 << 0) |
#define | VNET_CRYPTO_OP_FLAG_HMAC_CHECK (1 << 1) |
Typedefs | |
typedef u32 | vnet_crypto_key_index_t |
typedef u32() | vnet_crypto_ops_handler_t(vlib_main_t *vm, vnet_crypto_op_t *ops[], u32 n_ops) |
typedef void() | vnet_crypto_key_handler_t(vlib_main_t *vm, vnet_crypto_key_op_t kop, vnet_crypto_key_index_t idx) |
Enumerations | |
enum | vnet_crypto_op_type_t { VNET_CRYPTO_OP_N_TYPES } |
enum | vnet_crypto_key_op_t { VNET_CRYPTO_KEY_OP_ADD, VNET_CRYPTO_KEY_OP_DEL, VNET_CRYPTO_KEY_OP_MODIFY } |
enum | vnet_crypto_op_status_t { VNET_CRYPTO_OP_N_STATUS } |
enum | vnet_crypto_alg_t { VNET_CRYPTO_ALG_NONE = 0, VNET_CRYPTO_N_ALGS } |
enum | vnet_crypto_op_id_t { VNET_CRYPTO_OP_NONE = 0, VNET_CRYPTO_N_OP_IDS } |
#define foreach_crypto_aead_alg |
#define foreach_crypto_cipher_alg |
#define foreach_crypto_hmac_alg |
#define foreach_crypto_op_status |
#define foreach_crypto_op_type |
typedef void() vnet_crypto_key_handler_t(vlib_main_t *vm, vnet_crypto_key_op_t kop, vnet_crypto_key_index_t idx) |
typedef u32 vnet_crypto_key_index_t |
typedef u32() vnet_crypto_ops_handler_t(vlib_main_t *vm, vnet_crypto_op_t *ops[], u32 n_ops) |
enum vnet_crypto_alg_t |
enum vnet_crypto_key_op_t |
enum vnet_crypto_op_id_t |
static_always_inline vnet_crypto_key_t* vnet_crypto_get_key | ( | vnet_crypto_key_index_t | index | ) |
static_always_inline vnet_crypto_op_type_t vnet_crypto_get_op_type | ( | vnet_crypto_op_id_t | id | ) |
int vnet_crypto_is_set_handler | ( | vnet_crypto_alg_t | alg | ) |
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_always_inline void vnet_crypto_op_init | ( | vnet_crypto_op_t * | op, |
vnet_crypto_op_id_t | type | ||
) |
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 | ||
) |
void vnet_crypto_register_key_handler | ( | vlib_main_t * | vm, |
u32 | engine_index, | ||
vnet_crypto_key_handler_t * | keyh | ||
) |
void vnet_crypto_register_ops_handler | ( | vlib_main_t * | vm, |
u32 | engine_index, | ||
vnet_crypto_op_id_t | opt, | ||
vnet_crypto_ops_handler_t * | oph | ||
) |
int vnet_crypto_set_handler | ( | char * | ops_handler_name, |
char * | engine | ||
) |
u32 vnet_crypto_submit_ops | ( | vlib_main_t * | vm, |
vnet_crypto_op_t ** | jobs, | ||
u32 | n_jobs | ||
) |
vnet_crypto_main_t crypto_main |
format_function_t format_vnet_crypto_alg |
format_function_t format_vnet_crypto_engine |
format_function_t format_vnet_crypto_op |
format_function_t format_vnet_crypto_op_status |
format_function_t format_vnet_crypto_op_type |
unformat_function_t unformat_vnet_crypto_alg |