Expand description
headers/mod.rs Public module export for the streaming envelope headers.
Industry notes:
- Fixed-size header (80 bytes) enables deterministic IO and simple embedding.
- Explicit IDs (cipher, PRF, compression, strategy) avoid silent incompatibilities.
- Key ID and salt align with HSM/KMS practices: stream points to key version, secrets stay external.
- Flags declare presence of optional metadata (totals, CRC, terminator/digest frames).
- AAD domain binds header semantics into per-frame AEAD AAD, preventing cross-protocol confusion.