Go to the source code of this file.
|
u32 | vnet_crypto_register_engine (vlib_main_t *vm, char *name, int prio, char *desc) |
|
vlib_error_t * | vnet_crypto_register_ops_handler (vlib_main_t *vm, u32 provider_index, vnet_crypto_op_id_t opt, vnet_crypto_ops_handler_t *f) |
|
u32 | vnet_crypto_submit_ops (vlib_main_t *vm, vnet_crypto_op_t **jobs, u32 n_jobs) |
|
u32 | vnet_crypto_process_ops (vlib_main_t *vm, vnet_crypto_op_t ops[], u32 n_ops) |
|
int | vnet_crypto_set_handler (char *ops_handler_name, char *engine) |
|
static_always_inline void | vnet_crypto_op_init (vnet_crypto_op_t *op, vnet_crypto_op_id_t type) |
|
static_always_inline vnet_crypto_op_type_t | vnet_crypto_get_op_type (vnet_crypto_op_id_t id) |
|
#define foreach_crypto_aead_alg |
Value:_(AES_128_GCM, "aes-128-gcm") \
_(AES_192_GCM, "aes-192-gcm") \
_(AES_256_GCM, "aes-256-gcm")
Definition at line 30 of file crypto.h.
#define foreach_crypto_cipher_alg |
Value:_(DES_CBC, "des-cbc") \
_(3DES_CBC, "3des-cbc") \
_(AES_128_CBC, "aes-128-cbc") \
_(AES_192_CBC, "aes-192-cbc") \
_(AES_256_CBC, "aes-256-cbc")
Definition at line 23 of file crypto.h.
#define foreach_crypto_hmac_alg |
Value:_(MD5, "md5") \
_(SHA1, "sha-1") \
_(SHA224, "sha-224") \
_(SHA256, "sha-256") \
_(SHA384, "sha-384") \
_(SHA512, "sha-512")
Definition at line 35 of file crypto.h.
#define foreach_crypto_op_status |
Value:_(PENDING, "pending") \
_(COMPLETED, "completed") \
_(FAIL_NO_HANDLER, "no-handler") \
_(FAIL_BAD_HMAC, "bad-hmac") \
_(FAIL_DECRYPT, "decrypt-fail")
Definition at line 59 of file crypto.h.
#define foreach_crypto_op_type |
Value:_(ENCRYPT, "encrypt") \
_(DECRYPT, "decrypt") \
_(AEAD_ENCRYPT, "aead-encrypt") \
_(AEAD_DECRYPT, "aead-decrypt") \
_(HMAC, "hmac")
Definition at line 44 of file crypto.h.
#define VNET_CRYPTO_OP_FLAG_HMAC_CHECK (1 << 1) |
#define VNET_CRYPTO_OP_FLAG_INIT_IV (1 << 0) |
#define VNET_CRYPTO_RING_SIZE 512 |
Enumerator |
---|
VNET_CRYPTO_N_ALGS |
|
Definition at line 75 of file crypto.h.
Enumerator |
---|
VNET_CRYPTO_OP_NONE |
|
VNET_CRYPTO_N_OP_IDS |
|
Definition at line 87 of file crypto.h.
Enumerator |
---|
VNET_CRYPTO_OP_N_STATUS |
|
Definition at line 66 of file crypto.h.
Enumerator |
---|
VNET_CRYPTO_OP_N_TYPES |
|
Definition at line 51 of file crypto.h.
u32 vnet_crypto_register_engine |
( |
vlib_main_t * |
vm, |
|
|
char * |
name, |
|
|
int |
prio, |
|
|
char * |
desc |
|
) |
| |
int vnet_crypto_set_handler |
( |
char * |
ops_handler_name, |
|
|
char * |
engine |
|
) |
| |