27 #define ODPH_ESPHDR_LEN 8
28 #define ODPH_ESPTRL_LEN 2
29 #define ODPH_AHHDR_LEN 12
63 "ODPH_ESPHDR_T__SIZE_ERROR");
66 "ODPH_ESPTRL_T__SIZE_ERROR");
69 "ODPH_AHHDR_T__SIZE_ERROR");
90 odp_cipher_alg_t cipher_alg,
91 uint32_t cipher_key_len,
92 odp_auth_alg_t auth_alg,
93 uint32_t auth_key_len);
#define ODPH_AHHDR_LEN
IPSec AH header length.
int odph_ipsec_alg_check(const odp_ipsec_capability_t *capa, odp_cipher_alg_t cipher_alg, uint32_t cipher_key_len, odp_auth_alg_t auth_alg, uint32_t auth_key_len)
Check IPSEC algorithm support.
#define ODPH_ESPTRL_LEN
IPSec ESP trailer length.
uint32_t odph_ipsec_auth_icv_len_default(odp_auth_alg_t auth_alg)
Return the default ICV length of an algorithm.
struct ODP_PACKED odph_ahhdr_t
IPSec AH header.
#define ODPH_ESPHDR_LEN
IPSec ESP header length.
struct ODP_PACKED odph_esptrl_t
IPSec ESP trailer.
struct ODP_PACKED odph_esphdr_t
IPSec ESP header.
uint8_t icv[]
Integrity Check Value (optional)
uint8_t next_header
Next header protocol.
odp_u32be_t seq_no
Sequence Number.
odp_u32be_t spi
Security Parameter Index.
odp_u16be_t pad
Padding (must be 0)
uint8_t iv[]
Initialization vector.
uint8_t ah_len
AH header length.
uint8_t pad_len
Padding length (0-255)