SPR hash + PRF ⇒ Stateful DS (XMSS)

Fully-black-box reduction · standard model · BDH11, BH12 · security loss: Adv^eu-cma ≤ Adv^prf(F_n; t′ + 2^h, 2^h queries) + 2·max{(2^(h+log ℓ) − 1)·Adv^spr(H_n; t′), 2^h·(Adv^prf(F_n; t′ + ℓ, ℓ queries) + ℓ²w²κ^(w−1)/(1/κ − 2^(−n))·Adv^prf(F_n; t′, 2 queries))}, for forgers running in time t with one signature per period over 2^h periods, tree height h, ℓ W-OTS chains of Winternitz parameter w, κ the largest number of keys of F_n that collide on one input (κ = 1: no key collisions), and t′ = t + 2^h·t_Sign + t_Vf + t_Kg (BH12, equation (3))

Statement

XMSS is a hash-based stateful signature scheme: a Merkle tree of height over Winternitz one-time verification keys authenticates them under one root, the signing key holds the index of the next unused one-time key, and the scheme signs messages — HBG+18 (Sections 1 and 4.1). In the original version, with the function family and the hash function family for one security parameter , XMSS is unforgeable for signatures, one per period, if is second-preimage resistant and is pseudorandom — BDH11; BH12 (Section 2 and Theorem 1).

In RFC 8391 the functions , and PRF of XMSS share one length of bytes: the tree hash maps an -byte key and a -byte input to bytes and is applied to the two children of a node, each XORed with an -byte bitmask; the function that the Winternitz chains iterate maps an -byte key and an -byte input to bytes; and the PRF maps an -byte key and a -byte input to bytes, generating the keys and bitmasks of and and, in pseudorandom key generation, -byte seeds that it then takes as keys — HBG+18 (Sections 3.1.1.1, 3.1.2, 3.1.7, 4.1.2, 4.1.4 and 4.1.11). Here the two families have one width and form a same-width SPR hash and PRF: a length-halving second-preimage-resistant family , and a compression-function PRF with and uniform on , whose restriction to the -padded copy of in is a PRF with key space, domain and range (Compression-function PRF ⇒ Length-preserving PRF) — standard. Key generation computes the root, which depends on all leaves, so an efficient forces ; for a polynomial , the height gives a scheme for signatures — standard.

Sketch

Each message is signed under a fresh Winternitz one-time key, and a Merkle tree over the one-time verification keys authenticates them under one root public key. Each tree node hashes its two children XORed with public bitmasks, and XMSS does not rely on the collision resistance of its hash functions but on weaker properties — HBG+18 (Section 4.1).

Notes

  • RFC 8391 specifies XMSS with the later improvements of Hülsing, Rijneveld and Song (PKC 2016), and the multi-tree variant XMSS^MT. The security proof it refers to, by the same authors, asks for post-quantum multi-function multi-target second-preimage resistance of the keyed hash functions and , a statistical condition on , a post-quantum PRF, and post-quantum multi-target extended target collision resistance of the message hash ; it models the PRF as a random oracle where the PRF generates bitmasks and hash keys, and it treats a message compression other than the RFC’s — HBG+18 (Sections 1 and 9.1). NIST approves XMSS and XMSS^MT, with LMS and HSS, as stateful hash-based signatures — CAD+20.
  • With the key layout of RFC 8391, XMSS is not forward-secure, even with one signature per period. There the signing key holds all one-time signing keys, or, with the pseudorandom key generation the RFC describes, a secret seed from which the PRF computes each of them, and signing updates it only by incrementing the index of the next unused one-time key — HBG+18 (Sections 4.1.3, 4.1.9 and 4.1.11). From the signing key exposed after the first signature, an adversary therefore reads or recomputes the one-time signing key of index and signs a fresh message under index ; with the authentication path of the first signature, this is a valid signature for the first period — standard. Forward security needs an update after which no efficient algorithm recomputes a used one-time signing key from the signing key; when the one-time keys derive from a seed, the update must evolve the seed and erase the old one — standard. The original XMSS of BH12’s Theorem 1 keeps the seed in its secret key, with the -th one-time signing key computed from — BH12 (Section 2) — so the same attack applies to it — standard. Its forward-secure variant generates the seeds with the forward-secure PRG and keeps the current state in place of the seed, and it is forward secure if is second-preimage resistant and is pseudorandom — BH12 (Section 4.2, Theorem 4).
  • The bound of equation (3) is negligible only when is polynomially bounded, where is the largest number of keys of that collide on one input; Theorem 1 states no bound on , and the security-level analysis takes , following BDE+11 — BH12 (equation (3), Section 3.3). A pseudorandom can have : from a PRF with -bit keys, if the first bit of is and otherwise is pseudorandom, and on every input keys collide — standard.
  • With collision resistance and the plain Merkle tree: Arbitrary-length CRHF + One-time signature ⇒ Stateful DS (Merkle) — Mer89.
  • SPHINCS+ removes the state with a hypertree of XMSS-style subtrees and the few-time signature FORS at the leaves — BHK+19; NIST standardizes it as SLH-DSA — NIST24c (Sections 1.2 and 3).