The list form of the Computational Diffie–Hellman problem over a group family #
Over a PrimeOrderGroupFamily, this module states the list form of CDH as a game, with a
polynomial bound Q on the number of entries that count. It gives the guessing reduction of
[BS23], Section 21.11.4 (p. 908) and the proof of Theorem 11.4 (pp. 446–448), which turns
a list adversary into a CDH adversary, with a PPT certificate, and proves that under the CDH
assumption every PPT list adversary wins with negligible probability. The fixed-group experiment,
the reduction for a given index sampler and its analysis are in
CslibFrontier/Crypto/Computational/DiffieHellman/ListCDH.lean, whose module docstring lists the
differences from the book and the behaviour at Q = 0, for short lists and for repeated entries.
A list adversary's efficiency is stated on encodings, as for CDHAdversary.IsPPT: one uniform
strict PPT machine reads encCDHInput and writes the framed list of the words of its entries.
A machine with fair coins cannot draw an exactly uniform position below every Q n, so the
reduction draws its position with Cslib.ProbComp.sampleModIndex (width n) (Q n): the residue
modulo Q n of a number written with width n fair coins, capped at Q n (which matters only at
Q n = 0). The coin count width is a parameter of the reduction. Each position below Q n is
drawn with probability at least 1 / Q n - 1 / 2 ^ width n, so the reduction keeps the book's
factor Q n and adds the term Q n / 2 ^ width n. With width n = n that term is negligible when
Q is polynomially bounded, which gives the conclusion under the CDH assumption.
Main definitions #
Cslib.Crypto.PrimeOrderGroupFamily.ListCDHAdversary,Cslib.Crypto.PrimeOrderGroupFamily.ListCDHAdversary.IsPPT,Cslib.Crypto.PrimeOrderGroupFamily.listCDHGame: the list form of CDH over the family.Cslib.Crypto.PrimeOrderGroupFamily.listCDHToCDHAdversary: the guessing reduction as a CDH adversary.
Main results #
Cslib.Crypto.PrimeOrderGroupFamily.isPPT_listCDHToCDHAdversary: the reduction is PPT when the list adversary is andwidthandQare computable in polynomial time in unary.Cslib.Crypto.PrimeOrderGroupFamily.succProbability_listCDHGame_le: the loss, the factorQ nplus the termQ n / 2 ^ width n, for everywidthandQ.Cslib.Crypto.PrimeOrderGroupFamily.succProbability_listCDHGame_mono: the success probability does not decrease when the boundQ ngrows.Cslib.Crypto.PrimeOrderGroupFamily.CDH.negligible_listCDHGame: under the CDH assumption every PPT list adversary wins with negligible probability.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 21.11.4, p. 908, and Section 11.5.1, Theorem 11.4 and its proof with equation (11.12), pp. 446–448.
A list adversary for CDH over the family: given the security parameter, the group parameters and two elements, it returns a list of elements of the group.
A list adversary is PPT when one uniform strict PPT machine reads encCDHInput and writes the
framed list of the words of the adversary's entries.
The list form of CDH with bound Q: choose group parameters with the setup law, then run
Cslib.Crypto.listCDHExperiment with bound Q n in that group.
The guessing reduction of [BS23], Section 21.11.4 (p. 908), as a CDH adversary: run
the list adversary, draw a position with Cslib.ProbComp.sampleModIndex (width n) (Q n) from
width n fair coins, and return the entry there, or the generator past the end of the list
(Cslib.Crypto.listCDHToCDH).
The guessing reduction is efficient: it is uniform strict PPT whenever the list adversary
is and the coin count width and the bound Q are computable in polynomial time in unary.
Loss of the guessing reduction: the list form of CDH with bound Q is won with probability
at most Q n times the success probability of the reduction in the CDH game, plus
Q n / 2 ^ width n. The factor is the book's Q ([BS23], Section 21.11.4, p. 908,
and equation (11.12), p. 448); the additive term, which the book does not have, is the cost of
drawing the position from width n fair coins. It holds for every setup law, every width, every
Q, including Q n = 0, and every adversary.
More entries that count cannot hurt the adversary: if Q n ≤ Q' n, the list form of CDH
with bound Q' is won at n with probability at least that with bound Q, since the first Q n
entries of a list are among its first Q' n (Cslib.Crypto.eval_listCDHExperiment_mono in each
group).
The list form of CDH is hard under CDH ([BS23], Section 21.11.4, p. 908): under
the CDH assumption, every PPT list adversary wins the list form of CDH with negligible probability,
for every bound Q computable in polynomial time in unary.