← Back to section · Post-Quantum Cryptography

ML-DSA versus SLH-DSA: How Lattice and Hash-Based Signatures Divide the Work

Both are NIST post-quantum signatures, but one bets on lattice problems and the other on hash-function properties alone: a full comparison of size, speed, assumptions, and trust models, with a scenario list for each.

Published 22 November 2026 · 5 min read · PQ Frontier

ML-DSA versus SLH-DSA: How Lattice and Hash-Based Signatures Divide the Work
AI-generated site artwork
Video explainer · ML-DSA: signing and verification

When NIST published FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) on the same day in August 2024, a natural question arose: if both are post-quantum signatures, why two? The answer is that they bet on entirely different things. This article puts their assumptions, sizes, speeds, and use cases on one table to help you divide the work between them in a system design.

Security assumptions: diversity is itself the point

ML-DSA’s security rests on two lattice problems, Module-LWE and Module-SIS. These problems have been studied for over two decades, and no known classical or quantum algorithm solves them efficiently — but it is, all the same, a relatively “young” structured assumption. SLH-DSA (derived from SPHINCS+) relies only on properties of hash functions — preimage resistance, second-preimage resistance, collision resistance — among the longest-tested assumption classes in cryptography, with a design conservative to the point of stubbornness.

NIST kept both lines as a hedge against “assumption risk”: if lattice problems suffer an unexpected breakthrough one day, the hash-signature line is unaffected; if a hash function stumbles (the SHA-1 lesson is not forgotten), the lattice line still stands. This diversity mindset rhymes with the hedged signing discussed elsewhere in this column — never stake all trust on a single assumption.

Size and speed: one comparison table

Metric ML-DSA (44/65/87) SLH-DSA (128s–256f)
Public key 1,312–2,592 bytes 32–64 bytes
Private key 2,560–4,896 bytes 64–128 bytes
Signature 2,420–4,627 bytes 7,856–49,856 bytes
Signing speed Fast (sub-millisecond scale) Slow (the s sets especially)
Verification speed Fast Moderate (the f sets are quicker)
State Stateless Stateless

SLH-DSA’s parameter sets split by (security level, size/speed orientation) into six: 128s/128f, 192s/192f, 256s/256f. The “s” sets sign smaller (about 7.8–17 KB) but sign extremely slowly; the “f” sets sign faster but balloon to 17–50 KB. It also has an easily overlooked virtue: keys so small they can be backed up on paper, and statelessness — unlike stateful hash-based signatures such as LMS and XMSS, where every signature consumes a one-time key and a botched state rollback is catastrophic; SLH-DSA has no such operational landmine. The overall portrait is crisp: ML-DSA is the “balanced all-rounder,” SLH-DSA the “extreme conservative on everything except signature size and signing speed.”

Cost and hardware: another set of real constraints

Beyond cryptography, a set of engineering costs belongs in the selection. ML-DSA’s core operations are the NTT and SHAKE expansion; new server and mobile silicon is catching up on optimizing these, but its code size and memory footprint remain a burden for microcontroller-class devices — though at least it “runs, and runs fast.” SLH-DSA computes nothing but hashes, so any platform with SHA-2/SHAKE acceleration can run it, with small code; but a signature requires thousands upon thousands of hash calls — the “f” sets buy speed with parallel tree structures, the “s” sets slow to the scale of seconds, and frequent signing on battery devices is unrealistic. A further hidden cost is implementation maturity: ML-DSA’s constant-time implementations and masking defenses have deep engineering accumulation behind them, while SLH-DSA implementations are comparatively simple with a smaller error surface — but its parameter matrix (six sets × three hash bases) makes selection and interoperability testing a bigger matrix. Together these explain why the industry consensus is not “pick one” but a division of labor by position.

The division-of-labor list

Match scenarios to algorithms:

  • TLS, general certificates, API and document signing → ML-DSA. High frequency, high volume, handshake-byte-sensitive: ML-DSA’s speed and size are the only realistic choice.
  • Firmware and boot-chain root signing → both work, with good reasons to prefer SLH-DSA. Firmware is signed a handful of times a month, verified by devices in the hundreds of millions, and trusted for a decade or more: slow signing does not hurt, large signatures fold into the firmware image, and the conservative assumption is the binding constraint. The same logic fits offline root CA self-signed certificates, timestamping roots for code signing, and other “long-lived” trust anchors.
  • Extremely constrained verifiers → do the math for your case. If a verifying device has minimal bandwidth but only verifies (some satellite and industrial-control links), SLH-DSA’s large signatures are a hard injury and ML-DSA fits better; if the verifier is compute-starved but bandwidth-rich, the conclusion can flip.
  • Long-term archival and judicial evidence → SLH-DSA deserves priority. These signatures must remain credible decades later, so assumption conservatism outweighs every performance metric; and with public keys of only a few dozen bytes, archiving the verification material in metadata costs almost nothing in the long run — one of the few algorithms that gets “cheaper the longer you keep it.”

The third option: where stateful hash-based signatures fit

Strictly speaking, the hash-signature camp has another branch: LMS and XMSS (standardized in SP 800-208). They sign small and fast, and NIST explicitly recommends them for firmware signing. They are absent from the main table above because of an operational hard flaw: state. Every signature must consume a one-time key and advance a state counter; if state rolls back through backup restoration or hot-standby failover and a one-time key signs two different messages, the key leaks — an accident class distributed systems are notoriously bad at preventing. Stateful schemes therefore suit only closed settings where signature counts are controlled and state can be kept strictly monotonic (a single firmware signing station, for instance). SLH-DSA’s statelessness was designed squarely at this pain point: bigger signatures in exchange for dropping the state-management burden. Put all three in the frame and the logic completes itself: ML-DSA for general use, SLH-DSA for conservative stateless settings, and LMS/XMSS a candidate for firmware settings whose state management can be locked down.

A common misreading

Do not dismiss SLH-DSA as a mere “backup algorithm,” and do not read ML-DSA’s standardization as a stamp that “the lattice assumption is settled.” The accurate positioning: ML-DSA is the main force because it has the best combined score across size, speed, and security; SLH-DSA is the insurance because its assumption surface is the narrowest and most time-tested. Mature post-quantum migration plans usually schedule both: production systems run ML-DSA, and the most critical root-trust positions are capped with SLH-DSA — exactly the deployment shape NIST hoped to see when it issued the two standards together. If an architecture review shows only one of the two lines, ask why the other is absent; if the answer does not come, the division of labor has probably not been thought through.

Tags: ML-DSASLH-DSAFIPS 205algorithm selection