_NtsClientContext Struct Reference

NTS client context. More...

#include <nts_client.h>

Data Fields

NtsClientState state
 NTS client state. More...
 
NetInterfaceinterface
 Underlying network interface. More...
 
IpAddr ntsKeServerIpAddr
 NTS-KE server address. More...
 
uint16_t ntsKeServerPort
 NTS-KE server port. More...
 
char_t ntpServerName [NTS_CLIENT_MAX_NTP_SERVER_NAME_LEN+1]
 NTP server name. More...
 
IpAddr ntpServerIpAddr
 NTP server address. More...
 
uint16_t ntpServerPort
 NTP server port. More...
 
systime_t timeout
 Timeout value. More...
 
systime_t timestamp
 Timestamp to manage timeout. More...
 
SocketntsKeSocket
 NTS-KE socket. More...
 
SocketntpSocket
 NTP socket. More...
 
TlsContexttlsContext
 TLS context. More...
 
TlsSessionState tlsSession
 TLS session state. More...
 
NtsClientTlsInitCallback tlsInitCallback
 TLS initialization callback function. More...
 
NtsClientRandCallback randCallback
 Random data generation callback function. More...
 
systime_t startTime
 Request start time. More...
 
systime_t retransmitStartTime
 Time at which the last request was sent. More...
 
systime_t retransmitTimeout
 Retransmission timeout. More...
 
uint8_t buffer [NTS_CLIENT_BUFFER_SIZE]
 Memory buffer for input/output operations. More...
 
size_t bufferLen
 Length of the buffer, in bytes. More...
 
size_t bufferPos
 Current position in the buffer. More...
 
bool_t ntsNextProtoNegoRecordReceived
 The NTS Next Protocol Negotiation record has been received. More...
 
bool_t aeadAlgoNegoRecordReceived
 The AEAD Algorithm Negotiation record has been received. More...
 
uint8_t c2sKey [32]
 Client-to-server (C2S) key. More...
 
uint8_t s2cKey [32]
 Server-to-client (S2C) key. More...
 
uint8_t cookie [NTS_CLIENT_MAX_COOKIE_SIZE]
 NTS cookie. More...
 
size_t cookieLen
 Length of the NTS cookie, in bytes. More...
 
uint8_t uniqueId [NTS_CLIENT_UNIQUE_ID_SIZE]
 Unique identifier. More...
 
uint8_t nonce [NTS_CLIENT_NONCE_SIZE]
 Nonce. More...
 
uint32_t kissCode
 Kiss code. More...
 

Detailed Description

NTS client context.

Definition at line 177 of file nts_client.h.

Field Documentation

◆ aeadAlgoNegoRecordReceived

bool_t aeadAlgoNegoRecordReceived

The AEAD Algorithm Negotiation record has been received.

Definition at line 201 of file nts_client.h.

◆ buffer

uint8_t buffer[NTS_CLIENT_BUFFER_SIZE]

Memory buffer for input/output operations.

Definition at line 197 of file nts_client.h.

◆ bufferLen

size_t bufferLen

Length of the buffer, in bytes.

Definition at line 198 of file nts_client.h.

◆ bufferPos

size_t bufferPos

Current position in the buffer.

Definition at line 199 of file nts_client.h.

◆ c2sKey

uint8_t c2sKey[32]

Client-to-server (C2S) key.

Definition at line 202 of file nts_client.h.

◆ cookie

uint8_t cookie[NTS_CLIENT_MAX_COOKIE_SIZE]

NTS cookie.

Definition at line 204 of file nts_client.h.

◆ cookieLen

size_t cookieLen

Length of the NTS cookie, in bytes.

Definition at line 205 of file nts_client.h.

◆ interface

NetInterface* interface

Underlying network interface.

Definition at line 180 of file nts_client.h.

◆ kissCode

uint32_t kissCode

Kiss code.

Definition at line 208 of file nts_client.h.

◆ nonce

uint8_t nonce[NTS_CLIENT_NONCE_SIZE]

Nonce.

Definition at line 207 of file nts_client.h.

◆ ntpServerIpAddr

IpAddr ntpServerIpAddr

NTP server address.

Definition at line 184 of file nts_client.h.

◆ ntpServerName

NTP server name.

Definition at line 183 of file nts_client.h.

◆ ntpServerPort

uint16_t ntpServerPort

NTP server port.

Definition at line 185 of file nts_client.h.

◆ ntpSocket

Socket* ntpSocket

NTP socket.

Definition at line 189 of file nts_client.h.

◆ ntsKeServerIpAddr

IpAddr ntsKeServerIpAddr

NTS-KE server address.

Definition at line 181 of file nts_client.h.

◆ ntsKeServerPort

uint16_t ntsKeServerPort

NTS-KE server port.

Definition at line 182 of file nts_client.h.

◆ ntsKeSocket

Socket* ntsKeSocket

NTS-KE socket.

Definition at line 188 of file nts_client.h.

◆ ntsNextProtoNegoRecordReceived

bool_t ntsNextProtoNegoRecordReceived

The NTS Next Protocol Negotiation record has been received.

Definition at line 200 of file nts_client.h.

◆ randCallback

NtsClientRandCallback randCallback

Random data generation callback function.

Definition at line 193 of file nts_client.h.

◆ retransmitStartTime

systime_t retransmitStartTime

Time at which the last request was sent.

Definition at line 195 of file nts_client.h.

◆ retransmitTimeout

systime_t retransmitTimeout

Retransmission timeout.

Definition at line 196 of file nts_client.h.

◆ s2cKey

uint8_t s2cKey[32]

Server-to-client (S2C) key.

Definition at line 203 of file nts_client.h.

◆ startTime

systime_t startTime

Request start time.

Definition at line 194 of file nts_client.h.

◆ state

NTS client state.

Definition at line 179 of file nts_client.h.

◆ timeout

systime_t timeout

Timeout value.

Definition at line 186 of file nts_client.h.

◆ timestamp

systime_t timestamp

Timestamp to manage timeout.

Definition at line 187 of file nts_client.h.

◆ tlsContext

TlsContext* tlsContext

TLS context.

Definition at line 190 of file nts_client.h.

◆ tlsInitCallback

NtsClientTlsInitCallback tlsInitCallback

TLS initialization callback function.

Definition at line 192 of file nts_client.h.

◆ tlsSession

TlsSessionState tlsSession

TLS session state.

Definition at line 191 of file nts_client.h.

◆ uniqueId

uint8_t uniqueId[NTS_CLIENT_UNIQUE_ID_SIZE]

Unique identifier.

Definition at line 206 of file nts_client.h.


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