← Back to section · Research & Analysis

Why SLH-DSA Signatures Run from 8 KB to 49 KB: Deriving the Size Formula

From the FIPS 205 parameters, we take an SLH-DSA signature apart piece by piece — randomiser, FORS signature, and the WOTS+ signatures and authentication paths of every hypertree layer — and reproduce all six published signature lengths, 7856 to 49856 bytes, from one formula.

Published 22 November 2026 · 6 min read · PQ Frontier

Why SLH-DSA Signatures Run from 8 KB to 49 KB: Deriving the Size Formula
AI-generated site artwork
Video explainer · Original Research: Analysis and Derivations

SLH-DSA signature lengths are usually quoted as “7.8 KB to 49.9 KB”, but rarely does anyone show where the six numbers come from. In fact the FIPS 205 parameter table supplies all the raw material and the signature structure is public: this is pure multiply-and-add. We derive it term by term and verify against all six parameter sets.

The three parts of a signature

An SLH-DSA signature is assembled from three parts. First, a randomiser R of n bytes (the security parameter n is 16, 24 or 32 for the 128/192/256 series). Second, the FORS few-time signature: FORS consists of k small trees, each contributing one private element (n bytes) selected by an a-bit index plus an authentication path of length a (a nodes of n bytes each), so each tree occupies (a+1)×n bytes and k trees occupy k(a+1)n bytes. Third, the hypertree signature: the hypertree has d layers, each an XMSS subtree, and each XMSS signature contains one WOTS+ signature plus one authentication path. The WOTS+ chain count len is determined by the Winternitz parameter w=16: len = len1 + len2, where len1 = ⌈8n/4⌉ = 2n and len2 = 3 (for n = 16/24/32 alike, as the reader can verify from the FIPS 205 formulas), giving len = 35, 51 and 67 respectively. Summing the three parts gives the total formula: signature length = n × (1 + k(a+1) + h + d×len), where h is the total hypertree height, the d×len term comes from the WOTS+ signatures of all layers, and the h term from the authentication paths (each layer’s path has length h/d, and d layers contribute h nodes in total).

Taking two components one level deeper: WOTS+‘s len and FORS’s product

Two quantities in the formula are not read off a table but computed from lower-level definitions, and each deserves its own walk-through. First, WOTS+‘s len. The Winternitz parameter w=16 means each hash chain encodes 4 bits: the message is cut into 4-bit groups, and an n-byte digest needs len1 = 2n groups (32 when n=16), each group corresponding to one chain, with the signature revealing the intermediate value at the corresponding position on every chain — len1 elements of n bytes. Message chains alone are not enough: the verifier needs checksum chains to prevent tampering with the message components, and the checksum’s bit length, set by len1 and w, works out through FIPS 205’s rounding formulas to len2 = 3 chains for n = 16, 24 and 32 alike. Hence len = len1 + len2 = 2n + 3 — 35, 51 and 67 for the three values of n — which is where the three numbers substituted earlier come from, and it shows len is not a freely tunable knob but a quantity locked by n and w.

Second, what sets FORS’s scale. The message digest FORS signs must have length m = k×a: the digest is split into k segments of a bits each, and each segment’s value selects one leaf of the corresponding small tree. Across the six parameter sets, 128s has k×a = 14×12 = 168 bits and 128f has 33×6 = 198 bits — the f variant’s digest is longer because it loads FORS with more of the security burden, offsetting the reduced per-layer requirement as the hypertree gains layers. The a/k split sets the size: raising a by 1 adds one node to every tree’s authentication path (k×n bytes across the signature); raising k by 1 adds an entire tree’s private element and path ((a+1)×n bytes). What the parameter table’s designers did was find the balance point between these two marginal costs. With both layers taken apart, the parameter table stops being six isolated rows of numbers and becomes a set of interlocking constraints: n fixes the skeleton of the security level, w fixes the WOTS+ chain count, h and d shape the hypertree, a and k shape FORS — and the signature length is simply the total bill for those choices.

Substitution check: all six parameter sets

Substitute the FIPS 205 parameter table (h, d, a, k in order). For 128s: h=63, d=7, a=12, k=14, len=35: n×(1 + 14×13 + 63 + 7×35) = 16×(1+182+63+245) = 16×491 = 7856 bytes — matching the published value. For 128f: h=66, d=22, a=6, k=33: 16×(1 + 33×7 + 66 + 22×35) = 16×(1+231+66+770) = 16×1068 = 17088 bytes — matching. For 192s (n=24, h=63, d=7, a=14, k=17, len=51): 24×(1+255+63+357) = 24×676 = 16224 bytes. For 192f (h=66, d=22, a=8, k=33): 24×(1+297+66+1122) = 24×1486 = 35664 bytes. For 256s (n=32, h=64, d=8, a=14, k=22, len=67): 32×(1+330+64+536) = 32×931 = 29792 bytes. For 256f (h=68, d=17, a=9, k=35): 32×(1+350+68+1139) = 32×1558 = 49856 bytes. All six match to the byte — no coincidence, but structure: the signature length has no compression or padding freedom, so the day the parameters are fixed, the formula locks the size.

Reading the design trade-off out of the formula

The formula states the s/f split plainly. The s variants make the hypertree shorter with fewer layers (small d) and compensate with a larger FORS (bigger a and k): signatures are small but signing must traverse more FORS trees, so signing is slow. The f variants invert this — large d, short layers, fast signing — but every layer carries a WOTS+ signature, the d×len term swells, and size more than doubles. Then look at the multiplier structure: every term is multiplied by n, so moving n from 16 to 32 doubles each component — that alone explains why the 256 series approaches 50 KB — and len itself grows linearly in n (len ≈ 2n), making the d×len term effectively quadratic in n: at higher security levels, size grows faster than intuition suggests. The selection corollary follows directly: size-sensitive deployments (such as firmware-signature distribution) should prefer the s variant within a level and accept the signing time; latency-sensitive deployments should do the opposite. There is no parameter set that is both small and fast, because every term in the formula is the price of security.

While we are here: the key sizes from the same parameters

The same parameter set settles the key sizes as well, and they make an interesting contrast with the signature sizes. An SLH-DSA public key has two parts — the public seed PK.seed (n bytes) and the hypertree’s top root PK.root (n bytes) — totalling 2n bytes: 32, 48 and 64 bytes for n = 16, 24 and 32, the smallest public key of any post-quantum signature scheme, forty times smaller than ML-DSA-44’s 1312 bytes. The private key has four parts — the secret seed SK.seed, the PRF seed SK.prf, and the two public parts — totalling 4n bytes: 64, 96 and 128 bytes, equally compact. Verification’s cost structure also tracks the signature size: the verifier merely recomputes the root layer by layer along the authentication paths given in the signature, with a hash count of the same order as the number of nodes the signature contains, so verification is comparatively fast; the signer, by contrast, must generate all of FORS’s small trees and the WOTS+ chains of every hypertree layer on the spot — exactly why the s variants sign slowly. Placing these numbers beside the signature sizes, SLH-DSA’s size profile is strikingly asymmetric: tiny keys, enormous signatures. The formula thereby draws its own applicability boundary — it shines where keys reside long-term and are distributed widely while signatures are produced occasionally and can be computed offline (firmware, root certificates), and it hurts most where a signature must be produced and transmitted with every connection in real time (a TLS handshake).

Limits

This article derives signature length only, not the public key (an SLH-DSA public key is just 2n bytes — 32 to 64 bytes, the smallest of all post-quantum signature schemes) or private key sizes; quantitative comparison of signing and verification speeds needs implementation benchmarks, outside the reach of table-based derivation. The formula and parameters are all from FIPS 205, and readers can reproduce the arithmetic for any parameter set — including future revisions of the standard.

Sources

  • NIST, FIPS 205, Stateless Hash-Based Digital Signature Standard, 2024 (parameter tables, signature structure and length tables).
  • Hülsing et al., the SPHINCS+ submission package (design of FORS and the hypertree).

Tags: SLH-DSAFIPS 205Hash-Based SignaturesParameter Derivation