Available on crate feature
std only.Modules§
- adaptive_
crypto - Adaptive Crypto Engine
- aes_
session - High-Performance AES-GCM Session Encryption
- cid_
chain - Rotating connection-ID chain (introduced in WIRE v5 / ε; current WIRE v6).
- header_
protection - Header protection (QUIC RFC 9001 §5.4) — the per-packet mask that hides the
header fields from a passive on-path observer. Since WIRE v6 the WHOLE
15-byte header is masked —
version ‖ packet_number ‖ flags ‖ stream_id ‖ epoch ‖ path_id, the bytes at wire offset[0..15](HP_MASK_LEN = 15; no constant cleartext byte). (Was[1..15]/14 bytes in WIRE v5,[33..47]in v4 — see theHP_MASK_LENdoc for the per-version history.) - hybrid_
kem - Hybrid KEM: classical ECDH + ML-KEM-768 (FIPS 203, post-quantum).
- hybrid_
sign - Hybrid Digital Signatures: Ed25519 + ML-DSA-65 (FIPS 204).
- kdf
- Shared key-derivation helpers (Phase 4.1).
- pow
- rng
RngProvider— the indirection through which Phantom Protocol obtains cryptographic randomness. Default isOsRng, which delegates togetrandom::getrandomand therefore picks up the platform’s CSPRNG on every supported target (Linuxgetrandom(2), macOS / iOSCCRandomGenerateBytes, WindowsBCryptGenRandom, wasm32 via thejsfeature →crypto.getRandomValues, etc.).- self_
tests - Power-on + conditional self-tests for Phantom Protocol’s cryptographic primitives (FIPS 140-3 §7.7).