Polynomial-time Schnorr related-nonce extraction #
Computes the related-nonce Schnorr key recovery of [BS23], Exercise 19.1, on bit words
over a PrimeOrderGroupFamily: schnorrRelatedNonceExtractWord computes
extractNat (F.order d) (a * c₀) (a * z₀ + b) c₁ z₁ on the binary encodings of a, b, c₀, z₀, c₁, z₁, runs in polynomial time (computableInPolyTime_schnorrRelatedNonceExtractWord), and
recovers relatedNonceExtract modulo F.order d whenever a * c₀ ≠ c₁ modulo F.order d
(ofBits_schnorrRelatedNonceExtractWord).
Scope. This module covers the polynomial-time deterministic word extraction step; the
leaked-nonce special case (a = 0, b = r) has its word-level game and PPT adversary in
CslibFrontier.Crypto.Computational.SchnorrLeakedNonce, while general (a, b) word-level games
remain open.
Main definitions #
Cslib.Crypto.PrimeOrderGroupFamily.schnorrRelatedNonceExtractWord: binary-word key recovery from a group descriptiondand six words(a, b, c₀, z₀, c₁, z₁).
Main results #
Cslib.Crypto.PrimeOrderGroupFamily.computableInPolyTime_schnorrRelatedNonceExtractWord:schnorrRelatedNonceExtractWordis computable in polynomial time.Cslib.Crypto.PrimeOrderGroupFamily.ofBits_schnorrRelatedNonceExtractWord: decodedZModagreement withrelatedNonceExtractwhena * c₀ ≠ c₁moduloF.order d.Cslib.Crypto.PrimeOrderGroupFamily.schnorrRelatedNonceExtractWord_eq_encScalar: canonicalF.encScalar dequality withrelatedNonceExtractwhena * c₀ ≠ c₁moduloF.order d.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 19.2 and Exercise 19.1.
The key recovery of [BS23], Exercise 19.1, on words: from the description and the
binary numbers a, b, c₀, z₀, c₁, z₁, the binary value of
extractNat q (a * c₀) (a * z₀ + b) c₁ z₁.
schnorrRelatedNonceExtractWord is computable in polynomial time.
schnorrRelatedNonceExtractWord computes relatedNonceExtract on binary numbers, whenever
a * c₀ ≠ c₁ modulo the group order.
Under the non-degeneracy hypothesis of ofBits_schnorrRelatedNonceExtractWord,
schnorrRelatedNonceExtractWord returns the canonical encoded scalar F.encScalar d of
relatedNonceExtract.