Key recovery from leaked Schnorr signing randomness #
In Boneh–Shoup [BS23], Section 21.2 (p. 861), leaking the random bits used to
generate a Schnorr signature lets an adversary recover the long-term signing key directly from the
signing equation z = r + c * α ([BS23], Section 19.2, pp. 762–763).
This module specializes schnorrRelatedNonceExtractWord (a = 0, b = r) to give the word-level
recovery theorem on honest signatures, an explicit one-query WordOracleComp adversary with a
uniform strict oracle-PPT certificate IsOraclePPTOn, and the concrete random-oracle key-recovery
game and bound.
Differences from the book #
- Success probability
1 - 2 ^ (-m): Rather than succeeding with probability1, the word adversary succeeds with probability at least1 - 2 ^ (-m)against anm-bit random oracle, because the oracle can output the all-zerom-bit challenge word, on whichz = ris independent of the signing key. - Reduced nonce word: The leaked randomness input is the reduced scalar word
(r % F.order d).bits, which the rawsampleExpoutputrdetermines. - Fixed message and omitted public key:
schnorrLeakedNonceWordGamesigns one fixed messagemsgand gives(d, m, msg, sig, rBits)without the public key. - Standing condition
2 ^ m ≤ F.order d: Inherited fromschnorrWordROMScheme(CslibFrontier/Crypto/Computational/SchnorrSignature/NativeROM.lean), ensuring distinctm-bit challenges map to distinct residues moduloF.order d.
Main definitions #
schnorrLeakedNonceWordAdversary: one-query word-level random-oracle adversary recovering the secret-key word from a signature and leaked nonce word.schnorrLeakedNonceWordGame: nativeWordOracleCompleaked-randomness key-recovery game over anm-bit stateful random oracle.
Main results #
schnorrRelatedNonceExtractWord_schnorrSignCoins:schnorrRelatedNonceExtractWordata = 0,b = rrecoversF.encScalar d αon an honest signature when the challenge word is nonzero moduloF.order d.isOraclePPTOn_schnorrLeakedNonceWordAdversary:schnorrLeakedNonceWordAdversaryis uniform strict oracle PPT with unarym.one_sub_inv_two_pow_le_succProbability_schnorrLeakedNonceWordGame: against anm-bit stateful random oracle with2 ^ m ≤ F.order d,schnorrLeakedNonceWordAdversarysucceeds with probability at least1 - (2 ^ m : ℝ≥0)⁻¹.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 21.2 (p. 861) and Section 19.2 (pp. 762–763).
schnorrRelatedNonceExtractWord at a = 0, b = r returns the secret-key word from an
honest signature whose challenge is nonzero modulo F.order d.
One-query word-level ROM adversary taking (d, m, msg, sig, rBits) and recovering the
secret-key word from sig and the leaked reduced randomness word rBits.
Efficiency certificate: schnorrLeakedNonceWordAdversary is uniform strict oracle PPT
with m encoded in unary.
Native WordOracleComp leaked-randomness key-recovery game: schnorrSigKeyGen draws
(pk, sk), sampleExp draws signing randomness r, signing executes the exact steps of
schnorrROMSign (CslibFrontier/Crypto/Computational/SchnorrSignature/NativeROM.lean) against an
m-bit stateful random oracle using the reduced nonce word rBits := (r % F.order d).bits, and
adversary (d, m, msg, sig, rBits) queries the same oracle to recover sk.
Concrete success probability of schnorrLeakedNonceWordAdversary against an m-bit stateful
random oracle when 2 ^ m ≤ F.order d: the loss 2 ^ (-m) is the zero-challenge event, on which
z = r is independent of the secret key.