XMSS and XMSSMT signature sizes by parameter set

XMSS signatures under the REQUIRED SHA2 256-bit parameter sets are 2500, 2692 and 2820 bytes, and XMSSMT signatures grow with total height and layer count. This page gives the figures from RFC 8391 so engineers can size certificates, firmware and tokens.

On this page

XMSS signature size in bytes for the required parameter sets

If you are sizing a signature field for XMSS, start with the three parameter sets that RFC 8391 marks as REQUIRED: XMSS-SHA2_10_256, XMSS-SHA2_16_256 and XMSS-SHA2_20_256. Per RFC 8391, their signatures are 2500, 2692 and 2820 bytes respectively. The RFC gives the signature length as (4 + n + (len + h) * n) bytes, made up of a 4-byte index, an n-byte value r, the WOTS+ signature and the authentication path. For the 256-bit sets, n is 32 and len is 67, and the tree height h is 10, 16 or 20. Those are the figures to put in a fixed-length field. The 512-bit SHA2 sets and the SHAKE sets are OPTIONAL in the RFC, so a product that claims only the required sets can size its buffers against these three values alone. Confirm against the RFC text before you commit a field width, since the formula is the source of every number here.

The same formula explains the spread between sets. Each step of 6 levels in height, from 10 to 16, adds 192 bytes, and each step of 4 levels, from 16 to 20, adds 128 bytes, so the signature grows with height but not linearly with capacity. XMSS^MT, the multi-tree variant, uses a different formula, ceil(h / 8) + n + (h + d * len) * n bytes, and the sets named in RFC 8391 section 5.4 give signatures from 4963 bytes for XMSSMT-SHA2_20/2_256 up to 27688 bytes for XMSSMT-SHA2_60/12_256. Do not mix the two families in one field. A field sized for XMSS will overflow on XMSS^MT, and a field sized for the largest XMSS^MT set wastes space on the required XMSS sets.

This table is for firmware engineers who size update images and signature blocks, certificate engineers who check the impact on chain size, and token engineers who fit signatures into hardware with fixed memory. Each group should record which set it uses, read the byte count from the RFC for that set, and check it against any implementation they depend on. Ask the implementation vendor which parameter set and version it supports, because the sets an implementation supports are not necessarily the ones a standard requires.

XMSS and XMSSMT public key and signature sizes in bytes by parameter set

This table lists the XMSS and XMSSMT parameter sets named in RFC 8391 with their total height h, layer count d, n and len, and the signature sizes that result from the RFC 8391 formulas. Read each row by its parameter set name, then compare the signature column to see how tree height and layer count change the size, and check the public key column for the fixed size of the root and seed values. Signatures grow with height, so larger trees trade more bytes per signature for a larger number of signable messages. Confirm the exact encoding and optional status for the version you deploy against RFC 8391 itself.

Parameter setTotal height h and layer count dn and len (bytes and chains)Signature size (bytes)
XMSS-SHA2_10_256h = 10, d not applicablen = 32, len = 672500
XMSS-SHA2_16_256h = 16, d not applicablen = 32, len = 672692
XMSS-SHA2_20_256h = 20, d not applicablen = 32, len = 672820
XMSS-SHA2_10_512h = 10, d not applicablen = 64, len = 1319092
XMSS-SHA2_16_512h = 16, d not applicablen = 64, len = 1319476
XMSS-SHA2_20_512h = 20, d not applicablen = 64, len = 1319732
XMSSMT-SHA2_20/2_256h = 20, d = 2n = 32, len = 674963
XMSSMT-SHA2_60/12_256h = 60, d = 12n = 32, len = 6727688

How to read the XMSS size columns and the RFC 8391 formulas

The size columns in the XMSS and XMSSMT tables are computed from the formulas in RFC 8391, so an engineer can check any row by hand. For a single-tree XMSS signature, the length is (4 + n + (len + h) * n) bytes. The 4-byte term is the index, the n-byte term is the value r, the (len + h) * n term is the WOTS+ signature plus the authentication path, and h is the tree height. The variables are defined in RFC 8391 section 5.3: n is the hash output length in bytes (32 for the 256-bit sets, 64 for the 512-bit sets), len is the number of WOTS+ chains (67 for the 256-bit sets, 131 for the 512-bit sets), and h is the tree height (10, 16 or 20 in the required sets). Each row in the table is the result of substituting these values into the formula.

For multi-tree XMSSMT parameter sets, RFC 8391 section 5.4 gives the signature length as ceil(h / 8) + n + (h + d * len) * n bytes. Here h is the total height across all layers and d is the number of layers, so the table's total-height and layer-count labels in the set names (for example, XMSSMT-SHA2_20/2_256) feed directly into the formula. The ceil(h / 8) term is the index field, which grows with total height. Because the layer count d multiplies the WOTS+ portion, an engineer who changes d changes the signature size even when total height stays the same. Confirm the exact field layout in RFC 8391 before relying on a derived size in firmware or a protocol message.

The security category for each set is not stated in the sources listed on this page, so do not infer it from the column headings or the set names. Check the category for the exact parameter set in RFC 8391, and confirm the set's required or optional status there as well. Recompute any figure you plan to use in a buffer or packet budget with the formula, and verify it against the RFC's worked values and your implementation's output before treating it as final.

XMSS and XMSSMT parameter sets with their sizes and where each is named

RFC 8391 marks three single-tree XMSS sets with a 256-bit hash as REQUIRED: XMSS-SHA2_10_256, XMSS-SHA2_16_256 and XMSS-SHA2_20_256. All three use the SHA2 hash family, n of 32 bytes, w of 16, and len of 67, and they differ only in tree height h, which is 10, 16 and 20. Using the RFC 8391 signature formula of (4 + n + (len + h) * n) bytes, these sets produce signatures of 2500, 2692 and 2820 bytes.

  • Signature size for XMSS-SHA2_10_256: 2500 bytes, computed from the RFC 8391 formula.
  • Signature size for XMSS-SHA2_16_256: 2692 bytes, computed from the RFC 8391 formula.
  • Signature size for XMSS-SHA2_20_256: 2820 bytes, computed from the RFC 8391 formula.
  • Growth with height: each extra 6 levels from 10 to 16 adds 192 bytes, and each extra 4 levels from 16 to 20 adds 128 bytes.
  • Public key layout: an algorithm OID, the root node of n bytes and SEED of n bytes, as RFC 8391 defines it.

Confirm the figures against RFC 8391 section 5.3 before you put them in a design document, and check the parameter set name in your library, because naming can differ between implementations.

Where a 27688-byte XMSSMT signature stops fitting

The XMSSMT-SHA2_60/12_256 signature is 27688 bytes, far larger than the 2500 to 2820 byte XMSS signatures in the RFC 8391 256-bit sets. Each card below marks a place where a signature that size may not fit, and what to confirm before you commit to a parameter set.

Certificate and signature fields

Certificate and firmware signature fields are fixed-length or length-limited in many formats, so a signature must fit the field before it can be used. The RFC 8391 formula gives an XMSSMT signature of ceil(h / 8) + n + (h + d * len) * n bytes, and for XMSSMT-SHA2_60/12_256 that works out to 27688 bytes. Confirm the field size and length prefix in each format you use, and check that the field accepts a signature this large.

RFC 8391 text

Token and message size limits

Tokens, headers and message envelopes often carry a maximum size, and a signature of this length can push the whole message past it. Compare the 27688-byte signature with the 4963-byte XMSSMT-SHA2_20/2_256 signature, which the same formula gives for a much smaller total height. Check the size cap on each token or message format before you choose a parameter set with a large layer count.

XMSSMT-SHA2_20/2_256 signature
4963 bytes

Constrained devices

Devices with limited flash, RAM or input buffers may not hold a 27688-byte signature during signing or verification. Signature length adds to the working memory that a device needs, so the size should be checked against the device's memory budget, not only against the signature field. Ask the vendor or implementer which XMSSMT parameter sets their device firmware has been tested with, if any.

XMSS-SHA2_10_256 signature
2500 bytes

Bandwidth

Every signature sent over a network adds to the bytes on the wire, and a 27688-byte signature is roughly eleven times the size of the 2500-byte XMSS-SHA2_10_256 signature. Where signatures are sent frequently, such as in update streams or on low-bandwidth links, the extra bytes accumulate quickly. Estimate the number of signatures per session and the link capacity, then compare the total against your available budget.

Handshake packet limits

The sources listed on this page do not say how XMSS or XMSSMT signatures affect handshake packet limits, including fragmentation and middlebox behavior. Before using these signatures in a handshake, confirm the packet size behavior of your protocol stack and the devices on the path, and test with the actual parameter set you plan to deploy.

Checking the XMSS parameter set and buffer limits before you deploy

This sequence confirms which XMSS or XMSSMT parameter set you intend to use, works out the signature length it should produce, and checks that your own stack can store and handle that length. It ends with a test against a real key and a set of written questions for your vendor, so the sizes you plan around are the ones your implementation actually produces.

  1. Identify the parameter set you intend to use

    Start by naming the exact XMSS or XMSSMT parameter set your design calls for, including the hash function and output size in its name, such as XMSS-SHA2_10_256 or XMSSMT-SHA2_20/2_256. Then look that name up in RFC 8391 and confirm whether the set is REQUIRED or OPTIONAL. The RFC marks the 256-bit SHA2 XMSS sets with tree heights 10, 16 and 20 as REQUIRED, and marks the 512-bit SHA2 sets and the SHAKE sets as OPTIONAL. You are done when the set name, its hash function, and its status are written in your design record, and when you have noted whether any support you depend on implements only the REQUIRED sets.

  2. Compute the expected signature length with the formula

    Using the parameter values RFC 8391 lists for your set (n, len and tree height h for XMSS, or total height h and layer count d for XMSS^MT), apply the RFC's signature length formula to get the expected byte count. For XMSS the formula is 4 + n + (len + h) * n bytes. For XMSS^MT it is ceil(h / 8) + n + (h + d * len) * n bytes. The RFC's own worked examples give 2500, 2692 and 2820 bytes for the 256-bit SHA2 XMSS sets at heights 10, 16 and 20, and 4963 bytes for XMSSMT-SHA2_20/2_256. You are done when you have a single expected length per set, recorded with the formula inputs so a reviewer can recompute it.

  3. Check the buffer and message limits in your stack

    Review every place a signature passes through your system: the signing and verifying libraries, serialization code, message framing, storage columns, and any fixed-size fields in protocols or hardware. Compare each limit with the expected length from the previous step, and include the public key size in the same review, since it is stored and exchanged alongside signatures. Record which component sets each limit and where its documentation states it. You are done when every component on the path has a limit at or above the expected length, or when you have a written list of components that need a change or a higher limit before deployment.

  4. Confirm the key and signature length in a test

    Generate a key with the parameter set you chose, sign a test message with it, and measure the public key and signature lengths your implementation produces. Compare these measured values with the expected lengths from the formula. Any mismatch should be investigated before continuing, because it may indicate a different encoding, a different set name, or a library that writes extra fields. Run the same check at each tree height your design might use, since the signature grows with height. You are done when measured lengths match the computed lengths, or when the difference is explained and recorded.

  5. Test verification and storage on the full path

    Run a signature produced in the test above through every component that will verify or store it, not only the signing library. This includes the verifier your application calls, any proxy or gateway that inspects or forwards the message, and the database or file store where signatures are kept. Confirm that each component accepts the full length without truncation, errors or padding changes. You are done when a signature round-trips through the full path and verifies correctly at each step, and when the results are kept with the test date and component versions.

  6. Ask the vendor which XMSS set and encoding it implements

    Send the vendor a written question asking which XMSS or XMSSMT parameter sets their product implements, which encoding of the public key and signature they use, and whether that encoding follows RFC 8391. Ask for the exact product version the answer applies to, because support can differ between releases and editions. Compare the answer with the set name and length recorded in your earlier steps. You are done when the vendor has answered in writing with the set names, encoding and version, and when any gap between their answer and your design is either resolved or added to your risk record.

What the XMSS size figures do not tell you

The XMSS and XMSS^MT signature sizes on this page are computed from the formulas in RFC 8391, not measured from a running implementation. The signature length for XMSS is (4 + n + (len + h) * n) bytes, and the length for XMSS^MT is ceil(h / 8) + n + (h + d * len) * n bytes. Those formulas describe the structure the RFC defines: the index, the randomizer value, the WOTS+ signature and the authentication path. They do not describe how any particular library packs, pads or encodes that structure on the wire, so a figure taken from this page is a size the specification implies, not a size you should expect to see in a capture.

The sources listed on this page do not give measured timings, cycle counts or memory use for XMSS or XMSS^MT, and they do not say how long key generation, signing or verification take on any platform. Signature size is only one input to a deployment decision. Before you size firmware, tokens or stateful signing infrastructure around these numbers, obtain timing and memory measurements from the implementation you intend to run, on the hardware you intend to run it on.

Confirm compatibility between an implementation and an RFC 8391 parameter set for the exact version you run. Parameter set names, encodings and optional sets can differ between releases and between libraries, and the RFC marks the 512-bit SHA2 sets and the SHAKE sets as OPTIONAL, so a given implementation may support only some of them. Check the library's own documentation and test vectors for the parameter set you select, and verify that a signature it produces has the length you planned for.

Common questions about XMSS and XMSSMT signature sizes

How big is an XMSS signature in bytes?

An XMSS signature is (4 + n + (len + h) * n) bytes long, according to RFC 8391. The 4-byte index, the n-byte value r, the WOTS+ signature and the authentication path together make up that length. Applying the formula to the RFC 8391 parameter sets gives 2500 bytes for XMSS-SHA2_10_256, 2692 bytes for XMSS-SHA2_16_256 and 2820 bytes for XMSS-SHA2_20_256. The 512-bit sets are much larger: 9092, 9476 and 9732 bytes for heights 10, 16 and 20. Confirm the figure for the exact parameter set you deploy, since the signature length depends on that choice.

Which XMSS parameter sets are required?

RFC 8391 marks three parameter sets as REQUIRED: XMSS-SHA2_10_256, XMSS-SHA2_16_256 and XMSS-SHA2_20_256. These use 256-bit hashes with tree heights of 10, 16 and 20. The 512-bit SHA2 sets and the SHAKE sets are OPTIONAL in the same RFC. If your product or contract names a specific set, check the RFC and the implementation you use, because support for optional sets varies between libraries. Confirm which sets your implementation provides before you plan sizes around them.

How does tree height change XMSS signature size?

Taller trees produce longer signatures, because the authentication path grows with the height. Using the RFC 8391 formula, each extra 6 levels from height 10 to 16 adds 192 bytes to a 256-bit XMSS signature. Each extra 4 levels from height 16 to 20 adds 128 bytes. Taller trees also allow more signatures under one key, so the choice of height is a trade between signature size and how many signatures a key can produce. Check the signing capacity of the parameter set you pick against your key lifecycle before you commit to it.

How are XMSSMT signatures sized?

An XMSS^MT signature is ceil(h / 8) + n + (h + d * len) * n bytes long, according to RFC 8391. Here h is the total tree height and d is the number of layers. RFC 8391 names sets by total height and layer count, such as XMSSMT-SHA2_20/2_256 and XMSSMT-SHA2_60/12_256. Applying the formula gives 4963 bytes for XMSSMT-SHA2_20/2_256 and 27688 bytes for XMSSMT-SHA2_60/12_256. The layer count drives much of the difference, so compare sets with the same total height before you judge the size trade-off.

Do XMSS signatures fit a certificate or packet size limit?

Whether a signature fits depends on the limit you are working against, and the sizes here are only one input. The RFC 8391 figures show that the 256-bit XMSS signatures range from 2500 to 2820 bytes, and the XMSSMT figures range from 4963 to 27688 bytes. Compare these against the field size, buffer or packet limit in your own protocol or device. Remember that a signature is only part of a message, so add the other fields and any chain or handshake data before you decide. Confirm the final size with a test build of your implementation.

What is in the XMSS public key?

RFC 8391 gives the XMSS public key as three parts: an algorithm OID, the root node of n bytes and SEED of n bytes. The public key is much smaller than the signature, so the signature size is the figure that usually drives buffer and bandwidth planning. Check the exact public key length for your parameter set in the RFC and in your implementation's documentation, because the encoding details matter when you store or transmit keys.

Can I check these XMSS sizes myself?

Yes. Apply the formulas in RFC 8391 to the parameter set you plan to use, then confirm the result against a build of the implementation you run. Read the signature and key lengths from the library's output rather than trusting a table, since encodings and versions can differ. If your team lacks the time or the cryptographic background to validate the implementation, DeployOpen can help plan and run that check as part of a fixed-scope engagement, with scope and deliverables agreed in writing first.

Where an XMSS signature field sits in a signed object

The diagram starts at the signer, who produces an XMSS signature made of a 4-byte index, an n-byte value r, the WOTS+ signature and the authentication path. Those fields are carried together inside a signed firmware image or token, and a verifier reads them back out to check the signature against the public key. Check that the byte lengths you budget for match the parameter set you run, since the WOTS+ signature and authentication path grow with tree height and hash length. The signature size formula is given in RFC 8391, and the sizes for each parameter set are in the table on this page.

The four signature fields carried inside a signed firmware image or token.

How DeployOpen helps plan XMSS and post-quantum signature changes

DeployOpen approaches XMSS and XMSSMT signature sizes by first confirming which parameter set each system uses, then measuring what that set means for certificates, firmware and tokens in the client's own environment. The work is delivered as a written, fixed-scope plan that engineering and compliance teams can review before any change is made.

How we scope

  • Confirm which XMSS or XMSSMT parameter set each system, device or token uses, including tree height and hash function.
  • Record the signature and public key lengths for the chosen set, using the RFC 8391 formulas and the sizes stated in the RFC.
  • Agree the scope, deliverables and timeline in writing before work starts, with ongoing support available as a retainer.

How we build

  • Map where signature length affects fields, buffers, packet limits and storage in the client's own applications and infrastructure.
  • Test the planned parameter set against the client's real message sizes, middleboxes and size limits in a controlled environment.
  • Prepare configuration changes and test cases for the signature sizes that the chosen XMSS or XMSSMT set produces.

How we hand over

  • Document the parameter set decisions, computed signature sizes and the reasoning behind each choice for later review.
  • Provide a written plan listing the affected systems, required changes and the sizes each system must accommodate.
  • Hand over configuration files, test results and runbooks so the client's own teams can operate the setup after the engagement.

How we support

  • Confirm compatibility of the chosen XMSS or XMSSMT version with each client product before relying on it in production.
  • Support upgrades and changes to parameter sets as the client's requirements and vendor releases change over time.
  • Offer retainer-based testing to recheck signature size assumptions after each change to certificates, firmware or tokens.

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.