Pairing-based hardness assumptions and direct consequences #
This module formalizes the co-Computational Diffie–Hellman (co-CDH) and Decision Bilinear Diffie–Hellman (Decision BDH) assumptions over pairing groups, together with the direct algebraic consequences of a pairing from [BS23], Sections 15.4–15.6.
- Co-CDH (
Attack Game 15.1andDefinition 15.3, p. 628): stated for a prime-order group familyFand a companionC : F.Companion(PrimeOrderGroupFamily.CoCDH), giving the adversary(α • g₀, α • g₁, β • g₀) ∈ G₀ × G₁ × G₀and asking for(α * β) • g₀ ∈ G₀. For any companionC,F.CoCDH C setupimpliesF.CDH setup(and henceF.DiscreteLog setup), and whenC = F.self(G₁ = G₀) it is equivalent toF.CDH setup(coCdh_self_iff_cdh). - Decision BDH (
Attack Game 15.8andDefinition 15.12, pp. 649–650): stated over aPairingGroupFamily(PairingGroupFamily.DecisionBDH), asking a uniform strict PPT distinguisher to distinguish(α • g₀, α • g₁, β • g₀, γ • g₁, (α * β * γ) • g_T)from(α • g₀, α • g₁, β • g₀, γ • g₁, δ • g_T). Since distinguishers output a single bit, this is equivalent to its word-level form (decisionBDH_iff_encoded). - Direct §15.4 consequences (p. 625): when a pairing is symmetric (
P.G₁ = P.G₀.self), checkinge(u, v) = e(g₀, w)(equation (15.8)) decides DDH with advantage at least1 / 2for every setup law (PairingGroupFamily.not_ddh_of_symmetric). Moreover, discrete logarithm hardness inGTfollows from discrete logarithm hardness in either source group (DiscreteLog.target_of_sourceZeroandDiscreteLog.target_of_sourceOne).
All family assumptions allow an arbitrary setup : ℕ → PMF F.Desc rather than an efficient group
generator; they coincide with the textbook assumptions when setup is efficiently samplable.
They are hypotheses, not theorems.
Main definitions #
Cslib.Crypto.coCdhExperiment,Cslib.Crypto.coCdhAdvantage: fixed-group co-CDH experiment and advantage.Cslib.Crypto.dbdhRealExperiment,Cslib.Crypto.dbdhRandomExperiment,Cslib.Crypto.dbdhAdvantage: fixed-group Decision BDH experiments and advantage.Cslib.Crypto.PrimeOrderGroupFamily.CoCDHInput,Cslib.Crypto.PrimeOrderGroupFamily.encCoCDHInput,Cslib.Crypto.PrimeOrderGroupFamily.CoCDHAdversary,Cslib.Crypto.PrimeOrderGroupFamily.coCdhGame,Cslib.Crypto.PrimeOrderGroupFamily.CoCDH: asymptotic co-CDH game and assumption.Cslib.Crypto.PairingGroupFamily.DBDHInput,Cslib.Crypto.PairingGroupFamily.encDBDHInput,Cslib.Crypto.PairingGroupFamily.DBDHDistinguisher,Cslib.Crypto.PairingGroupFamily.dbdhRealGame,Cslib.Crypto.PairingGroupFamily.dbdhRandomGame,Cslib.Crypto.PairingGroupFamily.DecisionBDH: asymptotic Decision BDH games and assumption.
Main results #
Cslib.Crypto.PrimeOrderGroupFamily.CoCDH.cdh,Cslib.Crypto.PrimeOrderGroupFamily.CoCDH.discreteLog,Cslib.Crypto.PrimeOrderGroupFamily.coCdh_self_iff_cdh: relations between co-CDH, CDH, and discrete logarithms.Cslib.Crypto.PairingGroupFamily.decisionBDH_iff_encoded: word-level equivalence for Decision BDH.Cslib.Crypto.PairingGroupFamily.not_ddh_of_symmetric: symmetric pairings break DDH.Cslib.Crypto.PairingGroupFamily.DiscreteLog.target_of_sourceZero,Cslib.Crypto.PairingGroupFamily.DiscreteLog.target_of_sourceOne: source-group discrete-log hardness implies target-group discrete-log hardness.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Sections 15.4–15.6 (pp. 625, 628–629, 649–650).
Fixed-group co-CDH and Decision BDH experiments #
The co-Computational Diffie–Hellman experiment ([BS23], Attack Game 15.1, p. 628) in
fixed groups G₀ and G₁ of order q: draw uniform α, β : ZMod q, give (α • g₀, α • g₁, β • g₀) to A, and accept when A outputs (α * β) • g₀.
The co-CDH advantage of A: its success probability in coCdhExperiment.
Ignoring the G₁ element in coCdhExperiment yields cdhExperiment in G₀.
When G₁ = G₀ and g₁ = g₀, feeding u as both u₀ and u₁ reduces coCdhExperiment to
cdhExperiment.
The real world of the Decision Bilinear Diffie–Hellman experiment ([BS23], Attack
Game 15.8, Experiment 0, p. 649): draw uniform α, β, γ : ZMod q and give (α • g₀, α • g₁, β • g₀, γ • g₁, (α * β * γ) • gT) to D. The book's unused δ does not affect the law.
The random world of the Decision Bilinear Diffie–Hellman experiment ([BS23], Attack
Game 15.8, Experiment 1, p. 649): draw uniform α, β, γ, δ : ZMod q and give (α • g₀, α • g₁, β • g₀, γ • g₁, δ • gT) to D.
The Decision BDH advantage of D: its distinguishing advantage between dbdhRealExperiment
and dbdhRandomExperiment.
The law of dbdhRealExperiment: uniform a, b, c : ZMod q at the PMF level.
The law of dbdhRandomExperiment: uniform a, b, c, d : ZMod q at the PMF level.
Asymptotic co-CDH assumption over a family and companion #
The input of a co-CDH adversary: the security parameter, public group parameters d,
elements u₀ = α • g₀, u₁ = α • g₁, and v₀ = β • g₀.
- secParam : ℕ
The security parameter, given to machines in unary.
- groupParameters : F.Desc
Public parameters selecting the groups
F.Carrier dandC.Carrier d. - leftZero : F.Carrier self.groupParameters
First base challenge
α • g₀ ∈ G₀. - leftOne : C.Carrier self.groupParameters
Companion challenge
α • g₁ ∈ G₁. - rightZero : F.Carrier self.groupParameters
Second base challenge
β • g₀ ∈ G₀.
Encoding of a co-CDH input: unary security parameter, F.encDesc, and encoded elements
F.encode d u₀, C.encode d u₁, F.encode d v₀, each framed except the last.
A co-CDH adversary over F and companion C: given the security parameter, group parameters
d, and (u₀, u₁, v₀), it outputs an element of F.Carrier d.
A co-CDH adversary is PPT when one uniform strict PPT machine reads F.encCoCDHInput C and
writes the encoding of the adversary's output element in F.Carrier d.
The co-CDH game ([BS23], Attack Game 15.1, p. 628): draw group parameters d from
the arbitrary setup law, then run coCdhExperiment in (F.Carrier d, C.Carrier d).
The co-Computational Diffie–Hellman assumption ([BS23], Attack Game 15.1 and
Definition 15.3, p. 628) for a family F, companion C, and setup law setup: every uniform
strict PPT co-CDH adversary wins coCdhGame with negligible probability. As for CDH and
DiscreteLog, setup is an arbitrary ℕ → PMF F.Desc rather than an efficient group generator;
this matches the source when setup is efficiently samplable.
Embed a CDH adversary into a co-CDH adversary by ignoring the G₁ challenge u₁.
Wrapping a PPT CDH adversary to ignore u₁ preserves uniform strict PPT.
coCdhGame of cdhToCoCDHAdversary equals cdhGame of adversary.
Co-CDH implies CDH in F for every companion C: ignoring u₁ = α • g₁ turns any
CDH adversary into a co-CDH adversary with the same success probability.
Co-CDH implies DiscreteLog in F for every companion C.
Embed a symmetric co-CDH adversary (where C = F.self) into a CDH adversary by duplicating
u = α • g₀ into both G₀ and G₁ slots.
Duplicating u preserves uniform strict PPT.
In the symmetric case C = F.self, coCdhGame coincides with cdhGame of
coCdhSelfToCDHAdversary.
Symmetric co-CDH is equivalent to CDH ([BS23], Section 15.5.1, p. 629): when
C = F.self (G₁ = G₀ and g₁ = g₀), F.CoCDH F.self setup ↔ F.CDH setup.
Asymptotic Decision BDH assumption over a pairing group family #
The input of a Decision BDH distinguisher: security parameter, group parameters d, and the
five elements (u₀, u₁, v₀, w₁, z) of [BS23], Attack Game 15.8 (p. 649).
- secParam : ℕ
The security parameter, given to machines in unary.
Public parameters selecting the pairing groups.
First source challenge
α • g₀ ∈ G₀.Second source challenge
α • g₁ ∈ G₁.Second exponent in first group
β • g₀ ∈ G₀.Third exponent in second group
γ • g₁ ∈ G₁.Target challenge element, either
(α * β * γ) • g_Tor independentδ • g_T.
Encoding of a Decision BDH input: unary security parameter, P.G₀.encDesc, and the five
encoded group elements, each framed except the last.
A Decision BDH distinguisher over P: given (n, d, u₀, u₁, v₀, w₁, z), it outputs a bit.
A Decision BDH distinguisher is PPT when one uniform strict PPT machine reads
P.encDBDHInput and writes its output bit.
The real Decision BDH game ([BS23], Attack Game 15.8, Experiment 0, p. 649): draw
group parameters d from setup n and run dbdhRealExperiment with gT = P.GT.generator d
(matching e(g₀, g₁) by P.pair_generator d).
The random Decision BDH game ([BS23], Attack Game 15.8, Experiment 1, p. 649): draw
group parameters d from setup n and run dbdhRandomExperiment with gT = P.GT.generator d.
The Decision Bilinear Diffie–Hellman assumption ([BS23], Attack Game 15.8 and
Definition 15.12, pp. 649–650) for a pairing group family P and setup law setup: every uniform
strict PPT distinguisher has negligible distinguishing advantage between dbdhRealGame and
dbdhRandomGame. As for DiscreteLog, setup is an arbitrary ℕ → PMF P.G₀.Desc rather than
an efficient parameter generator; this matches the source when setup is efficiently samplable.
DecisionBDH is the word-level Decision BDH assumption: since distinguishers output a
single bit, quantifying over distinguishers reading the flat word layout gives the exact same
assumption as DecisionBDH.
Direct §15.4 consequences (p. 625) #
The pairing DDH check e(u, v) = e(g₀, w) on encoded group elements
([BS23], equation (15.8), p. 625).
Distinguisher checking equation (15.8) when P is a symmetric pairing (P.G₁ = P.G₀.self).
symmetricDDHDistinguisher is uniform strict PPT.
DDH is easy in a symmetric pairing group ([BS23], Section 15.4, equation (15.8),
p. 625): if P.G₁ = P.G₀.self, then checking e(α • g₀, β • g₀) = e(g₀, γ • g₀) distinguishes
real DDH triples from random triples with advantage at least 1 / 2 for every setup law.
dlTargetToZeroAdversary preserves uniform strict PPT.
Discrete-log hardness in G₀ implies discrete-log hardness in GT ([BS23],
Section 15.4, p. 625: computing discrete logarithms in G₀ is no harder than in GT).
dlTargetToOneAdversary preserves uniform strict PPT.
Discrete-log hardness in G₁ implies discrete-log hardness in GT ([BS23],
Section 15.4, p. 625: computing discrete logarithms in G₁ is no harder than in GT).