Skip to main content

Module s0

Module s0 

Source
Expand description

Security 0: nonces and Message Encapsulation.

S0 frames are AES-128-OFB encrypted and authenticated with an 8-byte AES-CBC-MAC. Every frame needs a fresh 8-byte nonce from the receiver (Nonce Get, Nonce Report), so a sender asks first; the IV is the sender’s nonce followed by the receiver’s.

Modules§

cmd
Security 0 command ids.

Structs§

S0Manager
Security 0 state for one node.

Enums§

S0Payload
A decapsulated S0 frame.

Constants§

CC_SECURITY
The Security (S0) command class id.
MAX_OWN_NONCES
Most nonces we keep outstanding at once.
MAX_PAYLOAD
The longest S0 payload in one frame; longer commands are split in two.
NONCE_LIFETIME
How long a nonce we issued stays valid.
TEMP_KEY
The well-known all-zero key S0 uses while handing over the real one.