Skip to main content

Module crypto

Module crypto 

Source

Modules§

adaptive_crypto
Adaptive Crypto Engine
aes_session
High-Performance AES-GCM Session Encryption
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 is OsRng, which delegates to getrandom::getrandom and therefore picks up the platform’s CSPRNG on every supported target (Linux getrandom(2), macOS / iOS CCRandomGenerateBytes, Windows BCryptGenRandom, wasm32 via the js feature → crypto.getRandomValues, etc.).
self_tests
Power-on + conditional self-tests for Phantom Protocol’s cryptographic primitives (FIPS 140-3 §7.7).