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

Unpacked received SDU (Service Data Unit message) after validation (and optional decryption). More...

#include <hzl.h>

Data Fields

size_t dataLen
 Length in bytes of the unpacked/decrypted user data. More...
 
hzl_CanId_t canId
 CAN ID the underlying frame used. More...
 
hzl_Gid_t gid
 Group IDentifier the message used (expected receivers). More...
 
hzl_Sid_t sid
 Source IDentifier the message used (claimed sender). More...
 
bool wasSecured
 True if it was encrypted and authenticated during transmission. More...
 
bool isForUser
 True if the message contains useful data for the user, false if internal. More...
 
uint8_t data [HZL_MAX_CAN_FD_DATA_LEN]
 User data in plaintext of dataLen bytes. More...
 

Detailed Description

Unpacked received SDU (Service Data Unit message) after validation (and optional decryption).

Field Documentation

◆ dataLen

size_t hzl_RxMsg::dataLen

Length in bytes of the unpacked/decrypted user data.

◆ canId

hzl_CanId_t hzl_RxMsg::canId

CAN ID the underlying frame used.

◆ gid

hzl_Gid_t hzl_RxMsg::gid

Group IDentifier the message used (expected receivers).

◆ sid

hzl_Sid_t hzl_RxMsg::sid

Source IDentifier the message used (claimed sender).

◆ wasSecured

bool hzl_RxMsg::wasSecured

True if it was encrypted and authenticated during transmission.

◆ isForUser

bool hzl_RxMsg::isForUser

True if the message contains useful data for the user, false if internal.

◆ data

uint8_t hzl_RxMsg::data[HZL_MAX_CAN_FD_DATA_LEN]

User data in plaintext of dataLen bytes.


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