| rte_crypto.h(3) | Library Functions Manual | rte_crypto.h(3) |
rte_crypto.h
#include <rte_mbuf.h>
#include <rte_memory.h>
#include <rte_mempool.h>
#include <rte_common.h>
#include 'rte_crypto_sym.h'
#include 'rte_crypto_asym.h'
struct rte_crypto_op
struct rte_crypto_op_pool_private
#define RTE_CRYPTO_OP_AUX_FLAGS_SESS_SOFT_EXPIRY (1
<< 0)
#define RTE_CRYPTO_OP_AUX_FLAGS_IPSEC_SOFT_EXPIRY
RTE_CRYPTO_OP_AUX_FLAGS_SESS_SOFT_EXPIRY
enum rte_crypto_op_type {
RTE_CRYPTO_OP_TYPE_UNDEFINED, RTE_CRYPTO_OP_TYPE_SYMMETRIC,
RTE_CRYPTO_OP_TYPE_ASYMMETRIC }
enum rte_crypto_op_status { RTE_CRYPTO_OP_STATUS_SUCCESS,
RTE_CRYPTO_OP_STATUS_NOT_PROCESSED,
RTE_CRYPTO_OP_STATUS_AUTH_FAILED,
RTE_CRYPTO_OP_STATUS_INVALID_SESSION,
RTE_CRYPTO_OP_STATUS_INVALID_ARGS, RTE_CRYPTO_OP_STATUS_ERROR
}
enum rte_crypto_op_sess_type { RTE_CRYPTO_OP_WITH_SESSION,
RTE_CRYPTO_OP_SESSIONLESS, RTE_CRYPTO_OP_SECURITY_SESSION }
static void __rte_crypto_op_reset (struct
rte_crypto_op *op, enum rte_crypto_op_type type)
static uint16_t __rte_crypto_op_get_priv_data_size (struct
rte_mempool *mempool)
struct rte_mempool * rte_crypto_op_pool_create (const char
*name, enum rte_crypto_op_type type, unsigned nb_elts, unsigned
cache_size, uint16_t priv_size, int socket_id)
static int __rte_crypto_op_raw_bulk_alloc (struct rte_mempool
*mempool, enum rte_crypto_op_type type, struct rte_crypto_op
**ops, uint16_t nb_ops)
static struct rte_crypto_op * rte_crypto_op_alloc (struct
rte_mempool *mempool, enum rte_crypto_op_type type)
static unsigned rte_crypto_op_bulk_alloc (struct rte_mempool
*mempool, enum rte_crypto_op_type type, struct rte_crypto_op
**ops, uint16_t nb_ops)
static void * __rte_crypto_op_get_priv_data (struct
rte_crypto_op *op, uint32_t size)
static void rte_crypto_op_free (struct rte_crypto_op *op)
static struct rte_crypto_op *
rte_crypto_sym_op_alloc_from_mbuf_priv_data (struct rte_mbuf
*m)
static struct rte_crypto_sym_xform *
rte_crypto_op_sym_xforms_alloc (struct rte_crypto_op *op,
uint8_t nb_xforms)
static int rte_crypto_op_attach_sym_session (struct
rte_crypto_op *op, void *sess)
static int rte_crypto_op_attach_asym_session (struct
rte_crypto_op *op, struct rte_cryptodev_asym_session *sess)
RTE Cryptography Common Definitions
Definition in file rte_crypto.h.
Session soft expiry limit has been reached. Applicable for any session that has a soft lifetime feature supported.
See also
rte_security_tls_record_lifetime
Definition at line 74 of file rte_crypto.h.
SA soft expiry limit has been reached
Definition at line 79 of file rte_crypto.h.
Crypto operation types
Enumerator
Definition at line 28 of file rte_crypto.h.
Status of crypto operation
Enumerator
Definition at line 38 of file rte_crypto.h.
Crypto operation session type. This is used to specify whether a crypto operation has session structure attached for immutable parameters or if all operation information is included in the operation data structure.
Enumerator
Definition at line 61 of file rte_crypto.h.
Reset the fields of a crypto operation to their default values.
Parameters
Definition at line 196 of file rte_crypto.h.
Returns the size of private data allocated with each rte_crypto_op object by the mempool
Parameters
Returns
Definition at line 235 of file rte_crypto.h.
Creates a crypto operation pool
Parameters
Returns
Bulk allocate raw element from mempool and return as crypto operations
Parameters
Returns
Definition at line 280 of file rte_crypto.h.
Allocate a crypto operation from a mempool with default parameters set
Parameters
Returns
Definition at line 308 of file rte_crypto.h.
Bulk allocate crypto operations from a mempool with default parameters set
Parameters
Returns
Definition at line 338 of file rte_crypto.h.
Returns a pointer to the private data of a crypto operation if that operation has enough capacity for requested size.
Parameters
Returns
Definition at line 368 of file rte_crypto.h.
free crypto operation structure If operation has been allocate from a rte_mempool, then the operation will be returned to the mempool.
Parameters
Definition at line 398 of file rte_crypto.h.
Allocate a symmetric crypto operation in the private data of an mbuf.
Parameters
Returns
Definition at line 416 of file rte_crypto.h.
Allocate space for symmetric crypto xforms in the private data space of the crypto operation. This also defaults the crypto xform type and configures the chaining of the xforms in the crypto operation
Returns
Definition at line 450 of file rte_crypto.h.
Attach a session to a crypto operation
Parameters
Definition at line 476 of file rte_crypto.h.
Attach a asymmetric session to a crypto operation
Parameters
Definition at line 493 of file rte_crypto.h.
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |