Skip to main content

Module headers

Module headers 

Source
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.

Re-exports§

pub use types::*;
pub use encode::*;
pub use decode::*;

Modules§

decode
src/headers/decode.rs
encode
src/headers/encode.rs
types
headers/types.rs Core header struct and typed views.