← Back to section · Post-Quantum Cryptography
Putting SLH-DSA to Work in Firmware Signing: The Engineering Ledger from Boot Chain to OTA
Firmware is SLH-DSA's home ground: devices live for decades, signing is rare, and verification runs in the most constrained boot code there is. This article does the engineering math — why verification needs only a hash function, how tens of kilobytes of signature amortize into a firmware image, and how statelessness changes key ceremonies and disaster recovery.
If SLH-DSA has one scenario where it is close to indispensable, it is firmware signing. Not because it is the most advanced option, but because the constraint profile of firmware — devices that live for decades, an extremely constrained verification environment, and rare, offline signing — hits SLH-DSA’s strengths point by point and sidesteps its weaknesses. This article works through that engineering ledger item by item.
The verification side: room in the boot chain for exactly one hash function
Secure-boot verification code sits at the very bottom of the trust chain: mask ROM or a first-stage bootloader. It lives under the harshest constraints in all of software — kilobytes of space, no possibility of updates, and no way to patch a bug after the fact. Putting post-quantum verification there makes the algorithm’s “verification footprint” the deciding metric.
On this metric SLH-DSA is nearly beyond reproach. Verification is hash computations from start to finish: no big-integer arithmetic, no lattice linear algebra, no floating point. The verification code can be very small, and its attack surface shrinks accordingly. The public key is 32–64 bytes, trivially burned into ROM, fuses, or one-time-programmable storage. A lattice-based verifier, by contrast, drags in a polynomial arithmetic library, and a bug in a root verification implementation cast into unchangeable ROM is a permanent risk. For a boot chain, “all you need is one well-reviewed hash implementation” is worth almost as much as the algorithm’s security itself.
The size ledger: tens of kilobytes against megabytes of image
SLH-DSA’s most criticized property — signature size — must be re-computed in the firmware setting. A modern firmware image runs from hundreds of kilobytes to tens of megabytes; an s-set signature of 7.8–29.8 KB is typically a single-digit percentage of that. If images ship via OTA, exactly one signature rides along in a differential update, and that bandwidth bill is entirely manageable. The quantities that genuinely are size-critical — the public key and the verification code — happen to be SLH-DSA’s two strongest suits.
Parameter selection follows directly. Signing happens on an offline signing machine, infrequently, so speed is insensitive; device-side storage and transport are what matter — hence the s sets by default, minimizing size while the offline process absorbs the slowness. The security level follows device lifetime: for industrial and infrastructure equipment expected to serve twenty or thirty years, the 256 level is no extravagance, because there will be no chance to swap algorithms before the device retires.
The signing side: statelessness pays out in operations, not cryptography
A firmware signing key is the crown jewel of a vendor: leak it or break it, and secure boot for an entire product line may fall. Such keys live offline, in HSMs or air-gapped signing machines, under dual control and formal key ceremonies.
Here the value of statelessness is paid out in operational form. With stateful XMSS/LMS as the firmware signing root, backup becomes a puzzle: the day a key backup is restored is the day its counter rolls back, and the industry has designed elaborate “bind the state to the backup” procedures for exactly this problem. SLH-DSA has no counter, so cold backups, off-site disaster recovery, and multi-party ceremonies revert to ordinary, well-understood key management, with no extra discipline invented for signing state. For a signing infrastructure that may serve for thirty years, one entire accident category fewer is one disaster fewer.
One distinction must be kept straight: device-side anti-rollback — preventing firmware from being downgraded to a vulnerable old version — still needs monotonic counters or version binding. But that is a firmware version-management problem, unrelated to the signing key’s state. SLH-DSA never promised to solve it; do not merge the two ledger lines in a design.
Chaining trust stage by stage: the root signs only the first stage
One more structure in the firmware setting deserves attention: an SLH-DSA root key usually does not sign every firmware image directly. Secure boot is a chain of staged verification: the root public key in ROM verifies the signature of the first-stage bootloader, the first stage verifies the second, and so on down to the operating system kernel and application firmware. Each stage verifies with the public key carried by the stage above it, and trust amplifies step by step from the few dozen root bytes in ROM.
This chain determines how often the root key is actually used: the root signs only the first stage’s release key (or the first-stage image itself) — a few times a year at most, squarely inside SLH-DSA’s low-frequency comfort zone. The numerous firmware version signatures can be carried by subordinate keys, and when a subordinate key needs rotation, the stage above simply re-issues it, keeping the root’s exposure minimal. Two joints in the chain deserve care: first, every stage’s verification should share one and the same reviewed hash and verification codebase, rather than each stage implementing its own and erring in its own way; second, every stage’s algorithm identifier should be reserved clearly, so that changing one stage’s algorithm in the future does not require rebuilding the whole chain. Leave the root to SLH-DSA and the flexibility to the lower stages — that is the chain’s soundest division of labor.
A deployment checklist
Condensed into an executable list: keep the verification implementation on a reviewed hash library along a minimal code path; default to the s sets, with the level set by device lifetime; sign offline with audit records; dual-review the injection of the root public key (burning/fusing); and preserve algorithm agility — reserve algorithm identifiers and multi-signature slots in the image format, leaving the door open to a second signature scheme later. Do all this, and SLH-DSA becomes the kind of component you install and forget: slow, but slow on the offline side; large, but affordably so; conservative, in exactly the place conservatism belongs.
Sources and further reading
- NIST, FIPS 205: Stateless Hash-Based Digital Signature Standard, 2024. https://doi.org/10.6028/NIST.FIPS.205
- NIST, SP 800-208: Recommendation for Stateful Hash-Based Signature Schemes, 2020 (conditions under which stateful schemes fit scenarios such as firmware).
- On this site: “Stateless versus Stateful: The Fundamental Split between SLH-DSA and XMSS/LMS”; “Choosing Among SLH-DSA’s Twelve Parameter Sets”
Tags: SLH-DSAfirmware signingcode signingsecure boot