An IoT device designed today may still be in the field when NIST disallows RSA and elliptic curve cryptography, yet it may have tens of kilobytes of RAM, a radio frame of around a hundred bytes and no practical way to swap its boot key. Post-quantum algorithms are larger than the ones they replace, so the move to them is an engineering budget problem as much as a cryptographic one. This guide gives embedded and IoT product security engineers the exact sizes from FIPS 203, 204 and 205 and RFC 8554, shows where they hurt on constrained hardware, and sets out how to choose algorithms for boot, firmware signing and transport. It ends with update and crypto-agility planning tied to device lifetime. For the general enterprise migration, see the Post-Quantum Cryptography Migration Guide.
Key takeaways
- Lifetime decides urgency. NIST IR 8547 (final, October 2026) deprecates quantum-vulnerable signatures and key establishment after 2030 and disallows them after 2035, so a device shipping in 2027 with a ten year life must verify post-quantum signatures before it retires.
- The boot path is the hardest thing to change. Put a post-quantum firmware verification key in ROM or immutable boot code now: LMS or XMSS under SP 800-208, or ML-DSA or SLH-DSA, sized from the standards.
- Sizes are a step change, not a nudge. An ML-KEM-768 encapsulation key is 1,184 bytes and an ML-DSA-44 signature is 2,420 bytes, compared with tens of bytes for elliptic curve equivalents. Plan flash, RAM, packet fragmentation and battery for them.
- Stateful signatures need a disciplined signer. LMS and XMSS give small public keys and fast verification on the device, but SP 800-208 requires signing in non-exportable hardware modules and forbids reusing any one-time key.
- Hybrid and agility buy time. Combine classical and post-quantum key exchange during transition, and design devices so that algorithms, keys and certificates can be replaced by a signed update.
Why constrained devices are hard for PQC
RFC 7228 groups constrained devices into classes by memory: Class 0 with much less than 10 KiB of RAM and much less than 100 KiB of flash, Class 1 with about 10 KiB of RAM and 100 KiB of flash, and Class 2 with about 50 KiB and 250 KiB. It also defines energy classes, from devices that only have energy for a single event (E0) to those limited over their whole life by a non-replaceable battery (E2). Post-quantum cryptography presses on each limit at once.
- Memory: keys, signatures and working buffers are kilobytes, not bytes. On a Class 1 device a single ML-DSA signature can be a quarter of all RAM.
- Bandwidth and radio: low-power links such as IEEE 802.15.4 carry frames of at most 127 bytes, so a 1,088 byte ML-KEM-768 ciphertext needs many fragments, more airtime and more chances of loss.
- Energy: every extra byte transmitted and every extra cycle costs battery, which matters most for E1 and E2 devices.
- Long life and hard access: the NCSC's migration timelines single out industrial IoT as especially difficult: devices may be resource limited, not upgradeable, hard to reach, embedded in larger products or use proprietary protocols.
- Immutable roots of trust: the key that verifies firmware usually sits in ROM, fuses or a first-stage bootloader. If it is classical, no later update can make the boot chain post-quantum.
The risk is not the same for every function. Confidentiality of recorded traffic is exposed now to "harvest now, decrypt later" collection, so key establishment needs attention first for devices that send sensitive data. Signatures, by contrast, only need to resist a quantum computer at the time they are verified, which is why firmware verification must be right for the whole device life. See Post Quantum KEMs vs Signatures.
Algorithm sizes and resource impact
All sizes below are in bytes and come from the standards themselves: FIPS 203 Table 3, FIPS 204 Table 2, FIPS 205 Table 2 and RFC 8554. Do not estimate them from secondary sources.
Key establishment: ML-KEM (FIPS 203)
| Parameter set | Security category | Encapsulation key | Decapsulation key | Ciphertext | Shared secret |
|---|---|---|---|---|---|
| ML-KEM-512 | 1 | 800 | 1,632 | 768 | 32 |
| ML-KEM-768 | 3 | 1,184 | 2,400 | 1,088 | 32 |
| ML-KEM-1024 | 5 | 1,568 | 3,168 | 1,568 | 32 |
Signatures: ML-DSA (FIPS 204), SLH-DSA (FIPS 205) and LMS (RFC 8554, SP 800-208)
| Scheme and parameter set | Security category | Public key | Private key | Signature |
|---|---|---|---|---|
| ML-DSA-44 | 2 | 1,312 | 2,560 | 2,420 |
| ML-DSA-65 | 3 | 1,952 | 4,032 | 3,309 |
| ML-DSA-87 | 5 | 2,592 | 4,896 | 4,627 |
| SLH-DSA-SHA2-128s (and SHAKE-128s) | 1 | 32 | held by signer | 7,856 |
| SLH-DSA-SHA2-128f (and SHAKE-128f) | 1 | 32 | held by signer | 17,088 |
| SLH-DSA-SHA2-192s (and SHAKE-192s) | 3 | 48 | held by signer | 16,224 |
| SLH-DSA-SHA2-256s (and SHAKE-256s) | 5 | 64 | held by signer | 29,792 |
| LMS, SHA-256, h=10, LM-OTS w=8 | see note | 56 | held in signer's HSM | 1,452 |
| LMS, SHA-256, h=15, LM-OTS w=8 | see note | 56 | held in signer's HSM | 1,612 |
| LMS, SHA-256, h=10, LM-OTS w=4 | see note | 56 | held in signer's HSM | 2,508 |
LMS sizes are computed from RFC 8554: the signature is 12 + n(p+1) + mh bytes, where for SHA-256 n and m are 32 and p is 34 for w=8 or 67 for w=4, and the public key is 24 + m bytes. A tree of height h gives 2h signatures, so h=10 allows 1,024 and h=15 allows 32,768. NIST IR 8547 lists the SP 800-208 schemes at 192-bit and 256-bit strength (categories 3 and 5). Only the device's public key and the verifier code need to be on the device in every case; private keys belong in the signing service.
What the device actually pays
Memory and time depend heavily on the implementation. The pqm4 project benchmarks post-quantum schemes on Arm Cortex-M4 microcontrollers and publishes stack usage per operation. In its current benchmarks the stack-optimised ML-KEM-768 implementation uses about 2.9 KB of stack for encapsulation and decapsulation, against about 13 to 14 KB for the portable reference code, and the stack-optimised ML-DSA-44 implementation uses about 2.7 KB to verify. Careful implementations can fit Class 1 and Class 2 devices, but measure on your own chip, compiler and flags.
- Flash: add the verifier code, the root public key (or its hash) and space for at least one alternative algorithm if you want agility.
- RAM: budget the largest signature or ciphertext you must hold, plus working stack, at the same time as your network stack is active.
- Air time: count fragments per handshake and per update manifest, and multiply by your duty cycle and retry rate.
Choosing algorithms: ML-KEM, ML-DSA, SLH-DSA and stateful hash signatures
| Use on the device | Primary option | Alternative | Why |
|---|---|---|---|
| Session key establishment (TLS, DTLS, proprietary) | Hybrid classical plus ML-KEM-768 | ML-KEM-512 where category 1 meets policy and bandwidth is tight | Protects recorded traffic now; hybrid keeps classical security if an implementation flaw appears |
| Firmware and boot image verification | LMS or XMSS (SP 800-208) | ML-DSA, or SLH-DSA where very small keys and conservative hash-only security matter more than signature size | Small public key and simple hash-based verifier in ROM; signing happens rarely and centrally |
| Device identity certificate and authentication | ML-DSA-44 or ML-DSA-65 | Classical certificate during transition, with a planned re-issue | Signs often and on the device, so stateless signatures are required |
| Signed configuration and commands from the cloud | ML-DSA | LMS where commands are few and signed by one controlled service | Verification cost on the device dominates; signer is a server |
- Never use stateful signatures on the device itself: LMS and XMSS are for a small number of signers you control. A device that signs telemetry cannot safely track state through power loss and resets.
- FN-DSA: NIST is developing a further signature standard derived from FALCON as FIPS 206. As of the NIST PQC forum update of April 2026 its draft had not been published. Do not design a product around it until the final standard and its sizes are out.
- Small versus large organisations: a product team with a single HSM-backed signing service can run LMS safely; a team without one should start with ML-DSA or SLH-DSA for firmware, which have no signer state.
Detail on the signature schemes themselves is in the ML-DSA and SLH-DSA Post-Quantum Signatures Guide and the ML-KEM Guide.
Secure boot and firmware signing
SP 800-208 names "authentication of firmware updates for constrained devices" as the example use for stateful hash-based signatures: long-lived systems that must adopt a signature scheme soon and cannot practically change it later. It is also strict about how the signer works.
- Hardware signing only: key and signature generation must happen in hardware cryptographic modules that do not allow secret keying material to be exported, even in encrypted form, validated at FIPS 140-2 or 140-3 Level 3 physical security or higher, running only in approved mode.
- State before signature: the module must advance and persist its leaf index to non-volatile storage before it releases a signature, and must never use a one-time key twice. SP 800-208 warns that buffered writes or power loss can lose state updates and suggests monotonic counters.
- No key copies as backup: copying the private key to a second module risks reusing one-time keys. SP 800-208 instead describes a two-level HSS or XMSSMT design: a top-level tree in one module signs the roots of bottom-level trees held in other modules, with bottom-level keys generated up front and, ideally, more than one top-level key.
- Size the tree for the life of the product: count releases, hotfixes, variants and test builds over the device life, then add a large margin. Running out of leaves means the root must change, which on a ROM-anchored device is not possible.
- Keep a second trust anchor: provision more than one root public key (for example LMS and ML-DSA, or two LMS roots in separate modules) with a signed rule for switching between them, so a lost or exhausted signer does not strand the fleet.
The signing-side design, tree sizing and HSM operations are covered in depth in the PQC Code Signing Guide. For how the update itself is packaged and delivered, see the IoT Secure Firmware Update Guide (SUIT, signed OTA).
Protocol and bandwidth considerations
- Hybrid TLS 1.3 groups: RFC 10024 (Standards Track, August 2026) defines hybrid key agreement for TLS 1.3. X25519MLKEM768 (code point 0x11EC) sends a 1,216 byte client share and a 1,120 byte server share and is marked recommended in the IANA registry; SecP256r1MLKEM768 and SecP384r1MLKEM1024 are also defined. See the Hybrid Post-Quantum TLS Key Exchange Guide.
- Hybrid is permitted under NIST rules: IR 8547 states that the SP 800-56C composite technique can combine a shared secret from an approved scheme with one from another source, and that the combination can be FIPS 140 validated if at least one input comes from an approved scheme. Dual signatures are accepted if at least one component is NIST approved.
- Certificate chains dominate: each ML-DSA certificate carries a public key and a signature of several kilobytes, so a three-certificate chain can exceed the rest of the handshake. Shorten chains, pin or pre-provision intermediates, and consider raw public keys or cached chains where the protocol allows.
- Fragmentation and loss: DTLS and CoAP over lossy, small-frame links retransmit whole flights. Test handshakes at your worst real packet loss rate, not on the bench.
- Gateways: where end devices cannot carry post-quantum handshakes, terminate them at a gateway and protect the last hop by physical or local-network controls, documented as an accepted risk with an end date.
Update and crypto-agility planning
Start from the device life, not the algorithm. Work out, for each product line, the year the last unit will be retired and compare it with the IR 8547 dates and any sector rules you follow (for example CNSA 2.0 for US national security systems; see the CNSA 2.0 Transition guide and the Post-Quantum Cryptography Deadlines Tracker).
| Device situation | Retires before 2030 | Retires 2030 to 2035 | Retires after 2035 |
|---|---|---|---|
| In design now | Classical acceptable if data is not long-lived; add agility | PQ firmware root in ROM; hybrid transport | PQ firmware root and PQ identity at launch; hybrid transport |
| In the field, updatable bootloader | Monitor only | Ship a signed update that adds a PQ verification key and hybrid transport | Same, then re-issue PQ identity certificates |
| In the field, classical ROM root | Monitor only | Compensating controls at gateway; plan replacement | Replacement or retirement plan; record as residual risk |
- Inventory: for each product, list every place cryptography is used (boot, update, identity, transport, storage), the algorithm, the key location and whether it can change by update.
- Measure: benchmark candidate implementations on target hardware for flash, peak RAM, cycles and energy per operation, and real handshake time on the worst link.
- Design for change: carry an algorithm identifier with every signature and key, allow more than one trusted root, and make algorithm choice a signed configuration item, not compile-time code.
- Pilot: enable hybrid key exchange and dual-signed updates on a small ring of devices; compare failure, retry and battery rates against a control group.
- Roll out: widen in rings, keep the classical path available until the fleet confirms the new path, then remove it with a further signed update.
- Roll back safely: keep anti-rollback counters so that an attacker cannot reinstall old firmware that trusts only classical keys, while still allowing a signed recovery image.
The NCSC notes that where systems cannot be migrated, organisations may retire the service, run it to end of life, or tolerate the residual risk. Make that choice explicit for each legacy product rather than by default. See Crypto-Agility vs Post-Quantum Cryptography.
Measuring progress
- PQ-rooted share: percentage of shipped and in-field devices whose boot chain verifies a post-quantum signature.
- Hybrid session share: percentage of device sessions negotiated with a hybrid group, from server-side handshake logs.
- Signer headroom: remaining one-time keys in each LMS or XMSS tree against forecast releases. Alert well before exhaustion.
- Handshake cost: median and 95th percentile handshake time and energy per session on the field network.
- Stranded fleet: number of devices with a classical-only immutable root that will be in service after 2035.
Common failure patterns
- Putting off the boot root: shipping a new product with a classical-only ROM key "because PQC can come later in an update".
- Cloning the stateful signing key: copying an LMS or XMSS key to a backup HSM or a build server for convenience, which risks one-time key reuse and forged firmware.
- Undersized trees: choosing a small tree height for smaller signatures, then running out of leaves after years of test and variant builds.
- Bench-only testing: validating handshakes over a wired link and discovering in the field that fragmented flights fail on lossy radio.
- Assuming a pending standard: building around FN-DSA sizes before FIPS 206 is final.
- Rollback holes: adding post-quantum verification but leaving older, classical-only images installable.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev. 5 | SC-12 Cryptographic Key Establishment and Management; SC-13 Cryptographic Protection; SI-7 Software, Firmware, and Information Integrity; SI-7(15) Code Authentication; SR-11 Component Authenticity | Algorithm choice, signer key management and firmware verification |
| NIST CSF 2.0 | PR.DS-01; PR.PS-05 | Protecting data at rest and in transit; preventing unauthorised software |
| NIST standards | FIPS 203, FIPS 204, FIPS 205, SP 800-208, IR 8547 | Approved algorithms and transition dates |
| ETSI EN 303 645 | Provision 5.3 (keep software updated) | Secure, authenticated update mechanism for consumer IoT; see the ETSI EN 303 645 Consumer IoT Guide |
Practitioner checklist
- Record the retirement year of every product line and compare it with the 2030 and 2035 IR 8547 dates.
- Take every key, ciphertext and signature size from FIPS 203, 204, 205 and RFC 8554, never from secondary sources.
- Put a post-quantum firmware verification key in ROM or immutable boot code for every new design.
- If you use LMS or XMSS, sign only in non-exportable Level 3 HSMs, persist state before release and use a multi-tree design instead of key copies.
- Provision at least two trust anchors with a signed rule for switching between them.
- Benchmark ML-KEM and ML-DSA on target hardware for peak RAM, flash, cycles and energy.
- Enable hybrid key exchange, such as X25519MLKEM768, wherever the device and protocol can carry it.
- Test handshakes and update downloads at real field packet loss and duty cycle.
- Enforce anti-rollback so classical-only firmware cannot be reinstalled.
- Document a retire, run-to-end-of-life or accept decision for each device that cannot migrate.
Standards and references
- NIST: FIPS 203, Module-Lattice-Based Key-Encapsulation Mechanism Standard
- NIST: FIPS 204, Module-Lattice-Based Digital Signature Standard
- NIST: FIPS 205, Stateless Hash-Based Digital Signature Standard
- NIST: SP 800-208, Recommendation for Stateful Hash-Based Signature Schemes
- NIST: IR 8547, Transition to Post-Quantum Cryptography Standards
- IETF: RFC 8554, Leighton-Micali Hash-Based Signatures
- IETF: RFC 10024, Post-Quantum Traditional Hybrid Key Agreement for TLS 1.3
- NCSC: Timelines for migration to post-quantum cryptography
Related NHI Mgmt Group resources: PQC Code Signing Guide · IoT Secure Firmware Update Guide (SUIT, signed OTA) · NIST IR 8547 PQC Transition Timeline Guide · IoT Device Identity with TPM and DICE Guide