Has it been Pwned

How SLH-DSA works

The signer reveals selected secret values and short lists of neighboring tree nodes. Anyone can hash these values forward until they reach the root in the public key.

Program status. FIPS 205 standardizes twelve parameter sets derived from SPHINCS+. They combine SHA2 or SHAKE, three security categories, and a small-signature or fast-signing profile. NIST program history

How a tree can authenticate a revealed value

Imagine receiving a value together with one sibling at each level of a binary tree. You can reconstruct the parent at every step by hashing the two children in their assigned order. If the final value agrees with a root you already trust, the path authenticates the leaf under that root. This keeps the public key short even when many leaves are available.

A tree alone would authenticate only membership. SLH-DSA must also tie the message to the values it reveals. It uses three related constructions. FORS selects secret leaves using pieces of the message digest. WOTS+ uses positions along one-way hash chains to sign a short value. A hypertree stacks groups of trees so that a WOTS+ signature in an upper layer authenticates the root from the layer below.

What the verifier computes

parent = H(address, left, right)

H denotes the relevant node hash with a public seed understood. The address identifies the node’s position and role. Left and right give the order of the two child values. The actual functions, addressing and encodings are specified by FIPS 205.

A WOTS+ signer advances each chain by a number of steps determined by a digit of the value being signed and by checksum digits. The verifier can advance the revealed chain states by the remaining steps to obtain their endpoints. The checksum helps prevent changing all the digits simply by advancing chains. The endpoints together determine the WOTS+ public key that acts as a tree leaf.

Worked example

For four leaves A, B, C and D, the proof for C supplies D and the parent of A and B. Compute the parent of C and D, then hash the supplied left parent with that computed right parent. Two siblings suffice. This example describes one authentication path. It leaves out the FORS signature and the WOTS+ signatures that bind the path to a message.

From the secret seeds to verification

  1. Generate

    Generate secret seeds for the signing elements and message randomizer, and a public seed. Derive the root of the highest tree. The public key carries the public seed and this root.

  2. Sign

    Compute a message randomizer and hash it with the public key material and the formatted message. Parse the digest into FORS leaf choices and hypertree positions. Sign the FORS digest and authenticate its resulting public key through the layers.

  3. Verify

    Recompute the digest and positions. Rebuild the FORS public key from the revealed values and paths. Work upward through the WOTS+ signatures and tree paths, then compare the final root with the public key.

Why stateless signing has a cost

The message-dependent positions allow the signer to operate without maintaining a synchronized counter of used leaves. Parameters account for the chance that signing many messages revisits positions. The amount of information revealed, the number of messages considered and the different hash-function security properties all enter the analysis. Collision resistance of one generic hash is an incomplete account.

A verifier has to receive the actual chains and paths, which makes signatures comparatively large. The small and fast profiles trade signature length against signing work. Byte limits in a certificate or protocol need to accommodate the selected profile. Even though many other PQC schemes use SHAKE internally, here the hash-based signing elements themselves supply the central security mechanism.

What power measurements reveal on a signing device

A lab study reports recovering secret seeds in specific tests of SHA-2 parameter sets on an STM32F303. It measured individual pseudorandom-function executions. The result gives hardware reviewers a concrete example of what to test when an analyst can measure the device.

Read the study and its scope →

Primary sources

Construction and program sources reviewed .