51 .path =
"show crypto engines",
52 .short_help =
"show crypto engines",
114 .path =
"show crypto handlers",
115 .short_help =
"show crypto handlers",
128 char **args = 0, *s, **arg, *engine = 0;
139 else if (
unformat (line_input,
"%s", &s))
166 rc += vnet_crypto_set_handler (key, engine);
197 .path =
"set crypto handler",
198 .short_help =
"set crypto handler cipher [cipher2 cipher3 ...] engine",
format_function_t format_vnet_crypto_op_type
vnet_crypto_engine_t * engines
uword * alg_index_by_name
vnet_crypto_op_data_t opt_data[VNET_CRYPTO_N_OP_IDS]
vnet_crypto_alg_data_t * algs
static clib_error_t * set_crypto_handler_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vnet_crypto_op_id_t op_by_type[VNET_CRYPTO_OP_N_TYPES]
format_function_t format_vnet_crypto_alg
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
#define clib_error_return(e, args...)
static heap_elt_t * first(heap_header_t *h)
int vnet_crypto_set_handler(char *alg_name, char *engine)
#define vec_del1(v, i)
Delete the element at index I.
#define hash_foreach_mem(key_var, value_var, h, body)
static clib_error_t * show_crypto_handlers_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define vec_free(V)
Free vector's memory (no header).
#define VLIB_CLI_COMMAND(x,...)
static clib_error_t * show_crypto_engines_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static u8 * format_vnet_crypto_handlers(u8 *s, va_list *args)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
format_function_t format_vnet_crypto_engine
vnet_crypto_op_type_t type
vnet_crypto_ops_handler_t * ops_handlers[VNET_CRYPTO_N_OP_IDS]
#define vec_foreach(var, vec)
Vector iterator.
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
vnet_crypto_main_t crypto_main