The asymptotic Gap-CDH assumption on decodable prime-order group families #
For a DecodablePrimeOrderGroupFamily, the word-level gap computational Diffie–Hellman (Gap-CDH)
experiment ([KL20], §12.4.4, p. 434) draws d ← setup n and independent uniform
exponents a, b : ZMod (F.order d), gives the adversary the unary security parameter n, the
group description d, and the encoded elements F.encode d (a • g) and F.encode d (b • g)
(GapCDHInput), together with a word-level fixed-base decisional Diffie–Hellman oracle
ddhWordOracle d b, and accepts when the adversary outputs F.encode d ((a * b) • g).
On a request word w, ddhWordOracle d y decodes w with ddhOracleQueryDecoder into candidate
words (u, v) and returns encBool true if and only if w = encDDHOracleQuery ⟨u, v⟩, both u
and v pass F.isElem, and their decoded group elements satisfy V = y • U; all non-canonical or
out-of-group queries return encBool false.
DecodablePrimeOrderGroupFamily.GapCDH setup states that every uniform strict oracle-PPT adversary
(IsOraclePPTOn (encGapCDHInput F.toPrimeOrderGroupFamily) encBits) wins gapCDHWordGame with
negligible probability. Because any closed PPT word-level CDH solver lifts to an oracle-free
Gap-CDH solver via ProbOracleComp.sample, GapCDH implies WordCDH, CDH, and DiscreteLog.
Main definitions #
Cslib.Crypto.DDHOracleQuery,Cslib.Crypto.encDDHOracleQuery,Cslib.Crypto.ddhOracleQueryDecoder: framed pair of candidate element words(U, V)for word-level DDH queries and its total polynomial-time decoder.Cslib.Crypto.GapCDHInput,Cslib.Crypto.encGapCDHInput: encoded input(1^n, d, u, v)of a word-level Gap-CDH adversary.Cslib.Crypto.queryDDHWord: query the external word-level DDH oracle on(u, v)and read its 1-bit Boolean answer.Cslib.Crypto.DecodablePrimeOrderGroupFamily.ddhOraclePred,Cslib.Crypto.DecodablePrimeOrderGroupFamily.ddhWordOracle: the word-level fixed-base DDH predicate and oracleO_y.Cslib.Crypto.DecodablePrimeOrderGroupFamily.GapCDHAdversary,Cslib.Crypto.DecodablePrimeOrderGroupFamily.gapCDHWordGame,Cslib.Crypto.DecodablePrimeOrderGroupFamily.GapCDH: word-level Gap-CDH adversaries, game, and asymptotic hardness assumption.
Main results #
Cslib.Crypto.isOraclePPTOn_queryDDHWord:queryDDHWordpreservesIsOraclePPTOn.Cslib.Crypto.DecodablePrimeOrderGroupFamily.ddhOraclePred_encode,Cslib.Crypto.DecodablePrimeOrderGroupFamily.run_queryDDHWord: on canonical group encodings,queryDDHWordagrees with the typedddhOracletestdecide (V = y • U).Cslib.Crypto.DecodablePrimeOrderGroupFamily.GapCDH.wordCDH,Cslib.Crypto.DecodablePrimeOrderGroupFamily.GapCDH.cdh,Cslib.Crypto.DecodablePrimeOrderGroupFamily.GapCDH.discreteLog:GapCDHimpliesWordCDH,CDH, andDiscreteLog.
References #
- J. Katz, Y. Lindell, Introduction to Modern Cryptography, 3rd edition, §12.4.4, p. 434.
Encoding of DDHOracleQuery as the framed pair of its two word fields.
Total polynomial-time decoder for encDDHOracleQuery.
Input (1^n, d, u, v) of a word-level Gap-CDH adversary over F: unary security parameter,
group description d, and two candidate element words (F.encode d (a • g) and
F.encode d (b • g) in the experiment).
Encoding of GapCDHInput F: unary secParam, groupParameters under F.encDesc, and the two
element words under encBits, framed as a nested pair.
Query the external fixed-base DDH word oracle on candidate element words (u, v) and decode
its Boolean answer bit via Decoder.bool.
queryDDHWord is uniform strict oracle-PPT whenever its two word arguments are computable in
polynomial time: reading the first symbol of the reply requires only a 1-bit prefix
(IsOraclePPTOn.query_take
with limit 1).
Word-level fixed-base DDH test on candidate element words u and v: true iff both u and
v are valid encodings in F.Carrier d and their decoded elements satisfy V = y • U.
On encoded group elements U, V : F.Carrier d, ddhOraclePred decides V = y • U.
Characterization of ddhOraclePred d y u v = true in terms of F.encode d.
Word-level fixed-base DDH oracle O_y ([KL20], §12.4.4, p. 434): on a canonical
query word encDDHOracleQuery ⟨u, v⟩, returns encBool (F.ddhOraclePred d y u v); non-canonical
words return encBool false.
A word-level Gap-CDH adversary over F maps GapCDHInput F.toPrimeOrderGroupFamily to a
candidate word List Bool, with private coins and access to a single external word channel (O_b
in gapCDHWordGame).
The word-level Gap-CDH game ([KL20], §12.4.4, p. 434): draw d ← setup n and
independent uniform a, b : ZMod (F.order d), run adversary on
⟨n, d, F.encode d (a • g), F.encode d (b • g)⟩ against ddhWordOracle d b, and accept when the
output word equals F.encode d ((a * b) • g).
The asymptotic Gap-CDH assumption ([KL20], §12.4.4, p. 434): every uniform
strict oracle-PPT adversary on encGapCDHInput wins gapCDHWordGame with negligible probability.
Deviations from [KL20], §12.4.4, p. 434:
- The textbook states the gap-CDH problem informally (computing
g^{xy}from(g^x, g^y)given oracleO_y(U, V) = 1 ↔ V = U^y) without a standalone numbered definition; here it is cast in the library's uniform strict oracle-PPT model (IsOraclePPTOn). - Group parameters are drawn from an arbitrary
setup : ℕ → PMF F.Descrather than an efficient group generatorG(1^n), matchingDiscreteLog,CDH, andDDH. - Inputs, oracle queries, and outputs are bit strings;
ddhWordOraclechecks canonical pair framing andF.isElemmembership, returningencBool falseon malformed queries.
GapCDH implies word-level WordCDH: any closed PPT word-level CDH adversary lifts via
ProbOracleComp.sample to an oracle-PPT Gap-CDH adversary that makes no DDH queries and has the
exact same success probability.
GapCDH implies CDH.
GapCDH implies DiscreteLog.