LMS and HSS signature sizes by parameter choice

LMS and HSS signatures grow with tree height and with the Winternitz setting, and the sizes below come directly from RFC 8554 for SHA256 with m=32 and n=32.

On this page

LMS and HSS signature sizes in bytes at a glance

If you need to size firmware signatures or certificate fields that carry LMS or HSS material, start with two figures from RFC 8554. A single-level LMS public key is 56 bytes, and the HSS public key for one level is 60 bytes. For the LMS signature, the range is 1292 to 1932 bytes at the LMOTS_SHA256_N32_W8 setting across tree heights 5 to 25. These figures come from the layouts and length formulas in RFC 8554, which defines the LMS and HSS hash-based signature schemes.

This table is for firmware engineers, certificate and PKI planners, and anyone writing field-size limits for a parser or a hardware signature buffer. It gives you the byte count to reserve before you choose a tree height or Winternitz setting. The figures apply only to the SHA256 parameter sets with m=32 and n=32. If your deployment uses a different hash, a different digest length, or a different tree type, the numbers above do not carry over, and you should recompute them from the RFC 8554 formulas or confirm them against the parameter definitions you actually run.

Before you fix a field size, check the parameter set your signing tool emits and confirm that it matches the SHA256 m=32 and n=32 entries in RFC 8554. Then compare the signature length your tool produces with the value you compute from the formula. If they differ, stop and find out why before you reserve space. Your signing library's documentation is the place to confirm which parameter identifiers it writes into the key and signature.

LMS and HSS public key and signature sizes in bytes by tree type

This table compares the LMS public key, the LMS signature with LMOTS_SHA256_N32_W8, and the HSS signature for one level (L=1) at height 10, one row per tree type from H5 to H25. Read each row across to see how the signature grows with tree height, and note that the public key stays fixed at 56 bytes for every tree type. The main takeaway for the reader is that tree height adds a predictable 160 bytes per step of 5 levels, and that the HSS wrapper for a single level adds only 4 bytes on top of the LMS signature.

Tree typeLMS public key (bytes)LMS signature with LMOTS_SHA256_N32_W8 (bytes)HSS signature, L=1, H10 (bytes)
LMS_SHA256_M32_H5561292Not applicable at H10
LMS_SHA256_M32_H105614521456
LMS_SHA256_M32_H15561612Not applicable at H10
LMS_SHA256_M32_H20561772Not applicable at H10
LMS_SHA256_M32_H25561932Not applicable at H10

How to read the LMS and HSS size columns

The LMS and HSS size columns on this page report byte lengths for three distinct objects, and each column should be read against the object it names. The LMS public key is 56 bytes when m=32, computed from the layout in section 5.3 of RFC 8554 as u32str(type) || u32str(otstype) || I || T[1], which Algorithm 6 requires to be exactly 24+m bytes. The LMS signature column reports the total length given by section 5.4 of RFC 8554, which Algorithm 6a requires to be 12+n*(p+1)+m*h bytes. The HSS public key adds the level count L, so it is 60 bytes, and the HSS signature column, taken from section 6.2, adds the u32str(Nspk) field and the signed public keys for each lower level. The LM-OTS parameter values in Table 1 and the LMS tree types in Table 2 supply p, n, m and h. Where the columns show n=32 and m=32, those values are set by the SHA256 hash that the tree and OTS types specify. Confirm the byte counts against the RFC before relying on them in a buffer or certificate budget.

Keep the three objects separate when you size a deployment. The public key is what a verifier stores once, and the signature is what travels with each signed message or firmware image. In an HSS signature, the Nspk field and the signed public keys from the upper levels are added to the LMS signature at the bottom level, so the HSS figure is always larger than the LMS figure for the same tree type. The size gap between parameter choices is driven mainly by the LM-OTS type (the w parameter that sets p) and, for the tree, by height h, since each extra 5 levels of height adds 160 bytes when m=32. For example, with LMOTS_SHA256_N32_W8 and LMS_SHA256_M32_H10, the RFC layout gives 1452 bytes for the LMS signature and 1456 bytes for the HSS signature with L=1 (illustrative figures derived from the RFC formulas). Switching to LMOTS_SHA256_N32_W1 at the same height raises the LMS signature to 8844 bytes.

Where LMS and HSS signature sizes affect your systems

LMS and HSS signatures are large compared with classical signatures, and their size depends on the Winternitz parameter, the tree height and the number of levels. The cards below show the places where those byte counts change a design decision, and what to check before you commit to a parameter set.

Firmware image signing overhead

A signed firmware image carries its signature inside the image, so the signature size adds directly to the image size. With LMS_SHA256_M32_H10 and LMOTS_SHA256_N32_W8, the LMS signature is 1452 bytes, and an HSS signature at L=1 is 1456 bytes. Check the total image size against the flash partition, including the bootloader, the signature field and any rollback slot, because the signature is added on top of the firmware payload.

RFC 8554 layouts

Signature field in update packages

Update packages often have a fixed header or a size limit on the signature field, and an LMS or HSS signature must fit inside that field in full. The signature length depends on the Winternitz choice as well as the tree height, so the same tree height can produce very different field sizes. Confirm the maximum signature length your package format accepts before you select a parameter set, and test one signed package at the largest parameter set you plan to use.

Storage on constrained devices

On a constrained device, the signature and the public key both have to be stored, and the public key is small compared with the signature. The LMS public key is 56 bytes at m=32, and an HSS public key adds 4 bytes for the level count. Storage needs to cover the signatures for any messages verified in the device lifetime, so the per-signature size is the main figure to size against the available memory. Confirm the RAM available during verification, since the verifier must hold the signature while it runs.

Extra bytes added at each HSS level

An HSS signature at L levels includes a signed public key for each level above the bottom, so each added level adds the length of one LMS signature and public key to the total. The RFC 8554 layout fixes the count at a four-byte level prefix plus the nested keys and signatures. Compare the total HSS size at your chosen level count with the size of a single LMS tree of the same total capacity, because the number of levels changes the signature size as well as the number of keys the scheme can sign.

RFC 8554 HSS layout

Tree height and authentication path length

Each increase in tree height adds m bytes per level to the authentication path, so the signature grows in fixed steps as the height rises. At m=32, moving from height 10 to height 15 adds 160 bytes, and the step is the same at every height. Choose the height from the number of signatures the key must produce, and check that the larger signature still fits the limits set in the previous cards.

Winternitz parameter and OTS signature size

The Winternitz parameter sets the one-time signature inside each LMS signature, and the difference between parameter sets is large. At height 10, the W1 type gives an LMS signature of 8844 bytes, against 1452 bytes for the W8 type. Confirm which Winternitz type your signing tool and verifier both support, because a parameter set that is smaller on paper is not useful if one side cannot process it.

LMS and HSS figures for each LM-OTS and tree option

The W1 type is the largest LM-OTS option in RFC 8554 Table 1. It uses the Winternitz parameter w=1, which gives p=265 for SHA256 with n=32, and its one-time signature alone is 8516 bytes. That size is set by the LM-OTS type and does not change with tree height, so it is the dominant term in any LMS signature built on this type.

  • LM-OTS signature length: 8516 bytes for LMOTS_SHA256_N32_W1, from RFC 8554 Table 1 and the formula in section 4.1.
  • LMS signature at H10: 8844 bytes for LMOTS_SHA256_N32_W1 with LMS_SHA256_M32_H10, computed from the section 5.4 layout.
  • Height effect: the authentication path still adds 160 bytes for each 5 levels of height, so the W1 total rises from the H10 figure as the tree gets taller.
  • Comparison: the same H10 tree with W8 gives 1452 bytes, so W1 is roughly six times that size at this height.

Before choosing W1, confirm that the signature size fits your protocol and storage limits, since the per-signature cost is large. Check RFC 8554 Table 1 for the exact parameter definitions.

LMS and HSS signature sizes compared at the same tree height

This table holds the tree height at H10 and compares the Winternitz setting of the one-time signature in each row. Read the byte column against the W8 row, which is the smallest of the three figures and the baseline for the difference. The main takeaway is that at the same tree height, the choice of Winternitz setting moves the LMS signature size by thousands of bytes, while stepping from a single-level LMS signature to an HSS signature with one level adds only 4 bytes.

SignatureWinternitz settingSignature size at H10 (bytes)Difference from W8 LMS (bytes)
LMS signatureW1 (LMOTS_SHA256_N32_W1)88447392
LMS signatureW8 (LMOTS_SHA256_N32_W8)14520
HSS signature, L=1W8 (LMOTS_SHA256_N32_W8)14564

How to use LMS and HSS sizes in your planning

This sequence turns the LMS and HSS size figures on this page into buffer, image and protocol budgets for your deployment. Each step ends with a check you can record, so the sizes you plan with match the parameter set your product actually uses.

  1. Confirm the LM-OTS and tree types in use

    Start by reading your configuration or key generation output to find the LM-OTS type (one of LMOTS_SHA256_N32_W1, W2, W4 or W8) and the LMS tree type (LMS_SHA256_M32_H5, H10, H15, H20 or H25). If you use HSS, also record the number of levels L. Your engineering or platform team owns this step. It is done when you can write down each type as a single identifier, with the number of levels if HSS is in use.

  2. Look up the public key and signature sizes

    Using the tables on this page, find the signature length for your LM-OTS type and tree height. The LMS public key is 56 bytes when m=32, and an HSS public key adds 4 bytes for the level count, so it is 60 bytes. Note that the signature length grows with tree height and that the LM-OTS type has the larger effect at the lower-width settings. The step is done when you have one public key size and one signature size recorded for each key you will deploy.

  3. Add the sizes to buffers and image budgets

    Add the public key and signature sizes to every buffer, field length and container image budget that will carry them. Include firmware images and update packages, where the signature and public keys sit alongside the image. Check each allocation against the full worst case for the configuration you chose, not an average. The step is done when each budget shows the sum of its components and names the sizes it used.

  4. Check protocol and container length limits

    For each protocol message, certificate field, token format or container format that will carry the signature, confirm that it accepts a signature of the length you recorded. Look at fixed field widths, maximum message sizes and any parser limits in your libraries and hardware. Your development and integration teams own this check. It is done when you have a written list of each limit you checked and the value that applies to it.

  5. Ask the vendor for the parameter set

    Send your product vendor a written question asking which LM-OTS type, tree type and number of levels their product uses. Ask whether the public key and signature sizes match the layouts in RFC 8554, and if not, how they differ. The vendor's documentation may answer this, but confirm it in writing for your version. The step is done when you have a written reply that names the parameter set and states whether the sizes match RFC 8554.

  6. Compare vendor answers with your plan

    Compare the vendor's stated parameter set and sizes with the figures you recorded in the earlier steps. Where they differ, rerun the budget and limit checks using the vendor's values. Escalate any mismatch to the vendor before you commit to a design. The step is done when the sizes in your plan match the vendor's written answer, and each difference is recorded with an owner and a resolution.

What these LMS and HSS figures do not tell you

The sizes on this page are formula results and byte layouts taken from RFC 8554. They show how long a signature or public key must be under that specification, and they do not measure any implementation. A product may add bytes through its own encoding, framing, length prefixes, metadata or container format, so the size you observe on the wire or in a file can exceed the figure here. Before you size a certificate field, firmware image or token buffer, capture the output of the exact library and version you plan to run and compare it against the RFC value. Confirm compatibility with the specific LMS and HSS parameter sets your product supports, because the sources listed on this page do not say which implementations use which encodings.

LMS and HSS are stateful hash-based schemes. Each one-time signature key must be used at most once, so the operator must track which leaf indices have been consumed and prevent reuse, including after backups, restores, virtual machine snapshots or failover. This is an operational responsibility, not a property of the signature size, and it belongs in your key management design and your signing service controls. Plan for who holds the signing state, how it is persisted and how it is protected, and document those procedures before deployment.

The sources listed on this page do not give timing, throughput or memory figures for LMS or HSS key generation, signing or verification, and they do not state the amount of state a signer must store. Do not infer speed or resource use from the byte counts here. Measure key generation, signing and verification time, peak memory and persistent state size on the hardware, runtime and tree parameters you intend to deploy, and use those measurements in your capacity and device planning. The RFC 8554 text at RFC 8554 is the place to confirm the formulas and layouts behind the figures on this page.

Common questions about LMS and HSS signature size

How big is an LMS public key in bytes?

An LMS public key is 56 bytes when the hash is SHA256 with m=32. RFC 8554 section 5.3 gives the public key as u32str(type) || u32str(otstype) || I || T[1], and Algorithm 6 requires its length to be exactly 24+m bytes. With m=32 that works out to 56 bytes. The length does not change with tree height, so an LMS public key at height 5 and one at height 25 are both 56 bytes. Confirm the value against the RFC if you are writing a parser, since the length check is part of the verification procedure.

How big is an LMS signature at each tree height?

With LMOTS_SHA256_N32_W8 and SHA256 at m=32, an LMS signature is 1292 bytes at height 5, 1452 bytes at height 10, 1612 bytes at height 15, 1772 bytes at height 20 and 1932 bytes at height 25. These figures come from applying the length formula in RFC 8554 section 5.4 and Algorithm 6a, which gives 12+n*(p+1)+m*h bytes. The tree height only affects the authentication path, which adds m*h bytes. Each extra 5 levels of height adds 160 bytes. Other LM-OTS types change the base size, so recompute the figures if you use a different Winternitz parameter.

Why does W1 give a much larger signature than W8?

The Winternitz parameter sets how many chains the one-time signature uses, and the LM-OTS signature length depends on it directly. RFC 8554 Table 1 lists p=265 for W1 and p=34 for W8, and the signature is 4+n*(p+1) bytes. That gives 8516 bytes for W1 and 1124 bytes for W8 at n=32. A smaller Winternitz value means more chains and a longer signature, but each signing step does less hashing work. At height 10, the W1 LMS signature is 8844 bytes, compared with 1452 bytes at W8. Choose the parameter by weighing signature size against the time spent signing and verifying on your hardware.

How many bytes does HSS add over LMS at one level?

At one level, HSS adds 4 bytes to the LMS signature. RFC 8554 section 6.2 gives the HSS signature as u32str(Nspk) followed by the signed public keys and the final signature. For L=1, the layout is u32str(0) || sig[0], which is the LMS signature with a 4-byte count in front. With LMOTS_SHA256_N32_W8 and LMS_SHA256_M32_H10, the 1452-byte LMS signature becomes a 1456-byte HSS signature. The HSS public key adds the level count, so it is 60 bytes against 56 bytes for LMS. Multi-level HSS adds more per level, so check the section 6.2 layout for your level count.

Which RFC defines the LMS and HSS signature sizes?

RFC 8554 defines the LMS and HSS signature sizes. Its section 4.1 gives the LM-OTS signature length, Table 1 lists the LM-OTS types, and Table 2 lists the LMS tree types for heights 5, 10, 15, 20 and 25. Section 5.3 covers the LMS public key, section 5.4 and Algorithm 6a cover the LMS signature, and section 6.1 and 6.2 cover the HSS public key and signature. Work from the RFC text and not from this page when you implement the layouts. Check the current revision status of RFC 8554 before you cite it in a procurement document.

Can my team calculate these sizes without outside help?

Yes, a team with access to RFC 8554 can calculate the sizes itself. The work is applying the length formulas: 4+n*(p+1) for the LM-OTS signature, 12+n*(p+1)+m*h for the LMS signature, and 24+m for the LMS public key, then adding the HSS fields for each level. Engineers should confirm each result against the RFC tables and test their parser against the lengths the verification procedure requires. Where a team wants an independent review of its implementation, DeployOpen can test an LMS or HSS deployment and deliver a findings report, under a fixed scope agreed in writing before work starts.

What should I confirm before choosing an LMS or HSS parameter set?

Confirm the hash, the Winternitz parameter, the tree height and the number of levels together, because each one changes the signature size. Check the signature size limit of every system that will carry the signature, such as firmware packaging, token formats or certificate fields, since a larger signature may not fit a fixed budget. Confirm how many signatures each key can produce, since a tree of height h supports a limited number of signatures. Ask the implementation provider which RFC 8554 version and table values they follow. Record the chosen parameters in the device or system documentation so that later updates use the same layout.

Where the LMS and HSS signature bytes sit?

An HSS signature with L=1 starts with the four-byte Nspk field, which is 0 for a single level. Next comes the signed public key, which holds the LMS public key of the lower tree and its LM-OTS signature. The LM-OTS signature is the largest block for the W8 type, and the authentication path at the end holds m bytes for each tree level. With LMOTS_SHA256_N32_W8 and LMS_SHA256_M32_H10, the RFC 8554 layout computes to 1456 bytes in total, which is the 1452-byte LMS signature plus 4 bytes. Check the Nspk value and the LM-OTS type first when you compare sizes.

Byte layout of an HSS signature with L=1, per RFC 8554.

How DeployOpen works on this

DeployOpen approaches LMS and HSS signature sizes by parameter choice as a scoped engineering question. We start from the tree height, Winternitz parameter and number of levels your system needs, then document the resulting public key, signature and firmware size for each option so your team can check the numbers against its own limits before committing.

How we scope

  • We confirm which signed objects your system produces, such as firmware images, updates or tokens, and which of them need LMS or HSS.
  • We record the size limits that matter to you, including storage, bandwidth and any fixed field sizes in existing formats.
  • Engagements are fixed-scope, and the written scope states which LMS and HSS parameter sets are evaluated and which are excluded.

How we build

  • We build a size model from the RFC 8554 layouts for each LM-OTS type, tree type and level count in the scope.
  • We implement signing and verification in your environment, using the parameter choices agreed during scoping.
  • We test the signature length each configuration produces against the limits recorded during scoping, and flag any that exceed them.

How we hand over

  • We deliver a parameter comparison table with public key, signature and per-level sizes for every option evaluated.
  • We document the trade-offs between tree height, Winternitz parameter and number of levels so your team can revisit the choice later.
  • We hand over the build, tests and documentation, so your team can reproduce the size results in its own environment.

How we support

  • Ongoing support is available as a retainer, covering questions about parameter changes and updates to the size tables.
  • We can rerun the size model when a new parameter set is added or when your size limits change.
  • Confirm the current RFC 8554 text and any later LMS or HSS guidance for your versions with the source documents before relying on the figures.

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.