One reuse of a Winternitz key: the exact chance of a forgery
Abstract
STATEMENT If a Winternitz one-time key signs two random messages, an attacker can sign any third message whose every digit, checksum digits included, is at least the smaller of the two signed digits at that position. This paper computes exactly how likely that is for a random third message. For the Winternitz keys inside SLH-DSA-128 (base 16, 32 message digits, 3 checksum digits) the chance is 2.965378341180 × 10⁻⁶, certified to a relative error of 2 × 10⁻¹², or 18.363352 bits: about 1 message in 337,225. The formula usually quoted treats the checksum digits as independent and gives 18.2077 bits, so it is pessimistic for this key by 0.1557 bits; on smaller keys it errs in both directions. The same computation is then made for Ax, the hash-based scheme planned for Solana's validator votes, which replaces the checksum with a fixed digit sum (WOTS-TS: base 32, 39 digits, target 781, at the 192-bit level). There a reuse is an equivocation. One equivocation cuts an Ax key from its 192-bit design level to about 55 bits of hashing work on average (2^−55.183550 per try). Section 8 widens this: four more rows of the white paper's table, computed exactly, all stay under 64 bits after one reuse; over a million sampled pairs the median pair costs 61.35 bits and 1 % cost 51.22 bits or less; a second and a third reuse bring the mean cost down to 38.62 and 31.37 bits; and the protection against reuse peaks at target 940, only 2.03 bits above 781, while honest signing there needs 19.76 more bits of grinding. MOTIVATION Hash-based signatures are being chosen for post-quantum migrations, and stateful schemes (XMSS, LMS, and XMSS-style designs such as Ax) are only safe if a one-time key never signs twice. What a single slip costs has so far been given by a formula that assumes independent digits, or estimated by sampling. A dynamic program over the joint sums of the messages gives the exact average. Four computations were registered, with guesses and controls, and frozen before they ran: WR1 (SLH-DSA-128 keys), AX1 (Ax, one row), AX2 (other rows, single pairs, more reuses) and AX3 (the choice of target). STATUS Preprint, 6 December 2026. Not yet independently refereed. Read by the author. Each run ran once as registered, and every control passed. WR1's two guesses passed. AX1's G1 and G3 passed and G2 failed (the true cost, 55.18 bits, is about 10 bits above the guessed range of 25 to 45). AX2's H1 to H3 and H5 to H7 passed and H4 failed (at the raised targets the cost falls as the base grows, rather than rising). AX3's H1, H2, H4 and H5 passed and H3 failed (the peak is 2.03 bits above 781, not 3 or more). After the AX1 run a slip was found in how its program printed its error bound (0.0e+00); evaluated exactly the bound is 2.8144 × 10⁻¹³, and no printed digit of the results changes. Every number in the paper is checked by two scripts in the companion code record (138 checks for Sections 1 to 7, the appendix and the figures; 88 for Section 8). Duif and Meijer (ePrint 2026/1321) count the forgeries for a given pair exactly and sample pairs, reporting medians and first percentiles; their "checksum pinning" fixes the digit sum, as Ax does. As far as these sources show, the exact averages over all pairs, and the results for Ax, are new. RESULTS 1. WR1, SLH-DSA-128 keys (W = 16, L = 32, 3 checksum digits): P2 = 2.965378341180 × 10⁻⁶ (18.363352 bits), against 18.2077 bits from the independence formula; the exact value is 0.898 times the formula's. 2. Small keys, exact fractions beside the formula, for base 2, 4 and 16: the formula is optimistic in three rows, (2, 2), (4, 2) and (16, 2), and pessimistic in the others. 3. AX1, Ax with w = 32, v = 39, T = 781: pT = 2^−14.001475 per try (the white paper's "about 2^14 grinding steps"), P2TS = 4.008298322443 × 10⁻¹³ (41.182075 bits), q = 2.443971130712 × 10⁻¹⁷ (55.183550 bits); 39 independent digits would give only 21.5235 bits. 4. AX2, other rows, exact: attack costs of 47.521673 bits (w = 16, T = 360), 60.868771 (w = 16, T = 464), 43.416391 (w = 32, T = 604) and 49.227277 (w = 64, T = 1308). The raised target adds 13.35 bits at w = 16 and 11.77 at w = 32. 5. AX2, single pairs, sampled (1,000,000 pairs, T = 781): median 61.35 bits, first percentile 51.22, weakest drawn 42.65; the sample mean gives 55.20 bits against the exact 55.18. 6. AX2, more reuses, sampled: mean costs of 55.20, 38.62 and 31.37 bits for 2, 3 and 4 signatures on one key; with 4 signatures, 992,498 of a million tuples cost under 40 bits. 7. AX3, the target, exact, 17 targets from 800 to 1200: the protection −log₂ P2TS peaks at T = 940 (43.214765 bits), 2.03 bits above T = 781, while the signer's cost rises by 19.76 bits, about 890,000 times as many tries. 8. What is not covered: how often reuses happen, the weakest pairs that exist beyond those drawn, verification time, and the strength of any hash function. APPENDIX: THE MATHEMATICS The smallest case with a checksum: one bit d with checksum bit 1 − d. Of the 8 triples (d1, d2, d3), the pairs (0, 0) and (1, 1) allow one value of d3 each and the mixed pairs allow both, so P2 = 6/8 = 3/4. Dropping the checksum gives 7/8, the test the method must fail. For a fixed digit sum, base 3 with 2 digits summing to 2: the encodings are (0, 2), (1, 1), (2, 0); the counts of x3 that clear the lower positions are 1, 2, 3 / 2, 1, 2 / 3, 2, 1, a total of 17 of 27, so P2TS = 17/27 and, with pT = 1/3, q = 17/81 per try; without the fixed sum it would be 52 of 81. With three signatures the same case gives 63 of 81 and q = 7/27, and with four, 209 of 243. At the top target of Ax, T = 1208, there are 39 encodings and P2TS = (39 + 39 · 38 · 2)/39³ = 77/1521, only 4.30 bits, while the signer's cost is 189.71 bits: protection collapses at the top, so it must peak in between. The attacker's cost is the signer's cost plus −log₂ P2TS, since every try must hit the target. The formula's p for base w is Σ_{k=1}^{w} (2k − 1)k / w³ = (w + 1)(4w − 1)/(6w²); for base 16 that is 2856/4096. FILES Reusing_a_Winternitz_key.pdf: the paper (22 pages). Code, registrations, freeze records, logs (the two desktop logs of AX2 included), hand checks, post hoc checks and the paper's two checks: Zenodo record doi:10.5281/zenodo.24886923, archive Winternitz_reuse_code.zip (SHA-256 beginning 2f34c42091567f99). AI ASSISTANCE The work was directed by the author. Most of the computational work was done with Claude (Anthropic) and Gemini (Google), with support from Grok (xAI). The text was drafted with AI assistance from the project's records and edited by the author, who takes responsibility for its contents. REFERENCES [1] S. Fluhrer, "Oops, I did it again revisited", IACR Cryptology ePrint Archive 2023/1905. [2] L. Groot Bruinderink and A. Hülsing, "'Oops, I did it again' – Security of one-time signatures under two-message attacks", Selected Areas in Cryptography 2017. [3] NIST, FIPS 205, Stateless Hash-Based Digital Signature Standard, 2024. [4] Duif and Meijer, "Signing it twice: mitigating the effects of state reuse for stateful signatures", IACR Cryptology ePrint Archive 2026/1321. [5] Q. Kniep, K. Sliwinski and R. Wattenhofer, Alpenglow White Paper v1.2, 29 July 2026, Section 5.2. [6] J. Drake, D. Khovratovich, M. Kudinov and B. Wagner, "Hash-Based Multi-Signatures for Post-Quantum Ethereum", IACR Cryptology ePrint Archive 2025/055. [7] Certified Algebra: Exact Checks from Pencil to AI, book, Zenodo, 10.5281/zenodo.24837041. [8] Reusing a Winternitz key: code and logs, Zenodo, doi:10.5281/zenodo.24886923.
Community
0 commentsNo discussion yet
Be the first to share a question or observation.