Two blinded Diffie–Hellman problems in a fixed group #
[BS23], Section 21.11.5, Lemmas 21.7 and 21.8 (pp. 910–911), state two problems that are
hard under CDH. With [X, Y] the Diffie–Hellman value of X and Y (Section 21.11.4), given
random a, b, u, v, Lemma 21.7's adversary must find γ and w = [u / a ^ γ, v / b ^ γ]; given
random a, b, u, Lemma 21.8's adversary must find γ₁ ≠ γ₂, any v and both values
wᵢ = [u / a ^ γᵢ, v / b ^ γᵢ]. The book names neither problem: "blinded CDH" and
"two-point blinded CDH", and the names of all declarations here, are this library's names.
This module states both problems in one group, as Cslib.Crypto.cdhExperiment does for CDH, and
analyses exactly the book's reductions, which turn an adversary for each problem into a CDH
adversary. The efficient reductions over a prime-order group family, and the conclusions under the
CDH assumption, are in CslibFrontier/Crypto/Computational/DiffieHellman/BlindedFamily.lean.
Differences from the book:
- Groups are written additively and the experiments draw exponents:
a = α • g,b = β • g,u = x • g,v = y • g. The target is written through the exponents ofuandaonly,blindedDH α x γ b v = (x - γ * α) • (v - γ • b), which is the book's[u / a ^ γ, v / b ^ γ]because[X, Y]is the discrete logarithm ofXtimesY. No discrete-logarithm function on group elements is introduced, and in Lemma 21.8 the adversary'svneeds no exponent. - The statements are exact and in one group. With exactly uniform blinding exponents, Lemma 21.7
is an equality of success probabilities (
cdhAdvantage_blindedCDHToCDH) for every nonzero modulusq, everyZMod q-moduleGand everyg. Lemma 21.8 (blindedCDHPairAdvantage_le_cdhAdvantage) is an inequality and needsqprime: when the adversary loses, the reduction's output can still be right, and for compositeqthe differenceγ₁ - γ₂need not be invertible. - The win conditions are decided, so the experiments take
[DecidableEq G], asCslib.Crypto.cdhExperimentdoes.
Main definitions #
Cslib.Crypto.blindedDH: the target value[u / a ^ γ, v / b ^ γ]in additive notation.Cslib.Crypto.BlindedCDHAnswer,Cslib.Crypto.BlindedCDHPairAnswer: the adversaries' answers.Cslib.Crypto.blindedCDHExperiment,Cslib.Crypto.blindedCDHAdvantage: the problem of Lemma 21.7 and its success probability.Cslib.Crypto.blindedCDHPairExperiment,Cslib.Crypto.blindedCDHPairAdvantage: the problem of Lemma 21.8 and its success probability.Cslib.Crypto.blindedCDHToCDH,Cslib.Crypto.blindedCDHPairToCDH: the book's reductions, which turn an adversary for each problem into a CDH adversary, with the blinding exponents drawn uniformly;Cslib.Crypto.blindedCDHToCDHWithandCslib.Crypto.blindedCDHPairToCDHWithfix them.
Main results #
Cslib.Crypto.BlindedCDHAnswer.solve_eq_iff,Cslib.Crypto.BlindedCDHPairAnswer.solve_eq: the book's equations (21.10) and (21.11), solved for the Diffie–Hellman value.Cslib.Crypto.cdhAdvantage_blindedCDHToCDH: Lemma 21.7 in one group, an equality.Cslib.Crypto.blindedCDHPairAdvantage_le_cdhAdvantage: Lemma 21.8 in one group of prime order.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 21.11.5, Lemmas 21.7 and 21.8 with equations (21.10) and (21.11), pp. 910–911.
The book's [u / a ^ γ, v / b ^ γ] ([BS23], Lemma 21.7) for u = x • g and
a = α • g, written through the exponents of u and a: since [X, Y] is the discrete logarithm
of X times Y, it is (x - γ * α) • (v - γ • b). No discrete logarithm of b or v is needed.
The name is this library's.
An adversary's answer in blindedCDHExperiment: the exponent γ and the claimed value
w = [u / a ^ γ, v / b ^ γ] of [BS23], Lemma 21.7.
An adversary's answer in blindedCDHPairExperiment: two exponents γ₁, γ₂, an element v
and the claimed values wᵢ = [u / a ^ γᵢ, v / b ^ γᵢ] of [BS23], Lemma 21.8.
The output of the reduction of [BS23], Lemma 21.7, on the CDH instance (s, t)
with blinding exponents μ, ν (so a = μ • g and b = ν • g): equation (21.10) solved for
[s, t], w + (γ * ν) • s + (γ * μ) • t - (γ ^ 2 * μ * ν) • g.
The output of the reduction of [BS23], Lemma 21.8, on a CDH instance whose first
element is s, with blinding exponent μ (so a = μ • g and b = s): equation (21.11) solved
for [u, b], (γ₁ - γ₂)⁻¹ • (w₂ - w₁) - μ • v + ((γ₁ + γ₂) * μ) • s.
The algebra of [BS23], Lemma 21.7: the reduction's output is the Diffie–Hellman
element exactly when the adversary's value is the blinded one. No hypothesis on G, q or
g.
The algebra of [BS23], Lemma 21.8: for prime q, from the two blinded values at
distinct exponents the reduction's output is the Diffie–Hellman element of β • g and x • g.
The adversary's v is any element of G.
The reduction of [BS23], Lemma 21.7, with its blinding exponents μ, ν fixed: on
the CDH instance (s, t), run the adversary on a = μ • g, b = ν • g, u = s, v = t and
return BlindedCDHAnswer.solve.
The reduction of [BS23], Lemma 21.8, with its blinding exponent μ fixed: on the
CDH instance (s, t), run the adversary on a = μ • g, b = s, u = t and return
BlindedCDHPairAnswer.solve.
The reduction of [BS23], Lemma 21.7, with exactly uniform blinding exponents.
The reduction of [BS23], Lemma 21.8, with an exactly uniform blinding exponent. Its
bound, blindedCDHPairAdvantage_le_cdhAdvantage, needs q prime. It is an abbrev, so that the
program it runs after the draw is visibly blindedCDHPairToCDHWith, whose efficiency over a group
family is PrimeOrderGroupFamily.isPPTOn_blindedCDHPairToCDHWith. The exactly uniform draw is
outside that certificate: a strict fair-coin machine outputs each value with a dyadic probability,
so it can make the draw only when q is a power of two. The efficient reduction is
PrimeOrderGroupFamily.blindedCDHPairToCDHAdversary (certified by
PrimeOrderGroupFamily.isPPT_blindedCDHPairToCDHAdversary), which draws with
PrimeOrderGroupFamily.sampleExp and loses 1 / 2 ^ n
(PrimeOrderGroupFamily.succProbability_blindedCDHPairGame_le).
The problem of [BS23], Lemma 21.7, in the group generated by g: the challenger
draws uniform exponents and gives the adversary a = α • g, b = β • g, u = x • g, v = y • g;
the adversary wins when its value is blindedDH at its exponent. The name is this library's.
The success probability of A in blindedCDHExperiment.
The problem of [BS23], Lemma 21.8, in the group generated by g: the challenger
draws uniform exponents and gives the adversary a = α • g, b = β • g, u = x • g; the
adversary wins when its two exponents differ and both values are blindedDH at its v. The name
is this library's.
The success probability of A in blindedCDHPairExperiment.
A CDH solver that first draws r from R and then runs B r has, in the CDH experiment, the
average over r of the laws for B r.
The law of blindedCDHExperiment is the law of the CDH experiment for
blindedCDHToCDHWith, averaged over uniform blinding exponents.
With exactly uniform blinding exponents, the reduction of [BS23], Lemma 21.7, has
in the CDH experiment the law of the adversary in blindedCDHExperiment.
[BS23], Lemma 21.7, in one group, with exactly uniform blinding: the reduction
solves its CDH instance with exactly the adversary's success probability in
blindedCDHExperiment. Beyond NeZero q, which the uniform draws need, there is no hypothesis on
q or g: q need not be prime and g need not generate G.
For prime q, blindedCDHPairExperiment accepts with probability at most that of the CDH
experiment for blindedCDHPairToCDHWith, averaged over a uniform blinding exponent.
[BS23], Lemma 21.8, in one group of prime order, with exactly uniform
blinding: whenever the adversary wins blindedCDHPairExperiment, the reduction solves its CDH
instance. The inequality can be strict, since the reduction can also be right when the adversary
loses.