Skip to content

FIPS 204

ML-DSA: Module-Lattice-Based Digital Signature Standard.

ML-DSA is a NIST-standardized post-quantum digital signature scheme derived from CRYSTALS-Dilithium.

Workflow

ML-DSA.KeyGen
RandomnessGenerate randomnessξ32 bytes
ConstructionExpand key materialExpandA / ExpandS
ConstructionCompute and encode keysPower2RoundKey encoding
Public outputPublic keypk
Private outputPrivate keysk
  • Generate randomness to Expand key material: ξ
  • Expand key material to Compute and encode keys: Key material
  • Compute and encode keys to Public key: pk
  • Compute and encode keys to Private key: sk

Interactive Algorithm Trace

FIPS 204 algorithm trace

ML-DSA Signing & Verification
1 / 17
Algorithm 2ML-DSA.Sign⁡(sk,M,ctx)\operatorname{ML\text{-}DSA.Sign}(\mathrm{sk},M,\mathrm{ctx})
Inputssk, M, ctxPrepareM', rndCallSign_internal

Pure ML-DSA; context length at most 255 bytes. Randomness is generated by the public signing interface.

Signing path
Preparation
Algorithm 7

FIPS 204
Input
sk, M', rnd (32 bytes)
Output
sigma
Established valuesValues remain available after their defining step
Signature encodingNot encoded
c~\widetilde{c}pending
z\mathbf{z}pending
h\mathbf{h}pending
Algorithm 7 / InputsInitialize signing · 1 / 17

Algorithm 2 formats the message and obtains 32-byte rnd internally. The deterministic variant uses 32 zero bytes for rnd.

ML-DSA Operations

Run key generation, message signing, and signature verification locally in the browser.
Key GenerationInput: parameter set. Output: public key and private key.

Key generation uses the selected parameter set and does not require external input.

Operation OutputInitializing
Public key
not generated
Private key
not generated
Signature
not generated
Verification result
not generated
Cryptographic implementation:@noble/post-quantumMIT License

Quick Parameters

Primary References