Expand description
Pure-Rust, #![no_std], #![forbid(unsafe_code)], zero-external-dependency implementation of
NIST FIPS 204: Module-Lattice-Based Digital Signature Standard (ML-DSA).
Supports all three FIPS 204 parameter sets:
MlDsa44(NIST Security Category 2 —pk = 1,312 B,sk = 2,560 B,sig = 2,420 B)MlDsa65(NIST Security Category 3 —pk = 1,952 B,sk = 4,032 B,sig = 3,309 B)MlDsa87(NIST Security Category 5 —pk = 2,592 B,sk = 4,896 B,sig = 4,627 B)
§Features & Standards Alignment
- Pure ML-DSA (FIPS 204 Algorithms 1–3) with optional domain-separation context strings
ctx(|ctx| <= 255bytes). - Hedged signing (recommended default via [
quantaegis_core::Signature::sign]) and deterministic signing (rnd = [0; 32]viasign_deterministic). - External-mu signing & verification (RFC 9881 / FIPS 204 /
hazmat) for streaming or HSM pre-hashed workflows. - Constant-time, division-free
Z_8380417arithmetic and decomposition; secret keys zeroize automatically on drop and redact inDebug.
Note: Pre-
1.0.0software — an independent third-party cryptographic audit has not yet been completed; please take this into account when using this crate. The project-wide maturity stage is tracked in one place: SECURITY.md.
Re-exports§
pub use params::MAX_CTX_LEN;pub use params::MU_LEN;pub use params::RND_LEN;pub use params::SEED_LEN;
Modules§
- ml_
dsa_ 44 - Typed keys, signatures, and constants for ML-DSA-44 (NIST Security Category 2).
- ml_
dsa_ 65 - Typed keys, signatures, and constants for ML-DSA-65 (NIST Security Category 3).
- ml_
dsa_ 87 - Typed keys, signatures, and constants for ML-DSA-87 (NIST Security Category 5).
- params
- NIST FIPS 204 ML-DSA parameter sets (Table 1 and Table 2).
Structs§
- MlDsa44
- Marker type implementing [
quantaegis_core::Signature] for ML-DSA-44 (NIST Security Category 2). - MlDsa65
- Marker type implementing [
quantaegis_core::Signature] for ML-DSA-65 (NIST Security Category 3). - MlDsa87
- Marker type implementing [
quantaegis_core::Signature] for ML-DSA-87 (NIST Security Category 5). - MuHasher
- Streaming FIPS 204 External-mu (
mu = SHAKE256(tr || 0x00 || len(ctx) || ctx || M, 64)) hasher for large messages, file streams, and HSM pre-hashing workflows.