API Reference Manual  1.45.0
api/spec/crypto_types.h File Reference

ODP crypto types. More...

#include <odp/visibility_begin.h>
#include <odp/api/packet_types.h>
#include <odp/api/pool_types.h>
#include <odp/api/std_types.h>
#include <odp/visibility_end.h>
Include dependency graph for api/spec/crypto_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  odp_crypto_cipher_algos_t
 Cipher algorithms in a bit field structure. More...
 
union  odp_crypto_auth_algos_t
 Authentication algorithms in a bit field structure. More...
 
struct  odp_crypto_key
 Crypto API key structure. More...
 
struct  odp_crypto_session_param_t
 Crypto API session creation parameters. More...
 
struct  odp_crypto_packet_op_param_t
 Crypto packet API per packet operation parameters. More...
 
struct  odp_crypto_op_status
 Crypto API per packet operation completion status. More...
 
struct  odp_crypto_packet_result_t
 Crypto packet API operation result. More...
 
struct  odp_crypto_capability_t
 Crypto capabilities. More...
 
struct  odp_crypto_cipher_capability_t
 Cipher algorithm capabilities. More...
 
struct  odp_crypto_auth_capability_t
 Authentication algorithm capabilities. More...
 

Typedefs

typedef union odp_crypto_cipher_algos_t odp_crypto_cipher_algos_t
 Cipher algorithms in a bit field structure.
 
typedef union odp_crypto_auth_algos_t odp_crypto_auth_algos_t
 Authentication algorithms in a bit field structure.
 
typedef struct odp_crypto_key odp_crypto_key_t
 Crypto API key structure.
 
typedef enum odp_crypto_op_type_t odp_crypto_op_type_t
 Type of odp_crypto_op()/odp_crypto_op_enq() calls.
 
typedef struct odp_crypto_session_param_t odp_crypto_session_param_t
 Crypto API session creation parameters.
 
typedef struct odp_crypto_packet_op_param_t odp_crypto_packet_op_param_t
 Crypto packet API per packet operation parameters.
 
typedef struct odp_crypto_op_status odp_crypto_op_status_t
 Crypto API per packet operation completion status.
 
typedef struct odp_crypto_packet_result_t odp_crypto_packet_result_t
 Crypto packet API operation result.
 
typedef struct odp_crypto_capability_t odp_crypto_capability_t
 Crypto capabilities.
 
typedef struct odp_crypto_cipher_capability_t odp_crypto_cipher_capability_t
 Cipher algorithm capabilities.
 
typedef struct odp_crypto_auth_capability_t odp_crypto_auth_capability_t
 Authentication algorithm capabilities.
 

Enumerations

enum  odp_crypto_op_mode_t { ODP_CRYPTO_SYNC , ODP_CRYPTO_ASYNC }
 Crypto API operation mode. More...
 
enum  odp_crypto_op_t { ODP_CRYPTO_OP_ENCODE , ODP_CRYPTO_OP_DECODE }
 Crypto API operation. More...
 
enum  odp_cipher_alg_t {
  ODP_CIPHER_ALG_NULL , ODP_CIPHER_ALG_DES , ODP_CIPHER_ALG_3DES_CBC , ODP_CIPHER_ALG_3DES_ECB ,
  ODP_CIPHER_ALG_AES_CBC , ODP_CIPHER_ALG_AES_CTR , ODP_CIPHER_ALG_AES_ECB , ODP_CIPHER_ALG_AES_CFB128 ,
  ODP_CIPHER_ALG_AES_XTS , ODP_CIPHER_ALG_AES_GCM , ODP_CIPHER_ALG_AES_CCM , ODP_CIPHER_ALG_CHACHA20_POLY1305 ,
  ODP_CIPHER_ALG_KASUMI_F8 , ODP_CIPHER_ALG_SNOW3G_UEA2 , ODP_CIPHER_ALG_AES_EEA2 , ODP_CIPHER_ALG_ZUC_EEA3 ,
  ODP_CIPHER_ALG_SNOW_V , ODP_CIPHER_ALG_SNOW_V_GCM , ODP_CIPHER_ALG_SM4_ECB , ODP_CIPHER_ALG_SM4_CBC ,
  ODP_CIPHER_ALG_SM4_CTR , ODP_CIPHER_ALG_SM4_GCM , ODP_CIPHER_ALG_SM4_CCM
}
 Crypto API cipher algorithm. More...
 
enum  odp_auth_alg_t {
  ODP_AUTH_ALG_NULL , ODP_AUTH_ALG_MD5_HMAC , ODP_AUTH_ALG_SHA1_HMAC , ODP_AUTH_ALG_SHA224_HMAC ,
  ODP_AUTH_ALG_SHA256_HMAC , ODP_AUTH_ALG_SHA384_HMAC , ODP_AUTH_ALG_SHA512_HMAC , ODP_AUTH_ALG_SHA3_224_HMAC ,
  ODP_AUTH_ALG_SHA3_256_HMAC , ODP_AUTH_ALG_SHA3_384_HMAC , ODP_AUTH_ALG_SHA3_512_HMAC , ODP_AUTH_ALG_AES_GCM ,
  ODP_AUTH_ALG_AES_GMAC , ODP_AUTH_ALG_AES_CCM , ODP_AUTH_ALG_AES_CMAC , ODP_AUTH_ALG_AES_XCBC_MAC ,
  ODP_AUTH_ALG_CHACHA20_POLY1305 , ODP_AUTH_ALG_KASUMI_F9 , ODP_AUTH_ALG_SNOW3G_UIA2 , ODP_AUTH_ALG_AES_EIA2 ,
  ODP_AUTH_ALG_ZUC_EIA3 , ODP_AUTH_ALG_SNOW_V_GCM , ODP_AUTH_ALG_SNOW_V_GMAC , ODP_AUTH_ALG_SM3_HMAC ,
  ODP_AUTH_ALG_SM4_GCM , ODP_AUTH_ALG_SM4_GMAC , ODP_AUTH_ALG_SM4_CCM , ODP_AUTH_ALG_MD5 ,
  ODP_AUTH_ALG_SHA1 , ODP_AUTH_ALG_SHA224 , ODP_AUTH_ALG_SHA256 , ODP_AUTH_ALG_SHA384 ,
  ODP_AUTH_ALG_SHA512 , ODP_AUTH_ALG_SHA3_224 , ODP_AUTH_ALG_SHA3_256 , ODP_AUTH_ALG_SHA3_384 ,
  ODP_AUTH_ALG_SHA3_512 , ODP_AUTH_ALG_SM3
}
 Crypto API authentication algorithm. More...
 
enum  odp_crypto_op_type_t { ODP_CRYPTO_OP_TYPE_LEGACY , ODP_CRYPTO_OP_TYPE_BASIC , ODP_CRYPTO_OP_TYPE_OOP , ODP_CRYPTO_OP_TYPE_BASIC_AND_OOP }
 Type of odp_crypto_op()/odp_crypto_op_enq() calls. More...
 
enum  odp_crypto_ses_create_err_t {
  ODP_CRYPTO_SES_ERR_NONE , ODP_CRYPTO_SES_ERR_ENOMEM , ODP_CRYPTO_SES_ERR_CIPHER , ODP_CRYPTO_SES_ERR_AUTH ,
  ODP_CRYPTO_SES_ERR_ALG_COMBO , ODP_CRYPTO_SES_ERR_ALG_ORDER , ODP_CRYPTO_SES_ERR_PARAMS
}
 Crypto API session creation return code. More...
 
enum  odp_crypto_alg_err_t { ODP_CRYPTO_ALG_ERR_NONE , ODP_CRYPTO_ALG_ERR_DATA_SIZE , ODP_CRYPTO_ALG_ERR_ICV_CHECK , ODP_CRYPTO_ALG_ERR_OTHER }
 Crypto API algorithm return code. More...
 

Detailed Description

ODP crypto types.

Definition in file api/spec/crypto_types.h.