Hazelnet 3.0.0
Reference implementation of the CAN Bus Security (CBS) protocol
Data Fields
hzl_ServerGroupState Struct Reference

Hazelnet Server variable State. More...

#include <hzl_Server.h>

Data Fields

hzl_Timestamp_t sessionStartInstant
 Timestamp of when the Session was started. More...
 
hzl_Timestamp_t currentRxLastMessageInstant
 Timestamp of when the last valid received secured message belonging to the currently active Session was processed (m_G). More...
 
hzl_Timestamp_t previousRxLastMessageInstant
 Timestamp of when the last valid received secured message belonging to the previously active Session was processed (m^{old}_G), currently about to expire. More...
 
hzl_CtrNonce_t currentCtrNonce
 Counter Nonce of the the currently active Session (N^{ctr}_G). More...
 
hzl_CtrNonce_t previousCtrNonce
 Counter Nonce of the the previously active Session (N^{ctr,old}_G), currently about to expire. More...
 
uint8_t currentStk [HZL_LTK_LEN]
 Short Term Key of the currently active Session (STK_G). More...
 
uint8_t previousStk [HZL_LTK_LEN]
 Short Term Key of the the previously active Session (STK^{old}_G), currently about to expire. More...
 

Detailed Description

Hazelnet Server variable State.

Single instance per Group, multiple instances per Server. Initialised, modified, managed and cleared fully by the Server: the user MUST NOT touch its contents.

Field Documentation

◆ sessionStartInstant

hzl_Timestamp_t hzl_ServerGroupState::sessionStartInstant

Timestamp of when the Session was started.

Used to check when it expires.

◆ currentRxLastMessageInstant

hzl_Timestamp_t hzl_ServerGroupState::currentRxLastMessageInstant

Timestamp of when the last valid received secured message belonging to the currently active Session was processed (m_G).

Used to scale down the acceptable Counter Nonce interval and to known if at least one Request was received from the Clients of this Group.

◆ previousRxLastMessageInstant

hzl_Timestamp_t hzl_ServerGroupState::previousRxLastMessageInstant

Timestamp of when the last valid received secured message belonging to the previously active Session was processed (m^{old}_G), currently about to expire.

Used to scale down the acceptable Counter Nonce interval.

◆ currentCtrNonce

hzl_CtrNonce_t hzl_ServerGroupState::currentCtrNonce

Counter Nonce of the the currently active Session (N^{ctr}_G).

◆ previousCtrNonce

hzl_CtrNonce_t hzl_ServerGroupState::previousCtrNonce

Counter Nonce of the the previously active Session (N^{ctr,old}_G), currently about to expire.

◆ currentStk

uint8_t hzl_ServerGroupState::currentStk[HZL_LTK_LEN]

Short Term Key of the currently active Session (STK_G).

◆ previousStk

uint8_t hzl_ServerGroupState::previousStk[HZL_LTK_LEN]

Short Term Key of the the previously active Session (STK^{old}_G), currently about to expire.


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