The blinded Diffie–Hellman problems over a group family #
Over a PrimeOrderGroupFamily, this module states the two problems of [BS23],
Section 21.11.5, Lemmas 21.7 and 21.8 (pp. 910–911), as games. It gives the book's reductions,
which turn an adversary for each problem into a CDH adversary, with PPT certificates, and proves
that under the CDH assumption every PPT adversary wins either game with negligible probability.
The fixed-group problems (Cslib.Crypto.blindedCDHExperiment,
Cslib.Crypto.blindedCDHPairExperiment), the reductions with fixed blinding exponents and their
exact analysis are in CslibFrontier/Crypto/Computational/DiffieHellman/Blinded.lean, whose module
docstring lists the differences from the book in one group. The book names neither problem:
"blinded CDH" and "two-point blinded CDH", and the names of all declarations here, are this
library's names.
Adversaries receive and return group elements and exponents. Their efficiency is stated on
encodings, as for CDHAdversary.IsPPT: one uniform strict PPT machine reads the encoded input
(encBlindedCDHInput, encBlindedCDHPairInput) and writes the answer, the exponents as binary
numbers below the group order and the elements as their words.
The reductions draw their blinding exponents with sampleExp, the fair-coin sampler of the other
Diffie–Hellman reductions, whose law is within 1 / 2 ^ n of uniform. The bounds therefore carry a
sampling loss of 2 / 2 ^ n for Lemma 21.7 (two draws) and 1 / 2 ^ n for Lemma 21.8 (one draw),
which the book's "we can easily solve" leaves implicit. The theorems assume only F.CDH setup and
the adversary's PPT predicate.
Main definitions #
Cslib.Crypto.PrimeOrderGroupFamily.BlindedCDHInput,Cslib.Crypto.PrimeOrderGroupFamily.encBlindedCDHInput,Cslib.Crypto.PrimeOrderGroupFamily.BlindedCDHAdversary,Cslib.Crypto.PrimeOrderGroupFamily.BlindedCDHAdversary.IsPPT,Cslib.Crypto.PrimeOrderGroupFamily.blindedCDHGame: the problem of Lemma 21.7 over the family.Cslib.Crypto.PrimeOrderGroupFamily.BlindedCDHPairInput,Cslib.Crypto.PrimeOrderGroupFamily.encBlindedCDHPairInput,Cslib.Crypto.PrimeOrderGroupFamily.BlindedCDHPairAnswerWords,Cslib.Crypto.PrimeOrderGroupFamily.encBlindedCDHPairAnswerWords,Cslib.Crypto.PrimeOrderGroupFamily.BlindedCDHPairAdversary,Cslib.Crypto.PrimeOrderGroupFamily.BlindedCDHPairAdversary.IsPPT,Cslib.Crypto.PrimeOrderGroupFamily.blindedCDHPairGame: the problem of Lemma 21.8 over the family.Cslib.Crypto.PrimeOrderGroupFamily.blindedCDHToCDHAdversary,Cslib.Crypto.PrimeOrderGroupFamily.blindedCDHPairToCDHAdversary: the book's reductions as CDH adversaries.
Main results #
Cslib.Crypto.PrimeOrderGroupFamily.isPPT_blindedCDHToCDHAdversary,Cslib.Crypto.PrimeOrderGroupFamily.isPPT_blindedCDHPairToCDHAdversary: the reductions are PPT when the adversaries are. The second follows fromCslib.Crypto.PrimeOrderGroupFamily.isPPTOn_blindedCDHPairToCDHWith, the same forCslib.Crypto.blindedCDHPairToCDHWithwith its blinding exponent read from the input.Cslib.Crypto.PrimeOrderGroupFamily.advantage_blindedCDHGame_cdhGame_le,Cslib.Crypto.PrimeOrderGroupFamily.succProbability_blindedCDHPairGame_le: the sampling losses2 / 2 ^ nand1 / 2 ^ n.Cslib.Crypto.PrimeOrderGroupFamily.CDH.negligible_blindedCDHGame,Cslib.Crypto.PrimeOrderGroupFamily.CDH.negligible_blindedCDHPairGame: Lemmas 21.7 and 21.8 under the CDH assumption.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 21.11.5, Lemmas 21.7 and 21.8, pp. 910–911.
Lemma 21.7 #
The input of an adversary in the blinded CDH game: the security parameter, public group
parameters and the four elements a, b, u, v of [BS23], Lemma 21.7.
- secParam : ℕ
The security parameter, given to machines in unary.
- groupParameters : F.Desc
Public parameters selecting the group.
- leftBlind : F.Carrier self.groupParameters
The first blinding element,
a = α • gin the experiment. - rightBlind : F.Carrier self.groupParameters
The second blinding element,
b = β • gin the experiment. - leftPublic : F.Carrier self.groupParameters
The first public element,
u = x • gin the experiment. - rightPublic : F.Carrier self.groupParameters
The second public element,
v = y • gin the experiment.
The encoding of a blinded CDH input: the unary security parameter, the group parameters and
the words of the four elements, each framed except the last (encBlindedCDHInput_apply).
An adversary for the blinded CDH problem over the family: given the security parameter, the
group parameters and a, b, u, v, it answers an exponent and a group element.
A blinded CDH adversary is PPT when one uniform strict PPT machine reads encBlindedCDHInput
and writes the adversary's exponent as a binary number below the order, followed by the word of
its value.
The blinded CDH game: choose group parameters with the setup law, then run
Cslib.Crypto.blindedCDHExperiment in that group.
The reduction of [BS23], Lemma 21.7, as a CDH adversary: draw the two blinding
exponents with sampleExp and run Cslib.Crypto.blindedCDHToCDHWith.
The reduction of [BS23], Lemma 21.7, is efficient: it is uniform strict PPT whenever the adversary is.
Sampling loss of the reduction of [BS23], Lemma 21.7: the blinded CDH game and
the CDH game of the reduction accept with probabilities at most 2 / 2 ^ n apart, one 1 / 2 ^ n
for each sampleExp draw.
[BS23], Lemma 21.7, Section 21.11.5, p. 910: under the CDH assumption, every PPT adversary wins the blinded CDH game with negligible probability.
Lemma 21.8 #
The input of an adversary in the two-point blinded CDH game: the security parameter, public
group parameters and the three elements a, b, u of [BS23], Lemma 21.8.
- secParam : ℕ
The security parameter, given to machines in unary.
- groupParameters : F.Desc
Public parameters selecting the group.
- leftBlind : F.Carrier self.groupParameters
The first blinding element,
a = α • gin the experiment. - rightBlind : F.Carrier self.groupParameters
The second blinding element,
b = β • gin the experiment. - leftPublic : F.Carrier self.groupParameters
The public element,
u = x • gin the experiment.
The encoding of a two-point blinded CDH input: the unary security parameter, the group
parameters and the words of the three elements, each framed except the last
(encBlindedCDHPairInput_apply).
What a machine writes for a Cslib.Crypto.BlindedCDHPairAnswer: the two exponents as binary
numbers and the words of the three elements.
The encoding of the written answer: the five fields in order, each framed except the last
(encBlindedCDHPairAnswerWords_apply).
The written form of an answer in the group of d.
An adversary for the two-point blinded CDH problem over the family: given the security
parameter, the group parameters and a, b, u, it answers two exponents and three group
elements.
A two-point blinded CDH adversary is PPT when one uniform strict PPT machine reads
encBlindedCDHPairInput and writes the answer as encBlindedCDHPairAnswerWords.
The two-point blinded CDH game: choose group parameters with the setup law, then run
Cslib.Crypto.blindedCDHPairExperiment in that group.
The reduction of [BS23], Lemma 21.8, as a CDH adversary: draw the blinding exponent
with sampleExp and run Cslib.Crypto.blindedCDHPairToCDHWith.
The reduction of [BS23], Lemma 21.8, with its blinding exponent read from the
input, is efficient: on a CDH input and a number μ, running
Cslib.Crypto.blindedCDHPairToCDHWith with the blinding exponent μ is uniform strict PPT
whenever the adversary is. isPPT_blindedCDHPairToCDHAdversary draws μ with sampleExp
first.
The reduction of [BS23], Lemma 21.8, is efficient: it is uniform strict PPT whenever the adversary is.
Sampling loss of the reduction of [BS23], Lemma 21.8: the two-point blinded CDH
game is won at most as often as the CDH game of the reduction, up to 1 / 2 ^ n for its one
sampleExp draw.
[BS23], Lemma 21.8, Section 21.11.5, p. 911: under the CDH assumption, every PPT adversary wins the two-point blinded CDH game with negligible probability.