_TlsEncryptionEngine Struct Reference

Encryption engine. More...

#include <tls.h>

Data Fields

bool_t active
 Operational state of the encryption engine. More...
 
systime_t timestamp
 Timestamp to manage lifetime. More...
 
systime_t lifetime
 Lifetime of the encryption engine. More...
 
uint16_t version
 Negotiated TLS version. More...
 
uint8_t macKey [48]
 MAC key. More...
 
size_t macKeyLen
 Length of the MAC key. More...
 
uint8_t encKey [48]
 Encryption key. More...
 
size_t encKeyLen
 Length of the encryption key. More...
 
uint8_t iv [48]
 Initialization vector. More...
 
size_t fixedIvLen
 Length of the fixed part of the IV. More...
 
size_t recordIvLen
 Length of the IV. More...
 
size_t authTagLen
 Length of the authentication tag. More...
 
const CipherAlgo * cipherAlgo
 Cipher algorithm. More...
 
void * cipherContext
 Cipher context. More...
 
CipherMode cipherMode
 Cipher mode of operation. More...
 
const HashAlgo * hashAlgo
 Hash algorithm for MAC operations. More...
 
HmacContext * hmacContext
 HMAC context. More...
 
GcmContext * gcmContext
 GCM context. More...
 
TlsSequenceNumber seqNum
 TLS sequence number. More...
 
uint16_t epoch
 Counter value incremented on every cipher state change. More...
 
DtlsSequenceNumber dtlsSeqNum
 Record sequence number. More...
 
uint32_t replayWindow [(DTLS_REPLAY_WINDOW_SIZE+31)/32]
 Replay window. More...
 
uint8_t snKey [32]
 Sequence number encryption key. More...
 
void * snCipherContext
 Sequence number encryption context. More...
 
Dtls13RetransmitState retransmitState
 Retransmission state. More...
 
TlsEncryptionLevel level
 Encryption level. More...
 
size_t recordSizeLimit
 Maximum size of record in octets. More...
 
bool_t encryptThenMac
 Encrypt-then-MAC construction. More...
 

Detailed Description

Encryption engine.

Definition at line 2361 of file tls.h.

Field Documentation

◆ active

bool_t active

Operational state of the encryption engine.

Definition at line 2363 of file tls.h.

◆ authTagLen

size_t authTagLen

Length of the authentication tag.

Definition at line 2374 of file tls.h.

◆ cipherAlgo

const CipherAlgo* cipherAlgo

Cipher algorithm.

Definition at line 2375 of file tls.h.

◆ cipherContext

void* cipherContext

Cipher context.

Definition at line 2376 of file tls.h.

◆ cipherMode

CipherMode cipherMode

Cipher mode of operation.

Definition at line 2377 of file tls.h.

◆ dtlsSeqNum

DtlsSequenceNumber dtlsSeqNum

Record sequence number.

Definition at line 2386 of file tls.h.

◆ encKey

uint8_t encKey[48]

Encryption key.

Definition at line 2369 of file tls.h.

◆ encKeyLen

size_t encKeyLen

Length of the encryption key.

Definition at line 2370 of file tls.h.

◆ encryptThenMac

bool_t encryptThenMac

Encrypt-then-MAC construction.

Definition at line 2403 of file tls.h.

◆ epoch

uint16_t epoch

Counter value incremented on every cipher state change.

Definition at line 2385 of file tls.h.

◆ fixedIvLen

size_t fixedIvLen

Length of the fixed part of the IV.

Definition at line 2372 of file tls.h.

◆ gcmContext

GcmContext* gcmContext

GCM context.

Definition at line 2381 of file tls.h.

◆ hashAlgo

const HashAlgo* hashAlgo

Hash algorithm for MAC operations.

Definition at line 2378 of file tls.h.

◆ hmacContext

HmacContext* hmacContext

HMAC context.

Definition at line 2379 of file tls.h.

◆ iv

uint8_t iv[48]

Initialization vector.

Definition at line 2371 of file tls.h.

◆ level

Encryption level.

Definition at line 2397 of file tls.h.

◆ lifetime

systime_t lifetime

Lifetime of the encryption engine.

Definition at line 2365 of file tls.h.

◆ macKey

uint8_t macKey[48]

MAC key.

Definition at line 2367 of file tls.h.

◆ macKeyLen

size_t macKeyLen

Length of the MAC key.

Definition at line 2368 of file tls.h.

◆ recordIvLen

size_t recordIvLen

Length of the IV.

Definition at line 2373 of file tls.h.

◆ recordSizeLimit

size_t recordSizeLimit

Maximum size of record in octets.

Definition at line 2400 of file tls.h.

◆ replayWindow

uint32_t replayWindow[(DTLS_REPLAY_WINDOW_SIZE+31)/32]

Replay window.

Definition at line 2389 of file tls.h.

◆ retransmitState

Dtls13RetransmitState retransmitState

Retransmission state.

Definition at line 2394 of file tls.h.

◆ seqNum

TLS sequence number.

Definition at line 2383 of file tls.h.

◆ snCipherContext

void* snCipherContext

Sequence number encryption context.

Definition at line 2393 of file tls.h.

◆ snKey

uint8_t snKey[32]

Sequence number encryption key.

Definition at line 2392 of file tls.h.

◆ timestamp

systime_t timestamp

Timestamp to manage lifetime.

Definition at line 2364 of file tls.h.

◆ version

uint16_t version

Negotiated TLS version.

Definition at line 2366 of file tls.h.


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