NIST FIPS 204: Module-Lattice-Based Digital Signature Standard

Primary question: What does NIST FIPS 204 specify, and how does algorithm compliance differ from FIPS 140-3 validation?

NIST FIPS 204, published on 13 August 2024, is the formal specification for the Module-Lattice-Based Digital Signature Algorithm (ML-DSA), covering key generation, pure ML-DSA signing and verification, pre-hashed HashML-DSA, and optional context strings up to 255 bytes. FIPS 204 defines the mathematical algorithm and encoding; FIPS 140-3 is a separate Cryptographic Module Validation Program (CMVP) assessment of a specific software or hardware module.

Key technical provisions in FIPS 204

FIPS 204 specifies three complete parameter sets: ML-DSA-44 (Category 2), ML-DSA-65 (Category 3), and ML-DSA-87 (Category 5). Unlike earlier draft versions of CRYSTALS-Dilithium, final FIPS 204 introduces explicit domain separation inside the internal signing interface: pure ML-DSA prepends a 0x00 domain byte and the length-prefixed context string before hashing the message with SHAKE256, while pre-hashed HashML-DSA prepends 0x01 and an algorithm OID.

FIPS 204 defaults to hedged signing (combining fresh randomness with the secret key and message) to mitigate side-channel and fault-injection attacks, while permitting deterministic signing only when explicitly required by the operational environment. Because verification relies purely on deterministic polynomial arithmetic and SHAKE256, any conformant verifier can validate signatures created by either hedged or deterministic signers.

FIPS 204 algorithm conformance versus FIPS 140-3 module validation

Procurement and compliance teams frequently conflate using a FIPS-standardised algorithm with operating a FIPS-validated cryptographic module. The distinction is material:

Algorithm specification (FIPS 204) defines the mathematical operations, byte encodings, and test vectors. Implementations can be tested against NIST's Automated Cryptographic Validation Protocol (ACVP) vectors.

Cryptographic Module Validation (FIPS 140-3) evaluates the complete operational boundary of a software library or hardware security module, including self-tests, key zeroisation, physical or logical perimeter controls, and accredited laboratory testing under NIST CMVP.

AffixIO explicitly documents that it uses the FIPS 204 ML-DSA-65 algorithm on supported attestation workflows and does not claim FIPS 140-3 module validation, CAVP certification, or NIST endorsement. Regulated deployments requiring a CMVP-validated module must source and configure an appropriately validated provider or HSM for their boundary.

How FIPS 204 fits alongside FIPS 203, FIPS 205 and NIST IR 8547

FIPS 204 covers digital signatures only. Key establishment for confidential transport and encryption is governed by FIPS 203 (ML-KEM) and protocol profiles such as IETF RFC 10024 for TLS 1.3. Stateless hash-based signatures for high-assurance or mathematical-diversity backup use cases are governed by FIPS 205 (SLH-DSA). Transition deadlines are governed by NIST IR 8547 (finalised October 2026), which deprecates RSA, ECDSA, and EdDSA after 2030 and disallows them under NIST standards after 2035.

Relevant technical limitations

  • Implementations based on pre-final Dilithium drafts (Round 3 or IPD) are not wire-compatible with final NIST FIPS 204 ML-DSA due to domain-separation and encoding changes.
  • Using pure ML-DSA over an application-level SHA-256 digest (with explicit application domain separation) differs from FIPS 204 HashML-DSA mode; verifiers must follow the exact documented message construction.

Primary sources and technical standards

  1. NIST FIPS 204: Module-Lattice-Based Digital Signature Standard (ML-DSA), National Institute of Standards and Technology (NIST) ()
  2. NIST FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM), National Institute of Standards and Technology (NIST) ()
  3. NIST FIPS 205: Stateless Hash-Based Digital Signature Standard (SLH-DSA), National Institute of Standards and Technology (NIST) ()
  4. NIST IR 8547 (Final): Transition to Post-Quantum Cryptography Standards, National Institute of Standards and Technology (NIST) ()
  5. AffixIO and NIST Post-Quantum Standards, AffixIO ()