SH2SC-EDT
Self-Healing Hardware and Software Complex for Encrypted Data Transmission
Loading...
Searching...
No Matches
Frame Size Constants

Variables

const uint8_t HELLO_NONCE_SIZE = 12u
 ChaCha20 IV length in bytes (IETF 96-bit nonce format).
 
const uint8_t AUTH_TAG_SIZE = 16u
 Full Poly1305 tag length in bytes (computed internally, not fully transmitted).
 
const uint8_t TRUNCATED_MAC_SIZE = 8u
 Bytes of Poly1305 MAC actually placed on the wire (first 8 of 16).
 
const uint8_t DATA_PAYLOAD_SIZE = 4u
 Byte size of the encrypted payload in a DataPacket.
 
const uint8_t HELLO_NONCE_SIZE = 12u
 ChaCha20 IV length in bytes (IETF 96-bit nonce format).
 
const uint8_t AUTH_TAG_SIZE = 16u
 Full Poly1305 tag length in bytes (computed internally, not fully transmitted).
 
const uint8_t TRUNCATED_MAC_SIZE = 8u
 Bytes of Poly1305 MAC actually placed on the wire (first 8 of 16).
 
const uint8_t DATA_PAYLOAD_SIZE = 4u
 Byte size of the encrypted payload in a DataPacket.
 

Detailed Description

Variable Documentation

◆ AUTH_TAG_SIZE [1/2]

const uint8_t AUTH_TAG_SIZE = 16u

Full Poly1305 tag length in bytes (computed internally, not fully transmitted).

Definition at line 55 of file protocol.h.

◆ AUTH_TAG_SIZE [2/2]

const uint8_t AUTH_TAG_SIZE = 16u

Full Poly1305 tag length in bytes (computed internally, not fully transmitted).

Definition at line 55 of file protocol.h.

◆ DATA_PAYLOAD_SIZE [1/2]

const uint8_t DATA_PAYLOAD_SIZE = 4u

Byte size of the encrypted payload in a DataPacket.

Covers two uint16_t fields: note_index and duration_ms. Layout: [0..1] = note_index, [2..3] = duration_ms.

Definition at line 63 of file protocol.h.

◆ DATA_PAYLOAD_SIZE [2/2]

const uint8_t DATA_PAYLOAD_SIZE = 4u

Byte size of the encrypted payload in a DataPacket.

Covers two uint16_t fields: note_index and duration_ms. Layout: [0..1] = note_index, [2..3] = duration_ms.

Definition at line 63 of file protocol.h.

Referenced by authenticateAndPlay(), processFinPacket(), sendFinPacket(), and sendPacket().

◆ HELLO_NONCE_SIZE [1/2]

const uint8_t HELLO_NONCE_SIZE = 12u

ChaCha20 IV length in bytes (IETF 96-bit nonce format).

Definition at line 54 of file protocol.h.

◆ HELLO_NONCE_SIZE [2/2]

const uint8_t HELLO_NONCE_SIZE = 12u

ChaCha20 IV length in bytes (IETF 96-bit nonce format).

Definition at line 54 of file protocol.h.

Referenced by authenticateAndPlay(), processFinPacket(), processHelloBody(), rx_loop(), sendFinPacket(), sendHelloPacket(), sendPacket(), suspendSession(), and tx_loop().

◆ TRUNCATED_MAC_SIZE [1/2]

const uint8_t TRUNCATED_MAC_SIZE = 8u

Bytes of Poly1305 MAC actually placed on the wire (first 8 of 16).

Definition at line 56 of file protocol.h.

◆ TRUNCATED_MAC_SIZE [2/2]

const uint8_t TRUNCATED_MAC_SIZE = 8u

Bytes of Poly1305 MAC actually placed on the wire (first 8 of 16).

Definition at line 56 of file protocol.h.

Referenced by authenticateAndPlay(), processFinPacket(), sendFinPacket(), and sendPacket().