How to check bootloader and update libraries for post-quantum signatures

A bootloader or update client can verify a post-quantum signature only if its library supports that scheme and the image and key sizes fit the device. This page explains how to test your verification code against the shipped libraries and the limits they report.

On this page

Can your bootloader verify a post-quantum signature today?

Whether your bootloader can verify an LMS, XMSS or ML-DSA signature depends on two things: the cryptographic library linked into the bootloader, and whether the signature, public key and flash footprint fit inside your device's limits. Support differs by library and by version, so the answer is never a yes or no for "post-quantum" as a whole. If you own a bootloader or update client, your first job is to identify the exact library and version it ships, then test the verification path on the actual target hardware rather than relying on a general claim.

This matters most to device makers, platform engineers and fleet operators whose boot chains will stay in service for years. A device shipped today may still be booting in a decade, and the signing algorithm baked into its root of trust is hard to change once the hardware is in the field. The sources in this topic discuss four implementations, each at a different stage. wolfBoot lists LMS and XMSS support through its native wolfCrypt implementation from v2.2.0, ML-DSA support from v2.3.0, and an ML-DSA-87 signed-boot configuration for the NXP i.MX RT700 in v2.10.0, dated 2026-10-01. MCUboot had LMS support under review in pull request 2707, opened on 23 April 2026 and still open in October 2026, so LMS is not a merged MCUboot feature in what was read. liboqs 0.16.0, released 9 July 2026, made mldsa-native the default implementation behind its ML-DSA identifiers. Caliptra's 2.1 ROM specification defines LMS and ML-DSA-87 public key formats and a fuse that selects between them.

Before you commit to a scheme, confirm three things for your build. Check the signature length, since the wolfBoot manual's LMS example sets IMAGE_SIGNATURE_SIZE=2644 and its XMSS example sets IMAGE_SIGNATURE_SIZE=2500, and use the tools/lms/lms_siglen.sh and tools/xmss/xmss_siglen.sh scripts to compute your own values. Measure flash and verification time on your target, because a reviewer in the MCUboot thread reported about 37 KB of flash for an LMS build against about 35 KB for ECDSA-P256, and a verification time several times longer. Finally, check whether your Mbed TLS version is affected by advisory 2025-06-3, which covers Mbed TLS 3.3.0 through 3.6.3 and fault injection against hardware hash accelerators.

Where bootloaders and update clients use public-key signatures today

This table maps the three places where a device checks public-key signatures during boot and updates: image verification, SUIT manifest authentication and key provisioning. The Post-quantum work column shows which of these the change touches, so you can see where your library and configuration work begins.

Check pointWhat it verifiesPost-quantum work touches itWhat to confirm
Image signature at bootFirmware image signature before the bootloader hands over controlYesSignature scheme, public key size and signature length in your bootloader build
SUIT manifest authenticationCOSE authentication block from RFC 9052 covering the manifestYesAlgorithms named by the MTI profile you implement, since draft-23 defines only an HSS/LMS profile
Key provisioning or fusesWhich scheme the device expects, such as LMS or MLDSAYesWhether the fuse or key slot can hold the larger post-quantum public key and the scheme selector
Update client key handlingPublic keys the client uses to check manifestsYesWhether the client library verifies the scheme you plan to deploy and how keys are updated
Image hash and encryptionIntegrity hashing and any payload decryption stepNoNot a public-key signature check, so it is outside this migration path
Hardware root of trustKeys held in silicon or a secure elementNot applicableVendor documentation for post-quantum key support, since this varies by part

What the standards bodies have published for hash-based and lattice-based firmware signatures

Two families of post-quantum signatures matter for firmware, and they sit at different stages. NIST FIPS 204 (ML-DSA), a lattice-based scheme, and FIPS 205 (SLH-DSA), a stateless hash-based scheme, were both published as final standards on 13 August 2024. NIST SP 800-208, final in October 2020, specifies the stateful hash-based schemes LMS and XMSS and their multi-tree variants HSS and XMSS_MT. Before you choose an algorithm for a bootloader, confirm which of these your verification code and signing toolchain actually implement, since a final standard does not by itself mean a library or hardware block supports it.

The stateful schemes carry operational constraints that show up in the signing pipeline rather than the verifier. SP 800-208 requires that key and signature generation take place in hardware cryptographic modules that do not allow secret keying material to be exported, and NIST's project page says it is working on a revision that would permit key export. Plan for this when you decide where signing keys live and how state is tracked across signing operations. The IETF documents describing these schemes are Informational: RFC 8554 (LMS, April 2019) and RFC 8391 (XMSS, May 2018), both from the IRTF. RFC 10033 (September 2026, Informational) gives operational guidance for stateful hash-based signatures, including state and backup management, and is the document to read before committing a signing service to these schemes.

For the update format itself, RFC 9019 (April 2021, Informational) defines the IETF firmware update architecture for Internet of Things devices, and the SUIT manifest drafts build on it. Draft-ietf-suit-manifest-38 (revision of 4 November 2026) is still in the RFC Editor queue, not yet an RFC, and it defines the authentication block as COSE structures from RFC 9052, with the algorithms set by a separate MTI profile document. Draft-ietf-suit-mti-23, also in the RFC Editor queue, lists the HSS/LMS profile as the only profile built on a hash-based scheme and defines no ML-DSA profile. Confirm the draft status against the datatracker before you write it into a design, and check your device's verification code against the profile you intend to use.

Which bootloaders, libraries and vendor SDKs have shipped post-quantum verification

Among open-source bootloaders, wolfBoot has the most visible post-quantum verification support in the sources reviewed, while MCUboot's LMS work is still under review. wolfBoot's release history shows stateful hash-based support first and lattice-based support later, and its manual describes the scheme selection and signature sizes that a device team must budget for.

  • wolfBoot LMS and XMSS: The wolfBoot release page lists LMS and XMSS support using the native wolfCrypt implementation in v2.2.0.
  • wolfBoot ML-DSA: A new ML-DSA algorithm is listed in v2.3.0, and the wolfSSL announcement from October 2024 says all three FIPS 204 parameter sets, ML-DSA-44, ML-DSA-65 and ML-DSA-87, are supported.
  • wolfBoot NXP i.MX RT700: An ML-DSA-87 signed-boot configuration for the NXP i.MX RT700 is listed in v2.10.0, dated 2026-10-01.
  • MCUboot LMS: Pull request 2707, Add LMS signature support, was opened on 23 April 2026 and was still open in October 2026 in what was read, so LMS is not a merged MCUboot feature.
  • wolfBoot external integrations: The manual calls the ext_LMS and ext_XMSS integrations experimental and for interoperability testing, and recommends the wolfCrypt implementations instead.

Confirm the exact wolfBoot version, build flags such as SIGN=LMS or SIGN=ML_DSA, and the signature size for your target against the wolfBoot manual and release notes before committing to a configuration.

Where the signature check sits in the boot and update flow

The flow starts when the update server signs a firmware image and publishes a manifest that describes it. The update client or bootloader fetches both, then hands the image and its signature to a signature verifier, which in the libraries discussed here is wolfCrypt or Mbed TLS. This verifier step is where LMS, XMSS or ML-DSA code runs, and it is where flash and RAM limits apply. The verifier's result decides whether the device boots the image or rejects it, so check the code and memory footprint at this step first.

The signature check sits between image fetch and the boot decision.

How signature size, flash, RAM and verification time change the bootloader

A post-quantum signature changes how much flash, RAM and time a bootloader needs to verify an image. The cards below set out the figures reported in the sources so you can compare them with your own device limits before choosing a scheme.

wolfBoot LMS signature size

The wolfBoot manual's LMS example uses LMS_LEVELS=2, LMS_HEIGHT=5 and LMS_WINTERNITZ=8 with IMAGE_SIGNATURE_SIZE=2644. The image signature size sets how much room the manifest must hold, so check that your image slot and header layout reserve at least that many bytes for each signed image. Confirm the parameters against the build you run, since the manual is the reference for them.

wolfBoot manual

wolfBoot XMSS signature size

The wolfBoot manual's XMSS example uses XMSS_PARAMS='XMSS-SHA2_10_256' with IMAGE_SIGNATURE_SIZE=2500. Because this differs from the LMS figure, the signature length is a property of the chosen scheme and parameter set, not a fixed number. Use the tools/xmss/xmss_siglen.sh script to compute the length for the parameters you select.

wolfBoot manual

MCUboot LMS profile limits

The MCUboot pull request 2707 profile supports only SHA-256 with W8 and H10, which is the one configuration Mbed TLS supports. It uses a 56-byte public key, a 1452-byte signature and 1024 signatures per key. The signature count is a hard budget: a device that signs or rotates keys must track how many signatures remain, and the pull request was still open when it was read, so it is not a merged MCUboot feature.

MCUboot PR 2707

Cortex-M33 flash and timing reported

A reviewer of MCUboot pull request 2707 reported an LMS build on a Cortex-M33 using about 37 KB of flash, against about 35 KB for ECDSA-P256 with tinycrypt. The same reviewer estimated that verifying a 23 KiB image took about one second, against roughly a quarter second for ECDSA-P256. Treat these as one reviewer's measurements on one platform, and repeat them on your own hardware and toolchain.

MCUboot PR 2707

ML-DSA-87 public key and signing RAM

The Caliptra 2.1 ROM specification gives the ML-DSA-87 public key as 2592 bytes, which affects how much key storage and fuse or ROM space a boot ROM must reserve. The PQUIP draft says a straightforward ML-DSA-87 signing implementation needs at least 79 KB of RAM. That figure applies to signing, so it matters most for devices or build systems that sign on the device, not those that only verify.

PQUIP draft-08

Deterministic verification and signing scripts

The PQUIP draft says ML-DSA verification has deterministic execution time, while signing uses a rejection-sampling loop, so verification timing is easier to budget than signing timing. The wolfBoot scripts tools/lms/lms_siglen.sh and tools/xmss/xmss_siglen.sh compute signature lengths for a given configuration. Run them before you fix any IMAGE_SIGNATURE_SIZE value, and measure verification time on your target rather than assuming it.

PQUIP draft-08

How to test your verification code against post-quantum signatures

This sequence shows whether the verifier in each bootloader and update client can check a post-quantum signature within the device's flash, RAM and timing limits. It ends with a dated support status from the library or SDK vendor and a clear record of what the device can and cannot verify.

  1. Inventory the verifier library in each bootloader

    For every bootloader and update client in the fleet, record the verification library, its exact version and the build options that enable or disable signature schemes. Include the vendor SDK version as well, because a bootloader often inherits its crypto from a bundled SDK rather than from a standalone library. The step is complete when each device image maps to one named library and version, with no unidentified verifier left in the inventory. Owners of the build system and the device fleet records should sign off on this list.

  2. Confirm which signature scheme the build selects

    Read the build configuration to find which scheme the bootloader is compiled to verify, such as LMS, XMSS or ML-DSA, and the parameter set that goes with it. In wolfBoot, for example, the scheme is chosen with SIGN=LMS or SIGN=XMSS, and the manual's examples set parameters such as LMS_LEVELS, LMS_HEIGHT and LMS_WINTERNITZ. Record the exact configuration keys and their values for each image. The step is complete when you can state the chosen scheme and its parameters from the build files alone, without relying on memory or a template.

  3. Build and boot a test image with the target signature length

    Sign a test image with the target post-quantum scheme, setting the image signature size to match the scheme's output length. Compute that length with the tools the library provides rather than estimating it, since the wolfBoot manual supplies helper scripts for LMS and XMSS. Flash the test image to a development board and confirm it boots. Then sign a copy with one changed byte and confirm the bootloader rejects it. The step is complete when the valid image boots, and the tampered image is refused with a logged error.

  4. Measure flash, RAM and verification time on the target MCU

    On the actual target microcontroller, measure the flash footprint of the verifier, the peak RAM used during verification and the time to verify a representative image. Compare these results with the device's memory map and boot time budget, not with figures from a different core. Published numbers from other platforms exist, but they vary with the core and the hash accelerator, so treat them only as a rough guide. The step is complete when you have a measured table for each target, showing where the scheme fits the device and where it does not.

  5. Confirm key generation and state management for stateful schemes

    If the scheme is stateful, such as LMS or XMSS, confirm where key generation happens and how the one-time signature state is stored and advanced. Check whether the key-generation environment is a hardware cryptographic module that keeps secret material from being exported, as the NIST profile describes, and check how a rollback of the state counter would be detected. Record who holds the signing key and where the counter lives. The step is complete when the signing workflow is written down and you can state how a reused or rolled-back state is prevented.

  6. Read the RFC 10033 guidance on state and backup

    Read RFC 10033 for operational guidance on stateful hash-based signatures, focusing on state management and backup. Compare its recommendations with your signing workflow from the previous step and list each gap, such as a missing backup procedure or an unclear recovery path. Document the result for the security and release owners. The step is complete when every gap is either closed or assigned to an owner with a due action recorded in your own tracker.

  7. Request the vendor's published support status

    Ask each library and SDK vendor in your inventory for their published support status for the post-quantum scheme you are testing. Ask which version first supports it, whether the implementation is production or experimental, and whether any known fault-injection or security advisories apply to your configuration. Check the vendor's release notes and advisories yourself as well. The step is complete when you hold a dated, written answer from each vendor, filed next to your test results.

Which library defects and limits the sources name, and how to spot them

The sources name one fixed defect in a verification library, one fixed out-of-bounds read in another, and operational limits that apply to every stateful hash-based scheme. Each card says what the source states and what to check in your own build before you rely on a library version.

Mbed TLS LMS verification advisory

Advisory 2025-06-3 says that in Mbed TLS 3.3.0 through 3.6.3, mbedtls_lms_verify() did not check the return values of two internal functions. Under fault injection on a hardware hash accelerator, a forged signature could be accepted. The advisory names 3.6.4 and TF-PSA-Crypto 1.0 as not affected and advises avoiding accelerators that can fail without halting, or using fault-injection detection or the software SHA-256. Check your Mbed TLS version and whether your boot path uses a hardware SHA-256 accelerator.

Mbed TLS advisory

liboqs XMSS out-of-bounds read

The liboqs 0.16.0 release, dated 9 July 2026, fixed an out-of-bounds read in XMSS and XMSS^MT signature verification. The same release made mldsa-native the default implementation behind the ML-DSA-44, ML-DSA-65 and ML-DSA-87 identifiers. If your update client links liboqs for XMSS, confirm the version it ships and whether the default ML-DSA implementation changed for your build.

liboqs 0.16.0 notes

LMS state reuse limits

NIST SP 800-208 specifies LMS and XMSS as stateful schemes, so the signer must track which one-time keys are used. RFC 10033, dated September 2026, gives operational guidance on state and backup management for LMS, HSS, XMSS and XMSSMT. Ask whether your signing process keeps state across restores and backups, and whether a reused state is detectable. Confirm the exact guidance in the RFC text.

RFC 10033

Hardware export limits for stateful keys

NIST's stateful hash-based signatures project page says the SP 800-208 profile requires key and signature generation in hardware cryptographic modules that do not allow secret keying material to be exported. NIST says it is working on a revision that would enable key export. If your signing keys sit in an HSM or secure element, confirm with the vendor whether the module can export or back up the key, and how that interacts with the state limits above.

NIST project page

Checking your own build

For each library you ship, record the exact version and the build options that select the LMS, XMSS or ML-DSA code path, including any hardware accelerator configuration. Compare those against the versions named in the advisory and release notes above. Compatibility between versions is not stated in the sources, so confirm it by running your signature verification tests on the target device.

wolfBoot manual

What is not settled yet for post-quantum boot verification

Several parts of the post-quantum boot verification path are still open, and each one changes what a device team can ship. The first is key handling in hardware. NIST SP 800-208 requires that LMS and XMSS key and signature generation happen in hardware cryptographic modules that do not allow secret keying material to be exported. NIST's stateful hash-based signatures project page says it is working on a revision that would enable key export. Until that revision is published, teams planning to sign updates with LMS or XMSS should confirm whether their signing module meets the current profile and whether their build pipeline depends on exporting keys. The project page is the place to check current status.

The update manifest layer is also incomplete. In draft-ietf-suit-mti-23, which is in the RFC Editor queue and not yet an RFC, the only profile built on a hash-based signature scheme is suit-sha256-hsslms-a256kw-a256ctr. The draft defines no ML-DSA profile. Any update format that depends on the SUIT MTI draft can therefore carry LMS signatures under this profile, but a lattice-based signature in the manifest has no defined profile to use. On the library side, Mbed TLS 4.x LMS verification is verify-only and has no PSA API yet, as noted in MCUboot pull request 2707. The MCUboot LMS pull request, opened on 23 April 2026, was still open in October 2026, so LMS is not a merged MCUboot feature in what was read. The sources do not record a published MCUboot ML-DSA path. Check the MCUboot and SUIT tracker pages for current status before you commit a bootloader design to either scheme.

Before committing a design, check the upstream trackers and confirm three things for the exact versions you run: the state of the SP 800-208 revision, the SUIT MTI profile list, and whether your bootloader's LMS or ML-DSA code is merged, released and covered by a current Mbed TLS or wolfBoot release. Treat any open item as a risk to plan for, not a gap to fill with your own assumptions. Note the verification path on your target device as well, including its flash and RAM limits and the fallback behavior if a signature scheme is later changed in the field.

Common questions about checking bootloader support for post-quantum signatures

Can my bootloader verify LMS or ML-DSA signatures?

It depends on the bootloader, its version and the cryptography library it is built with, so the answer has to be checked in your own build. The wolfBoot release page lists LMS and XMSS support using the native wolfCrypt implementation from v2.2.0 and ML-DSA from v2.3.0, and its manual selects the scheme with the SIGN build option. MCUboot had not merged LMS support in what was read, since pull request 2707 was still open in October 2026. Confirm the exact version, the signing scheme and the verification code path in your firmware image before assuming support.

Which library should I choose, and why do versions matter?

Choose the library your bootloader already uses, then confirm which post-quantum schemes and parameter sets that version supports, because support changes between releases. The wolfSSL announcement says wolfBoot's ML-DSA implementation covers ML-DSA-44, ML-DSA-65 and ML-DSA-87. The Mbed TLS advisory 2025-06-3 says mbedtls_lms_verify() in versions 3.3.0 through 3.6.3 could accept a forged signature under fault injection on a hardware hash accelerator, and names 3.6.4 or later as not affected. The liboqs 0.16.0 release made mldsa-native the default behind the ML-DSA identifiers and fixed an out-of-bounds read in XMSS verification. Pin the version, track its security advisories and retest after each upgrade.

How big is a post-quantum signature in a firmware image?

Post-quantum signatures are much larger than ECDSA signatures, so the image layout and flash budget change. The wolfBoot manual gives an LMS example with IMAGE_SIGNATURE_SIZE set to 2644 and an XMSS example with 2500, and it provides tools/lms/lms_siglen.sh and tools/xmss/xmss_siglen.sh to compute lengths for your parameters. In the Caliptra 2.1 ROM specification, an LMS public key is 48 bytes and an ML-DSA-87 public key is 2592 bytes. Measure the signature and key sizes for the exact parameter set you intend to ship, then check them against your partition layout and any signature slot reserved in the manifest.

Is signature verification too slow on a Cortex-M class microcontroller?

Verification speed depends on the scheme, the parameter set, the core and the library, so measure it on your hardware rather than relying on a general figure. In MCUboot pull request 2707, a reviewer reported that an LMS build on a Cortex-M33 used about 37 KB of flash against about 35 KB for ECDSA-P256 with tinycrypt, and that verifying a 23 KiB image took about one second, against an estimated quarter second for ECDSA-P256. The PQUIP draft notes that ML-DSA verification takes a deterministic time, while signing needs a rejection-sampling loop and at least 79 KB of RAM for ML-DSA-87. Run a timed verification of a representative image on the target part, with and without any hardware hash accelerator.

Should I build the bootloader test in-house or hire outside help?

That depends on how much of the test is new to your team and how much a mistake would cost. The work usually covers building the bootloader with each candidate library, measuring flash, RAM and verification time on the target, running the image through signing and rejection paths, and reviewing the update client. Your own engineers already know the device, while outside help can add an independent test plan and a fault-injection review. DeployOpen plans, implements and tests self-hosted platforms inside client infrastructure and runs security testing, on fixed-scope engagements agreed in writing before work starts. Compare the scope against your team's capacity, and ask for a written quote tied to the devices and library versions in scope.

What should I ask a bootloader or SDK vendor before buying?

Ask for the exact versions and configurations they have tested, not general statements of support. Useful questions include which schemes and parameter sets are in the shipped code, whether verification is done by a library they maintain or one they integrate, and whether the signing and key-management tools support the same scheme. Ask how they handle security advisories for the verification library and how quickly they ship fixes. For stateful hash-based schemes like LMS and XMSS, ask how they manage signing state and backups, since RFC 10033 gives operational guidance on that. Ask for a reference image, its flash and RAM figures, and a verification timing on the MCU family you use.

Does a standard already define how post-quantum signatures are carried in firmware updates?

Parts of the standard exist, but the update manifest profiles are not complete for every scheme. The SUIT manifest draft (revision 38) carries COSE authentication structures, and the MTI draft (revision 23) defines an HSS/LMS profile as the only hash-based option and no ML-DSA profile. Both drafts were at the RFC Editor queue as of November 2026, so they are not yet RFCs. RFC 9019 describes the firmware update architecture for IoT devices. Check the status of these documents on the IETF datatracker before designing against them, and confirm with your vendor which profile their update client implements.

Primary sources to check each claim against

Every claim on this page should be checked against the document that makes it. Start with the standards. NIST FIPS 204 specifies ML-DSA and NIST FIPS 205 specifies SLH-DSA, both published as final on 13 August 2024. NIST SP 800-208 specifies the stateful hash-based schemes LMS and XMSS, and its project page states that the profile requires key generation in hardware modules that do not allow key export, with a revision under work. The IETF documents are RFC 8554 for LMS, RFC 8391 for XMSS, RFC 9019 for the firmware update architecture, and RFC 10033 for operating stateful hash-based signatures, including state and backup management.

For the update format, read the two SUIT drafts directly, since neither is an RFC yet: draft-ietf-suit-manifest-38 and draft-ietf-suit-mti-23. The MTI draft is where to confirm which algorithm profiles exist, and the sources you have do not show an ML-DSA profile in it. For implementations, check the wolfBoot releases page and the wolfBoot manual appendix H for the exact SIGN and size settings, MCUboot pull request 2707 for its open status, and the Mbed TLS advisory 2025-06-3 to confirm whether your version is affected. Check the liboqs 0.16.0 release notes, the ST Community thread and the Caliptra ROM spec 2.1 for the key sizes and vendor support statements you plan to rely on.

Each link above is the source for the claims it supports, so confirm the version, edition and date on the page you read before you record a result. Vendor and project statements can change between releases, so re-check them at the version you ship, and record the date and version you checked against in your test evidence.

How DeployOpen works on this

DeployOpen approaches bootloader and update library verification as a bounded test and planning exercise on your own devices and build pipeline. We start from the verification code you ship, check which post-quantum schemes it can run within your flash, RAM and verification time limits, and document what we find so your engineering and security teams can decide the next step.

How we scope

  • We agree in writing which bootloader and update client versions, target boards and signature schemes are in scope.
  • The scope names the libraries under test, such as wolfBoot, MCUboot or your vendor's secure boot code, and their exact versions.
  • Engagements are fixed-scope, with deliverables and timelines agreed before work starts, and ongoing support is available as a retainer.

How we build

  • We build the verification path for each in-scope scheme, such as LMS, XMSS or ML-DSA, and record flash, RAM and verification time on your target hardware.
  • We check signature sizes against your image signature field and key storage limits, using the length tools the library provides.
  • We test behavior with fault-injected or failing hash accelerators where your hardware uses one, since advisories have reported forged signatures there.

How we hand over

  • You receive a written report listing each library version, scheme, measured footprint and any open gaps we found.
  • The report records which upstream features are merged, experimental or still under review, so your team knows what it can ship on.
  • We document the test setup and steps so your engineers can repeat the checks after each library upgrade.

How we support

  • We can retest after you upgrade a library, switch a signature scheme or change a target board.
  • Retainers cover ongoing upgrades, continuous checks against new library releases and updated standards guidance.
  • Confirm current compatibility for the exact versions you run with each library's own documentation before relying on any result.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.