Documentation

CslibFrontier.Crypto.Protocols.SigmaProtocol.SchnorrIdentification

Schnorr identification #

Schnorr's identification scheme ([BS23], Section 19.1) is Schnorr's Sigma protocol with the key generator that draws α uniformly from ZMod q and publishes u = α • g. The one-way game for this key generator is the discrete-logarithm experiment for g: the adversary wins when it outputs some α' with α' • g = u. When g generates a group of prime order q, this α' is the sampled α.

The two theorems here are ideal-sampling steps toward Boneh and Shoup's Theorems 19.1 and 19.5, not the cited results. At a fixed group, with the key drawn from ZMod q at the PMF level (schnorrKeyGen), they state the relations of those theorems' "in particular" clauses, the bound (19.2) and the equality ID2adv[A, I_sch] = ID1adv[B, I_sch], for reductions written out here. They prove neither that these reductions are efficient nor an asymptotic security statement, which needs a group family with efficient operations and, for Theorem 19.1, the discrete-logarithm assumption (#5293). Over a PrimeOrderGroupFamily with fair-coin key generation, the asymptotic theorems are PrimeOrderGroupFamily.negligible_schnorrDirectProbGame and PrimeOrderGroupFamily.negligible_schnorrEavesdropProbGame (eavesdropping security under the discrete-logarithm assumption) in CslibFrontier/Crypto/Computational/SchnorrEavesdrop.lean; the rewinding adversary and the simulated-view impersonator are certified by PrimeOrderGroupFamily.isPPTOn_rewind and PrimeOrderGroupFamily.isPPT_toDirect. As for the identification experiments they instantiate, the group and challenge types are in Type.

Main definitions #

Ideal-sampling steps toward Theorems 19.1 and 19.5 #

References #

noncomputable def Cslib.Crypto.Protocols.SigmaProtocol.schnorrKeyGen {q : ℕ} [NeZero q] {G : Type} [AddCommGroup G] [Module (ZMod q) G] (g : G) :
PMF (ZMod q × G)

Schnorr key generation ([BS23], Section 19.1): a uniform secret α and the verification key α • g.

theorem Cslib.Crypto.Protocols.SigmaProtocol.mem_support_schnorrKeyGen {q : ℕ} [NeZero q] {G : Type} [AddCommGroup G] [Module (ZMod q) G] {g : G} {key : ZMod q × G} (h : key ∈ (schnorrKeyGen g).support) :
key.1 • g = key.2

Every Schnorr key pair is in Schnorr's relation.

Ideal-sampling step toward [BS23], Theorem 19.1, not the cited result: at a fixed group, with the key drawn at the PMF level by schnorrKeyGen, an impersonator's success probability is at most 1 / N + √ε' (the bound (19.2)), where ε' is the probability that rewinding it computes a discrete logarithm of the key and N is the number of challenges. Missing are the efficiency of the rewinding adversary A.rewind (linearExtract ι) and the asymptotic statement (#5293). Over a PrimeOrderGroupFamily, PrimeOrderGroupFamily.isPPTOn_rewind certifies the rewinding adversary and PrimeOrderGroupFamily.negligible_schnorrDirectProbGame is the asymptotic theorem.

Ideal-sampling step toward [BS23], Theorem 19.5, not the cited result: at a fixed group, with the key drawn at the PMF level by schnorrKeyGen, an eavesdropper succeeds with exactly the probability of the direct impersonator that simulates its Q conversations (the equality ID2adv[A, I_sch] = ID1adv[B, I_sch]). Missing is the efficiency of that simulated-view impersonator, A.withSimulatedViews (linearSimulate …), whose simulator draws its response uniformly from ZMod q at the PMF level; nothing here certifies it as an efficient wrapper around A (#5293). Over a PrimeOrderGroupFamily, PrimeOrderGroupFamily.isPPT_toDirect certifies a simulated-view impersonator whose simulator samples with fair coins, and PrimeOrderGroupFamily.negligible_schnorrEavesdropProbGame proves eavesdropping security under the discrete-logarithm assumption.