Expand description
The upper and lower transport layers (Mesh Protocol 3.5, 3.6).
Upper: an access payload encrypted with an application key (AKF 1, its
AID in the header) or the device key (AKF 0), TransMIC 32 or 64 bits.
Lower: one unsegmented PDU, or up to 32 segments of 12 octets each,
acknowledged by Segment Acknowledgment messages; Reassembly collects
segments on the receiving side and says what to acknowledge.
Structs§
- Meta
- Addressing and sequence of an access message, for its nonce.
- Reassembly
- Segments being reassembled, per source. One message per source at a time, as the specification requires; a newer SeqZero replaces an older.
Enums§
- Access
Key - Which key secures an access message.
- Lower
- A parsed lower transport PDU.
- Reassembled
- What reassembly produced.
Constants§
- MAX_
SEGMENTS - The most segments a message may have.
- MAX_
UNSEGMENTED_ ACCESS - The largest upper transport PDU unsegmented: 15 octets (access).
- SEGMENT_
SIZE - Octets of upper transport PDU per access segment.
Functions§
- ack
- A Segment Acknowledgment PDU.
- decrypt_
access - Decrypts an upper transport access PDU.
- encrypt_
access - Encrypts an access payload;
big_micchooses the 64-bit TransMIC (segmented messages only). - parse
- Parses a lower transport PDU (
ctlfrom the network header). - segment_
access - Lower transport PDUs for an encrypted access message.
akf_aidisNonefor the device key,Some(aid)for an application key. Each returned PDU goes in its own Network PDU with sequence numbersseq_zero’s message’s first and onward.