_IpsecSadEntry Struct Reference

Security Association Database (SAD) entry. More...

#include <ipsec.h>

Data Fields

IpsecSaState state
 SAD entry state. More...
 
IpsecDirection direction
 Direction. More...
 
IpsecMode mode
 IPsec mode (tunnel or transport) More...
 
IpsecProtocol protocol
 Security protocol (AH or ESP) More...
 
IpsecSelector selector
 Traffic selector. More...
 
IpsecDfPolicy dfPolicy
 DF flag policy. More...
 
uint32_t spi
 Security parameter index. More...
 
CipherMode cipherMode
 Cipher mode of operation. More...
 
const CipherAlgocipherAlgo
 Cipher algorithm. More...
 
CipherContext cipherContext
 Cipher context. More...
 
uint8_t encKey [IPSEC_MAX_ENC_KEY_LEN]
 Encryption key. More...
 
size_t encKeyLen
 Length of the encryption key, in bytes. More...
 
size_t saltLen
 Length of the salt, in bytes. More...
 
uint8_t iv [16]
 Initialization vector. More...
 
size_t ivLen
 Length of the initialization vector, in bytes. More...
 
const HashAlgoauthHashAlgo
 Hash algorithm for HMAC-based integrity calculations. More...
 
const CipherAlgoauthCipherAlgo
 Cipher algorithm for CMAC-based integrity calculations. More...
 
uint8_t authKey [IPSEC_MAX_AUTH_KEY_LEN]
 Integrity protection key. More...
 
size_t authKeyLen
 Length of the integrity protection key, in bytes. More...
 
size_t icvLen
 Length of the ICV tag, in bytes. More...
 
bool_t esn
 Extended sequence numbers. More...
 
uint64_t seqNum
 Sequence number counter. More...
 
systime_t lifetimeStart
 Timestamp. More...
 
bool_t antiReplayEnabled
 Anti-replay mechanism enabled. More...
 
uint32_t antiReplayWindow [(IPSEC_ANTI_REPLAY_WINDOW_SIZE+31)/32]
 Anti-replay window. More...
 
IpAddr tunnelDestIpAddr
 Tunnel header IP destination address. More...
 

Detailed Description

Security Association Database (SAD) entry.

Definition at line 360 of file ipsec.h.

Field Documentation

◆ antiReplayEnabled

bool_t antiReplayEnabled

Anti-replay mechanism enabled.

Definition at line 388 of file ipsec.h.

◆ antiReplayWindow

uint32_t antiReplayWindow[(IPSEC_ANTI_REPLAY_WINDOW_SIZE+31)/32]

Anti-replay window.

Definition at line 389 of file ipsec.h.

◆ authCipherAlgo

const CipherAlgo* authCipherAlgo

Cipher algorithm for CMAC-based integrity calculations.

Definition at line 380 of file ipsec.h.

◆ authHashAlgo

const HashAlgo* authHashAlgo

Hash algorithm for HMAC-based integrity calculations.

Definition at line 379 of file ipsec.h.

◆ authKey

uint8_t authKey[IPSEC_MAX_AUTH_KEY_LEN]

Integrity protection key.

Definition at line 381 of file ipsec.h.

◆ authKeyLen

size_t authKeyLen

Length of the integrity protection key, in bytes.

Definition at line 382 of file ipsec.h.

◆ cipherAlgo

const CipherAlgo* cipherAlgo

Cipher algorithm.

Definition at line 371 of file ipsec.h.

◆ cipherContext

CipherContext cipherContext

Cipher context.

Definition at line 372 of file ipsec.h.

◆ cipherMode

CipherMode cipherMode

Cipher mode of operation.

Definition at line 370 of file ipsec.h.

◆ dfPolicy

IpsecDfPolicy dfPolicy

DF flag policy.

Definition at line 367 of file ipsec.h.

◆ direction

IpsecDirection direction

Direction.

Definition at line 363 of file ipsec.h.

◆ encKey

uint8_t encKey[IPSEC_MAX_ENC_KEY_LEN]

Encryption key.

Definition at line 373 of file ipsec.h.

◆ encKeyLen

size_t encKeyLen

Length of the encryption key, in bytes.

Definition at line 374 of file ipsec.h.

◆ esn

bool_t esn

Extended sequence numbers.

Definition at line 384 of file ipsec.h.

◆ icvLen

size_t icvLen

Length of the ICV tag, in bytes.

Definition at line 383 of file ipsec.h.

◆ iv

uint8_t iv[16]

Initialization vector.

Definition at line 376 of file ipsec.h.

◆ ivLen

size_t ivLen

Length of the initialization vector, in bytes.

Definition at line 377 of file ipsec.h.

◆ lifetimeStart

systime_t lifetimeStart

Timestamp.

Definition at line 386 of file ipsec.h.

◆ mode

IpsecMode mode

IPsec mode (tunnel or transport)

Definition at line 364 of file ipsec.h.

◆ protocol

IpsecProtocol protocol

Security protocol (AH or ESP)

Definition at line 365 of file ipsec.h.

◆ saltLen

size_t saltLen

Length of the salt, in bytes.

Definition at line 375 of file ipsec.h.

◆ selector

IpsecSelector selector

Traffic selector.

Definition at line 366 of file ipsec.h.

◆ seqNum

uint64_t seqNum

Sequence number counter.

Definition at line 385 of file ipsec.h.

◆ spi

uint32_t spi

Security parameter index.

Definition at line 368 of file ipsec.h.

◆ state

IpsecSaState state

SAD entry state.

Definition at line 362 of file ipsec.h.

◆ tunnelDestIpAddr

IpAddr tunnelDestIpAddr

Tunnel header IP destination address.

Definition at line 391 of file ipsec.h.


The documentation for this struct was generated from the following file: