What is code signing in cryptography?

Code signing attaches a digital signature to software so users and systems can check its origin and integrity. This page covers the post-quantum signature schemes that standards bodies have specified for it and what they mean for a migration.

On this page

What code signing means and who meets it

A release engineer or platform owner is asked whether the software they sign is post-quantum ready. Code signing is a digital signature applied over software so that users and systems can check where it came from and whether it has been altered since release. The signature algorithms used for this are defined in several documents: NIST FIPS 204, which specifies the module-lattice digital signature algorithm ML-DSA and was published as a final standard on 13 August 2024; NIST SP 800-208, which specifies stateful hash-based schemes such as LMS and XMSS; and IETF RFCs that define how these algorithms are encoded in certificates and in the Cryptographic Message Syntax, including RFC 9881 for ML-DSA in X.509 and RFC 9708 for HSS/LMS in CMS. The term appears in specifications under these names, so the first step is to confirm which algorithm and which encoding the release pipeline actually uses.

Several roles meet this term. Release teams and build engineers handle the signing keys and the tools that produce signatures. Device makers and firmware teams depend on signed images that their hardware verifies before running. Procurement reviewers and auditors read vendor documents and ask whether a signed product uses an algorithm and encoding that the vendor has stated. Each group needs a different answer: release teams need to know which key types and signing tools are in use, while reviewers need a dated, product-specific statement from the vendor. The sources listed on this page do not say how any particular vendor or product signs its software, so those answers must come from the vendor or from the organization's own pipeline.

Which signature algorithm names and identifiers code signing uses

This table lists the signature algorithm names and identifiers that the sources give for post-quantum and hash-based schemes used in certificates and CMS signed objects. Read each row as a name, the identifier the source assigns to it, and the document that defines that identifier. A library or signing tool may use a different name for the same scheme, so check the identifier and the defining document rather than the display name.

SchemeIdentifier given in the sourcesDefining documentWhat to check
ML-DSA-44id-ml-dsa-44, OID 2.16.840.1.101.3.4.3.17RFC 9881 (X.509 certificates)Public key of 1312 bytes and signature of 2420 bytes, per RFC 9881. Confirm your signing tool accepts this OID.
ML-DSA-65id-ml-dsa-65, OID 2.16.840.1.101.3.4.3.18RFC 9881 (X.509 certificates)Public key of 1952 bytes and signature of 3309 bytes, per RFC 9881. Larger signatures affect artifact size and verification tooling.
ML-DSA-87id-ml-dsa-87, OID 2.16.840.1.101.3.4.3.19RFC 9881 (X.509 certificates)Public key of 2592 bytes and signature of 4627 bytes, per RFC 9881. Plan storage and transfer for the largest signatures in this set.
ML-DSA key usageCertificate key usage must include at least one of digitalSignature, nonRepudiation, keyCertSign or cRLSignRFC 9881, section 5Key encipherment, data encipherment, key agreement, encipherOnly and decipherOnly are not permitted. Check certificate profiles before issuing code signing certificates.
HSS (hierarchical signatures)id-alg-hss-lms-hashsig, OID 1.2.840.113549.1.9.16.3.17RFC 9708 (CMS), with NIST SP 800-208Defines the algorithm identifier and public key syntax for HSS/LMS in CMS. Hash-based schemes are stateful.
XMSS and XMSS^MTid-alg-xmss-hashsig, OID 1.3.6.1.5.5.7.6.34; id-alg-xmssmt-hashsig, OID 1.3.6.1.5.5.7.6.35RFC 9802 (X.509), with NIST SP 800-208Certificate identifiers for XMSS and its multi-tree variant. Confirm support in your certificate authority and verifier.
LMS typecodes (tree height)LMS_SHA256_M32_H5 = 0x00000005; H10 = 0x00000006; H15 = 0x00000007; H20 = 0x00000008; H25 = 0x00000009RFC 8554Typecodes identify tree height in the LMS public key and signature. Different heights trade signing capacity against size.
LM-OTS typecodesLMOTS_SHA256_N32_W1 = 0x00000001 through W8 = 0x00000004RFC 8554One-time signature parameters used inside LMS. Verify that your implementation reports the same typecode.
Stateful use requirementSecret key state must never be reusedRFC 8554 and NIST SP 800-208Reuse of state removes security guarantees. Use these schemes only where state reuse is prevented, and confirm this in your signing process.

Where practitioners meet code signing in post-quantum work

Code signing shows up in a small number of recurring places during post-quantum planning: update pipelines, signed artifacts, certificates and vendor paperwork. Each context asks a different question, so the reader needs to know which algorithm, identifier or claim applies where.

Firmware and software update pipelines

Release teams sign firmware and software images so devices and updaters can verify origin and integrity before installing. In post-quantum work, the signing key and algorithm in the pipeline decide whether a device can verify future releases. Check which signature scheme the build and signing tools use, whether the verifier on the device supports it, and how the signing key is stored and rotated.

NIST SP 800-208

CMS-signed artifacts

Cryptographic Message Syntax (CMS) carries signatures on many artifacts, and RFC 9708 defines how HSS/LMS keys and signatures are encoded inside it. A reader meeting a CMS-signed artifact should confirm which algorithm identifier the signature uses and whether the verifier recognizes it. Whether a given toolchain produces or accepts these identifiers is a question for its own documentation.

RFC 9708

X.509 code signing certificates

Code signing certificates bind a signing key to an identity, and RFC 9881 and RFC 9802 define how ML-DSA and hash-based keys appear in X.509 certificates. For ML-DSA keys, RFC 9881 requires the key usage extension to set at least one of digitalSignature, nonRepudiation, keyCertSign or cRLSign, and forbids keyEncipherment and related bits. Check the certificate profile your issuer uses against these rules before accepting a new certificate.

RFC 9881

Stateful hash-based signing keys

LMS, XMSS and their multi-tree variants are stateful, so the signer must track which one-time keys are used. RFC 8554 warns that reusing a secret key state removes the security guarantees, and these schemes should only be used where reuse of state is prevented. Check that the signing system stores and updates state safely, and that backups cannot roll state back.

RFC 8554

Vendor security documents and tender questions

Procurement teams and security reviewers ask vendors whether their signed releases use post-quantum algorithms, which algorithms and versions apply, and how signing keys are managed. Vendor answers should name the scheme and the component, not a general claim of readiness. Ask for the algorithm identifiers and key sizes in use, and whether the verifier on the customer side supports them.

NIST FIPS 204

How the signing process works in a release

In a release, the publisher signs the artifact with a private key that only the publisher holds. The signature is computed over the artifact itself, so any later change to the artifact causes verification to fail. The verifier, which is the operating system, package manager, installer or end user checking the download, does not need the private key. It checks the signature against a public key that is carried in a certificate issued to the publisher. Before trusting that certificate, the verifier relies on a trust anchor it already holds, such as a root certificate installed on the system or in the trust store of the tool doing the check.

When the certificate carries an ML-DSA key, RFC 9881 sets rules for its key usage extension. The extension must set at least one of digitalSignature, nonRepudiation, keyCertSign or cRLSign. It must not set keyEncipherment, dataEncipherment, keyAgreement, encipherOnly or decipherOnly. A release team should confirm that the certificate profile issued by its certificate authority meets these rules before signing, because a certificate with a disallowed usage may be rejected by a verifier that enforces the RFC. Whether a given certificate authority issues ML-DSA certificates that follow this profile is a question to put to that authority directly.

For release teams, the practical checks are to confirm which key and certificate the signing pipeline uses, to record the key usage extension of that certificate, and to test verification on a clean system before publishing. Hash-based schemes described in NIST SP 800-208 work differently, because a reused key state removes their security guarantees, as RFC 8554 warns. Teams using those schemes must confirm that their pipeline prevents state reuse before relying on them.

Which post-quantum code signing standards are final

Not every post-quantum code signing standard is in the same state, so check the publication status before you commit a release pipeline to one. NIST FIPS 204, which specifies ML-DSA, was published as a final standard on 13 August 2024. The NIST page also lists a planning note dated 31 July 2026 stating that several minor errata will be corrected in a future update, so confirm you are working from the current revision and track that update. The companion IETF document for using ML-DSA in X.509 certificates, RFC 9881, is a Standards Track document dated October 2025, which gives you the algorithm identifiers and key usage rules that certificate-based signing chains depend on.

The hash-based options have a different profile. NIST SP 800-208, which covers the Leighton-Micali Signature system and the XMSS family, was published as final in October 2020. The IETF documents that carry these schemes into real formats are later and vary by status: RFC 8554 (Leighton-Micali Hash-Based Signatures) was published in April 2019 as an Informational RFC, RFC 9708 (HSS/LMS in CMS) is a Standards Track document of January 2025, and RFC 9802 (HSS and XMSS in X.509) is a Standards Track document of June 2025. Treat Informational and Standards Track as different levels of maturity when you describe a dependency to an auditor or vendor.

The most important constraint is in RFC 8554, which warns that reusing a secret key state removes the security guarantees, so these schemes should be used only where state reuse is prevented. Any build or signing service that uses a stateful scheme needs a documented process that never signs twice with the same state, and that is an operational design question for your team to answer, not something the standards settle for you. The sources listed on this page do not establish requirements for commercial code signing beyond what these documents specify, so check your own regulatory and contractual obligations and ask your signing vendor how it manages state.

What to check in your code signing pipeline during migration

These steps take a release pipeline from an inventory of its current signing keys and tools to signatures that verifiers have confirmed they accept, so that a rollout does not break software updates or leave stateful keys open to reuse.

  1. Inventory signing keys, algorithms and certificate profiles

    The release team lists every key the pipeline uses to sign builds, the algorithm each key uses, and the certificate profile each key is issued under. Include keys held in hardware, in a signing service and on build agents, and note the owner and the systems that verify each signature. The step is done when the list covers every signing path and every verifier that depends on it, and the team can say which signatures will need a new algorithm.

  2. Check signing tooling for ML-DSA and hash-based support

    The team checks whether each signing tool, library and hardware module in the pipeline supports ML-DSA as defined in NIST FIPS 204, or the hash-based schemes LMS and XMSS as defined in NIST SP 800-208, and at which version. Ask each vendor to confirm support in writing for the exact version in use, because the sources do not establish compatibility for any version you run. The step is done when every tool has a recorded yes, no or pending answer with a version number attached.

  3. Decide how stateful hash-based key state is tracked

    If the pipeline uses LMS, HSS, XMSS or XMSS^MT, the team decides how the signing counter or state is stored, backed up and protected, so that the same one-time key is never used twice. RFC 8554 warns that reusing a secret key state removes the security guarantees, so the state store should be designed to prevent reuse, including after restores from backup and across parallel build agents. The step is done when a written procedure names where state lives, who can change it, and what happens if state is lost or duplicated.

  4. Ask vendors about certificate key usage and algorithm identifiers

    The team asks each certificate authority and signing vendor which algorithm identifiers they issue for ML-DSA and for HSS or XMSS, and how they set the certificate key usage extension. RFC 9881 requires that ML-DSA certificates set at least one of digitalSignature, nonRepudiation, keyCertSign or cRLSign and forbids the encipherment and agreement bits, so a profile that sets other bits will fail. The step is done when each vendor has provided the OIDs and key usage settings they support, and those answers are checked against the referenced RFCs.

  5. Confirm verifiers accept new signatures in test builds

    Before any production rollout, the team builds test releases signed with the new algorithm and tests them against every verifier on the list from the first step, including update clients, package managers and devices in the field. The team records which verifiers accept the signature, which reject it, and which fail because of key size or identifier handling, using the public key and signature sizes in RFC 9881 as a reference. The step is done when every verifier has a recorded pass result, and any failure has an owner and a fix before rollout proceeds.

How a signed release passes from publisher to verifier

The publisher builds the artifact, then signs it with a private key that never leaves the signing environment. The certificate binds the matching public key to the publisher's identity, and at the certificate step the verifier checks that key usage and algorithm identifiers are valid, such as a digitalSignature key usage and the ML-DSA identifiers defined in RFC 9881 for post-quantum keys. Distribution carries the artifact, signature and certificate together. Before running the code, the verifier checks the signature and walks the certificate chain back to a trust anchor it already holds.

Flow of a signed release from build through distribution to verification.

Terms and claims that get mixed up with code signing

Code signing is often confused with neighboring terms and with vendor claims that go further than the sources support. The cards below separate each confusion from its correction, so release teams, architects and tender reviewers can check the wording in front of them before they rely on it.

Code signing is not firmware signing

Code signing covers software that a publisher signs so users and systems can check origin and integrity. Firmware signing applies the same idea to firmware images that a device verifies, often long after it ships. The signing process and the key handling can be similar, but the verifier, the update path and the device lifetime differ. When a tender or vendor document uses one term for the other, ask which artifact is signed, who verifies it and how the device receives updates.

FIPS 204 text

Secure boot is a verification process

Secure boot is the process that checks signatures on boot code before it runs. It depends on signatures, but it is not the signature itself. A signed image can exist without secure boot being enabled, and secure boot can be configured without covering every boot stage. When someone asks whether a platform uses code signing, confirm whether they mean the signed artifacts, the verifying boot logic or the trust anchor the boot logic checks against.

A scheme name is not a standard number

ML-DSA names a signature scheme specified in NIST FIPS 204, while RFC 9881 defines how ML-DSA keys and signatures are identified inside X.509 certificates. Hash-based schemes follow the same split: NIST SP 800-208 specifies LMS and XMSS, and the RFCs define how they are encoded in CMS and X.509. A vendor that cites a scheme name without a standard reference, or a standard number without the scheme, has not shown which encoding it implements.

RFC 9881 text

A signature algorithm needs a parameter set

A tender question that asks only for a signature algorithm leaves the reader unable to verify the answer. ML-DSA appears in three parameter sets, and the sizes RFC 9881 gives for public keys and signatures differ between them, so storage, bandwidth and certificate size all depend on which set is used. Ask the vendor to name the exact parameter set, the standard that defines it and the sizes it produces, and whether those sizes match the artifact the vendor will actually sign.

Readiness claims need a named source

A vendor statement that a product is post-quantum ready or quantum safe is a claim, not a finding. The sources supporting this topic describe standards and encodings, not whether any product implements them correctly. Ask which algorithm, parameter set and standard the product uses for code signing, which version it applies to and whether an independent test or certification covers that version. If the vendor cannot name these, treat the claim as unsupported.

Questions people ask about code signing and post-quantum signatures

What does code signing stand for, and how is it different from firmware signing?

Code signing is the practice of attaching a cryptographic signature to software so that users and systems can verify who published it and that it has not been altered. Firmware signing is a specific case of the same idea, applied to the low-level software that runs on a device. The two use the same kind of mechanism, but firmware is usually verified by the device itself during boot, while application code is often verified by an operating system, package manager or installer. The difference matters for planning: a device may remain in service for many years, so the signature algorithms it can check become a long-term concern. Confirm with your vendor which signing process applies to each product you run, and which verification step is performed by which component.

Are ML-DSA and LMS the same as their older names?

No, they are different standards with different names, and you should not treat them as interchangeable with the older algorithms they replace. ML-DSA is the name NIST gives the module-lattice-based digital signature standard specified in FIPS 204, published as a final standard on 13 August 2024. LMS is the Leighton-Micali Signature system, a hash-based scheme described in NIST SP 800-208 and in RFC 8554. The NIST FIPS 204 page lists a planning note dated 31 July 2026 saying minor errata will be corrected in a future update, so check the current version you rely on. Confirm the exact identifiers and parameter sets your product uses against the specification and its vendor documentation.

Who standardized ML-DSA and LMS, and where are they defined?

NIST standardized both schemes. ML-DSA is defined in FIPS 204, and LMS, together with the XMSS hash-based scheme and their multi-tree variants HSS and XMSS^MT, is defined in NIST SP 800-208, published as final in October 2020. The IETF has defined how these algorithms are carried in certificates and messages. RFC 9881 covers ML-DSA in X.509 certificates, RFC 9708 covers HSS/LMS in the Cryptographic Message Syntax, and RFC 9802 covers HSS and XMSS in X.509. RFC 8554 is an Informational RFC from the IRTF that describes LMS itself. Read the NIST documents for the algorithm and the RFCs for how it appears in certificates and signed messages, since a product may implement one without the other.

Do my products use these signatures, and how can I check?

Whether a product uses ML-DSA or LMS depends on its version and configuration, so the reliable way to find out is to ask the vendor for its signing algorithms in writing and then verify them yourself. Look at the signed artifacts: certificates and signed messages carry algorithm identifiers that show which scheme was used. For ML-DSA certificates, RFC 9881 assigns object identifiers such as 2.16.840.1.101.3.4.3.17 for ML-DSA-44, and for LMS in CMS, RFC 9708 defines the identifier for HSS/LMS. Inspect a sample certificate or signature file with your standard tools and compare the identifier against the published list. Ask the vendor which parameter sets are supported and whether older algorithms remain accepted for verification.

What do ML-DSA and LMS change for our release process?

The main change is that signature artifacts become larger and that some schemes place operational demands on the signer. ML-DSA public keys and signatures are substantially larger than classical ones: RFC 9881 gives sizes of 1952 and 3309 bytes for the public key and signature of ML-DSA-65, for example. Certificate and package sizes, storage and transfer may need to be reviewed. LMS is stateful, and RFC 8554 warns that reusing a secret key state removes the security guarantees, so its signing keys must be managed so that state is never reused. Plan for this in your build infrastructure, key custody and backup procedures before changing any production signing key. Test the change in a staging pipeline first.

What should I ask a vendor about post-quantum code signing?

Ask the vendor a short set of specific, checkable questions. First, which signature algorithms does the product use for code and firmware signing, and which versions are they in? Second, does it use ML-DSA, LMS, HSS or XMSS, and does it follow FIPS 204, SP 800-208 and the related RFCs? Third, how is signing key state managed, and what protects against reuse of LMS state? Fourth, what is the timeline and process for moving existing verification and signing to new algorithms, and will older signatures still verify? Fifth, can the vendor provide the algorithm identifiers and certificate samples so you can verify them yourself? Ask for answers in writing, and record the version each answer applies to.

Will adopting these signatures cost us anything, and what drives the cost?

The costs fall into one-time work and recurring work. One-time costs include inventory of signing points, testing in staging, updating build and verification tooling, and key ceremonies for new signing keys. Recurring costs include key custody, monitoring state for stateful schemes, and maintaining the tooling as standards are updated. The main cost drivers are how many products and signing pipelines you run, whether devices in the field must verify the new algorithms, and how much your current tooling already supports them. The sources supplied here do not give pricing, so ask each vendor and your internal teams for a quote that lists these components separately and states which items are one-time and which recur.

How DeployOpen works on this

DeployOpen helps teams plan and test the move of code signing to post-quantum signature schemes. The work starts from an inventory of where your release pipelines sign code, moves through a fixed-scope build in your own environment, and ends with documented handover and optional ongoing support.

How we scope

  • We map which signing tools, build systems and release pipelines produce signatures for your software and firmware.
  • We check which signature algorithms and certificate profiles your current signing setup and verifiers can accept.
  • We agree the scope, deliverables and timeline in writing before any work begins, since most engagements are fixed-scope.

How we build

  • We configure a test signing pipeline in your environment, using the signature algorithms and certificate profiles your scope covers.
  • We test signing and verification end to end, including certificate key usage settings checked against RFC 9881 for ML-DSA keys.
  • We test stateful hash-based schemes such as LMS and XMSS only where the scope confirms that key state reuse is prevented, per RFC 8554.

How we hand over

  • We document the signing configuration, key and certificate profiles, and the test results your team needs for review.
  • We provide a rollback and verification procedure so your release team can check signed artifacts after the change.
  • We walk your engineers through the handover so the team can run the signing pipeline without DeployOpen on hand.

How we support

  • Ongoing support is available as a retainer for upgrades, updated tooling and changes to signing configuration over time.
  • Retesting can be scheduled after tool or library updates, since the sources we follow note that some errata will be corrected in a future NIST FIPS 204 update.
  • Ask any quote to confirm the verifiers, tooling and client devices your signed artifacts must work with before the scope is final.

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.