Computational Diffie–Hellman in the generic group model #
A lower bound for computational Diffie–Hellman (CDH) in the generic group model of
[BS23], Section 16.3: part (a) of Exercise 16.5 (p. 708), which asks to adapt the proof
of Theorem 16.3 to CDH. The bound is not stated in the book: the exercise states none, and the one
below is what the adapted proof gives. For prime q, an adversary that makes at most T queries
to the group oracle outputs the label of α β with probability at most ((3T + 4)² / 2 + 2) / q.
cdhGame A draws a uniform injective labeling L : ZMod q ↪ S and uniform α β : ZMod q, gives
the adversary L 1, L α and L β, runs it against the group oracle of L (runLabeled), and
wins when it outputs L (α * β). As for Cslib.Crypto.GenericGroup.dlogGame, the budget is
ProbOracleComp.IsQueryBounded: at most T labeling and group-operation queries on every path,
whatever the adversary's private coins. Since the adversary outputs a label, the game compares
elements of S and takes DecidableEq S, which dlogGame does not need.
This is a query bound in an idealized model: it assumes no computational hardness, says nothing about CDH in any specific group, and applies to adversaries that are otherwise unbounded.
The proof is an instance of Cslib.Crypto.GenericGroup.succProbability_linearGame_le, the bound
for games with linear inputs, with two unknowns α and β, one output label, and the test that the
output is the label of α β. It differs from the bound of Theorem 16.3 in two places.
- The table of linear forms holds at most
3T + 4forms, not3T + 2: one more for the second challengeL β, and one for the output, whose form the challenger looks up because the output is a label, where a discrete-logarithm adversary outputs an exponent. - The guess term is
2 / q, not1 / q: the output is a fixed linear forma X + b Y + c, andX Y = a X + b Y + cholds at no more than2q - 1of theq²points whenqis prime, where a guess of the discrete logarithm is right at one point inq.
q is prime, as in Theorem 16.3; the proof uses it twice, for collisions between two distinct
linear forms and for the count of solutions of X Y = a X + b Y + c. The bound is not claimed for
composite q, and it fails there: for q = 2¹⁰, recovering α bit by bit and then asking for the
label of α β wins with probability one using 12 queries, where the sharp form gives 391 / 512.
That attack was checked by computation and is not formalized. Part (b) of the exercise, the
interactive CDH (ICDH) problem of Definition 12.4, is not formalized here.
Main definitions #
Cslib.Crypto.GenericGroup.cdhGame: the CDH game in the generic group model.
Main results #
Cslib.Crypto.GenericGroup.succProbability_cdhGame_le: the bound((3T + 4)² / 2 + 2) / q.Cslib.Crypto.GenericGroup.succProbability_cdhGame_le_choose: the sharp form((3T + 4).choose 2 + 2) / q.Cslib.Crypto.GenericGroup.le_of_half_le_succProbability_cdhGame: success probability one half needsq ≤ (3T + 4)² + 4.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Exercise 16.5 (p. 708); Section 16.3, Theorem 16.3 and its proof, pp. 693–695.
The CDH game in the generic group model ([BS23], Exercise 16.5(a)): a uniform
injective labeling L and uniform α and β; the adversary gets L 1, L α and L β, runs
against the group oracle of L, and wins when it outputs L (α * β).
CDH in the generic group model, sharp form ([BS23], Exercise 16.5(a)). For prime
q and an adversary that makes at most T queries to the group oracle on every path, the CDH game
in the generic group model is won with probability at most ((3T + 4).choose 2 + 2) / q.
CDH in the generic group model ([BS23], Exercise 16.5(a), in the form of (16.6)).
For prime q and an adversary that makes at most T queries to the group oracle on every path,
the CDH game in the generic group model is won with probability at most
((3T + 4)² / 2 + 2) / q.
Success probability one half ([BS23], Exercise 16.5(a)). For prime q, an
adversary that makes at most T queries to the group oracle on every path and wins the CDH game
with probability at least 1 / 2 has q ≤ (3T + 4)² + 4: T is at least about √q / 3.