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.