Skip to main content

Module frame

Module frame 

Source
Expand description

Helpers for constructing and parsing fully-secured frames.

These tie together super::session::Session<Secure>, the crate::packet::PacketBuilder, and the AES-CBC payload codec into a single ergonomic call.

§Spec: Annex D.5

Enums§

Direction
What kind of secured frame we’re building.

Functions§

seal
Build a fully-secured packet (SCB + optional encryption + MAC + trailer).
unseal
Verify the MAC on parsed and (if SCS_17/18) decrypt the DATA payload.