DPDK 22.11.5
|
#include <string.h>
#include <stdint.h>
#include <rte_memory.h>
#include <rte_mempool.h>
#include <rte_common.h>
#include "rte_crypto_sym.h"
Go to the source code of this file.
Data Structures | |
struct | rte_crypto_param_t |
struct | rte_crypto_ec_point |
struct | rte_crypto_rsa_priv_key_qt |
struct | rte_crypto_rsa_padding |
struct | rte_crypto_rsa_xform |
struct | rte_crypto_modex_xform |
struct | rte_crypto_modinv_xform |
struct | rte_crypto_dh_xform |
struct | rte_crypto_dsa_xform |
struct | rte_crypto_ec_xform |
struct | rte_crypto_mod_op_param |
struct | rte_crypto_rsa_op_param |
struct | rte_crypto_dh_op_param |
struct | rte_crypto_ecdh_op_param |
struct | rte_crypto_dsa_op_param |
struct | rte_crypto_ecdsa_op_param |
struct | rte_crypto_ecpm_op_param |
struct | rte_crypto_asym_xform |
struct | rte_crypto_asym_op |
Macros | |
#define | RTE_CRYPTO_ASYM_FLAG_PUB_KEY_NO_PADDING RTE_BIT32(0) |
#define | RTE_CRYPTO_ASYM_FLAG_SHARED_KEY_NO_PADDING RTE_BIT32(1) |
Typedefs | |
typedef struct rte_crypto_param_t | rte_crypto_param |
typedef rte_crypto_param | rte_crypto_uint |
Variables | |
const char * | rte_crypto_asym_xform_strings [] |
const char * | rte_crypto_asym_ke_strings [] |
const char * | rte_crypto_asym_op_strings [] |
RTE Definitions for Asymmetric Cryptography
Defines asymmetric algorithms and modes, as well as supported asymmetric crypto operations.
Definition in file rte_crypto_asym.h.
#define RTE_CRYPTO_ASYM_FLAG_PUB_KEY_NO_PADDING RTE_BIT32(0) |
Flag to denote public key will be returned without leading zero bytes and if the flag is not set, public key will be padded to the left with zeros to the size of the underlying algorithm (default)
Definition at line 49 of file rte_crypto_asym.h.
#define RTE_CRYPTO_ASYM_FLAG_SHARED_KEY_NO_PADDING RTE_BIT32(1) |
Flag to denote shared secret will be returned without leading zero bytes and if the flag is not set, shared secret will be padded to the left with zeros to the size of the underlying algorithm (default)
Definition at line 55 of file rte_crypto_asym.h.
typedef struct rte_crypto_param_t rte_crypto_param |
Buffer to hold crypto params required for asym operations.
These buffers can be used for both input to PMD and output from PMD. When used for output from PMD, application has to ensure the buffer is large enough to hold the target data.
If an operation requires the PMD to generate a random number, and the device supports CSRNG, 'data' should be set to NULL. The crypto parameter in question will not be used by the PMD, as it is internally generated.
typedef rte_crypto_param rte_crypto_uint |
Unsigned big-integer in big-endian format
Definition at line 211 of file rte_crypto_asym.h.
enum rte_crypto_curve_id |
List of elliptic curves. This enum aligns with TLS "Supported Groups" registry (previously known as NamedCurve registry). FFDH groups are not, and will not be included in this list. Deprecation for selected curve in TLS does not deprecate the selected curve in Cryptodev. https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml
Definition at line 66 of file rte_crypto_asym.h.
Asymmetric crypto transformation types. Each xform type maps to one asymmetric algorithm performing specific operation
Definition at line 80 of file rte_crypto_asym.h.
Asymmetric crypto operation type variants
Definition at line 128 of file rte_crypto_asym.h.
Asymmetric crypto key exchange operation type
Definition at line 143 of file rte_crypto_asym.h.
Padding types for RSA signature.
Definition at line 159 of file rte_crypto_asym.h.
RSA private key type enumeration
enumerates private key format required to perform RSA crypto transform.
Enumerator | |
---|---|
RTE_RSA_KEY_TYPE_EXP | RSA private key is an exponent |
RTE_RSA_KEY_TYPE_QT | RSA private key is in quintuple format See rte_crypto_rsa_priv_key_qt |
Definition at line 180 of file rte_crypto_asym.h.
|
extern |
asym xform type name strings
|
extern |
asym key exchange operation type name strings
|
extern |
asym operations type name strings