stochastic-routing-extended 1.0.2

SRX (Stochastic Routing eXtended) — a next-generation VPN protocol with stochastic routing, DPI evasion, post-quantum cryptography, and multi-transport channel splitting
Documentation
//! Frame encoding, decoding, fragmentation, and reassembly.
//!
//! # Frame format
//!
//! ```text
//! +----------------+----------------+------------------+---------+------+
//! | Frame-ID (8B)  | Routing Mask   | Payload Length   | Payload | MAC  |
//! | (stochastic)   | (4B)           | (2B)             | (var)   | (16B)|
//! +----------------+----------------+------------------+---------+------+
//! ```
//!
//! - **Frame-ID**: non-incremental, stochastically generated per-frame.
//! - **Routing Mask**: determines transport and routing for fragments.
//! - **Payload**: encrypted VPN data with randomized-length padding.
//! - **MAC**: authentication tag from AEAD.

pub mod codec;
pub mod fragment;
pub mod stream;

pub use codec::{Frame, FrameCodec};
pub use fragment::{FragmentAssembler, frame_with_fragment};
pub use stream::{MAX_STREAM_PAYLOAD, read_length_prefixed, write_length_prefixed};