Asymptotic ROM IND-CCA security of the Diffie–Hellman KEM under Gap-CDH #
This module bridges the fair-coin word-level random-oracle DH-KEM (dhKEMCCAWordGame) and its
certified word-level reduction (dhKEMToGapCDHWord) from
CslibFrontier.Crypto.Computational.DiffieHellman.GapCDH.WordKEM to the typed per-group games and
reduction (PrimeOrderGroupFamily.dhKEMCCAGame, PrimeOrderGroupFamily.gapCDHGame,
PrimeOrderGroupFamily.dhKEMToGapCDH) of
CslibFrontier.Crypto.Computational.DiffieHellman.GapCDH, and proves the asymptotic security
theorem ([KL20], Theorem 12.22, p. 435).
For any uniform strict oracle-PPT adversary A, IsOraclePPTOn.exists_savedCoins yields a
coin-tape machine whose fixed-coin replays savedCoinDHKEMAdversary instantiate typed
PrimeOrderGroupFamily.DHKEMAdversary adversaries at each (n, d). Because F.Carrier d is
finite, every challenge word at (n, d) has bounded length, so padding the coin tape to
dhKEMCoinBudget makes the coin draw independent of (x, y, H, key). Query-by-query simulation
through routeToTypedQuery and tableRep equates:
- the ideal-exponent-sampling step
dhKEMCCAWordIdealGameAtwith the coin-averaged typeddhKEMCCAGame, and - the execution of
dhKEMToGapCDHWordon every encoded Gap-CDH instance (and hencegapCDHWordGame) with the coin-averaged typeddhKEMToGapCDH(eval_run_dhKEMToGapCDHWord_eqandgapCDHWordGame_dhKEMToGapCDHWord_eq).
Averaging PrimeOrderGroupFamily.advantage_dhKEMCCAGame_le_ideal over the coin tape and setup n
bounds the advantage in the ideal-exponent-sampling game dhKEMCCAWordIdealGame.
Replacing the two exact uniform exponent draws in each world by dhKEMKeyGenWordProb and
dhKEMEncapsWordProb (PrimeOrderGroupFamily.sampleExp) via advantage_bind_sampleExp_pair_le and
Game.advantage_four_hop_le adds at most 4 / 2 ^ n (advantage_dhKEMCCAWordGame_le), yielding
GapCDH.dhKEMROMINDCCA.
Main definitions #
Cslib.Crypto.DecodablePrimeOrderGroupFamily.routeToTypedQuery: translate word-levelDHKEMOprequests to typedPrimeOrderGroupFamily.DHKEMQuerycalls viaF.decode d.Cslib.Crypto.DecodablePrimeOrderGroupFamily.dhKEMCoinBudget,Cslib.Crypto.DecodablePrimeOrderGroupFamily.savedCoinDHKEMAdversary: per-(n, d)coin budget and typed fixed-coin replay KEM adversary.
Main results #
Cslib.Crypto.DecodablePrimeOrderGroupFamily.eval_run_dhKEMToGapCDHWord_eq: exact distributional equality betweendhKEMToGapCDHWordand the coin-averaged typeddhKEMToGapCDHon every encoded Gap-CDH challenge.Cslib.Crypto.DecodablePrimeOrderGroupFamily.advantage_dhKEMCCAWordGame_le: concrete fair-coin family boundAdv_CCA(A) ≤ Succ_GapCDH(dhKEMToGapCDHWord A) + 4 / 2 ^ nat everyn.Cslib.Crypto.DecodablePrimeOrderGroupFamily.GapCDH.dhKEMROMINDCCA: [KL20], Theorem 12.22 — underF.GapCDH setup, the fair-coin word-level Construction 12.19 is ROM IND-CCA secure for any polynomial-timekeyLen(keyLen = idgives then-bit keys of Definition 12.13).
References #
- J. Katz, Y. Lindell, Introduction to Modern Cryptography, 3rd edition, Definition 12.13 (p. 425), Construction 12.19 (p. 431), §12.4.4 (p. 434), Theorem 12.22 (p. 435), and Construction 12.23 (pp. 435–436).
Translate a word-level DHKEMOp request at group d into a typed DHKEMQuery program,
answering out-of-group requests (F.decode d w = none) with [] without making any oracle call.
Maximum encoded bit length among all elements of F.Carrier d.
Uniform upper bound on the bit length of every encoded DHKEMChallenge at (n, d) with a
keyLen n-bit key.
Uniform coin-tape length for replaying an oracle machine with clock (c, deg) on any challenge
at (n, d).
Fixed-coin typed KEM adversary obtained by replaying machine on the encoded challenge word
and routing its queries through routeToTypedQuery.
Word-level representation of a typed SimTable.
Query-by-query and table simulation #
Saved-coin replay equalities and Theorem 12.22 #
Exact reduction equality on every encoded Gap-CDH challenge (a • g, b • g): running
dhKEMToGapCDHWord against ddhWordOracle d b has the exact PMF law of drawing saved coins from
BitString.uniformList (dhKEMCoinBudget ...) and encoding the output of the typed reduction
PrimeOrderGroupFamily.dhKEMToGapCDH on savedCoinDHKEMAdversary.
Game-level reduction equality: at every security parameter n, the word-level Gap-CDH
experiment of dhKEMToGapCDHWord equals the setup n- and coin-averaged typed gapCDHGame of
PrimeOrderGroupFamily.dhKEMToGapCDH on savedCoinDHKEMAdversary.
Concrete family-level reduction for [KL20], Theorem 12.22 (p. 435): for every
setup distribution, key length, uniform strict oracle-PPT adversary adversary, and security
parameter n, the fair-coin word-level ROM IND-CCA advantage is at most the Gap-CDH success
probability of dhKEMToGapCDHWord plus the 4 / 2 ^ n exponent-sampling loss (2 / 2 ^ n in each
of the real-key and random-key worlds).
[KL20], Theorem 12.22 (p. 435).
If Gap-CDH is hard relative to (F, setup) and keyLen is computable in polynomial time in unary,
then the fair-coin word-level random-oracle Diffie–Hellman KEM (Construction 12.19, p. 431) is
IND-CCA secure in the random-oracle model (DHKEMROMINDCCA); taking keyLen = id gives the
n-bit keys of Definition 12.13 (p. 425).
Model and deviations from [KL20], Theorem 12.22:
- Group parameters are drawn from an arbitrary
setup : ℕ → PMF F.Descrather than an efficient group generatorG(1^n)(§12.4.1, p. 427), matchingDiscreteLog,CDH,DDH, andGapCDH. - Honest key generation (
dhKEMKeyGenWordProb) and encapsulation (dhKEMEncapsWordProb) sample their exponents in uniform strict (oracle) PPT over fair coins viaPrimeOrderGroupFamily.sampleExp(within statistical distance1 / 2 ^ nof uniform onZMod (F.order d)), incurring the negligible4 / 2 ^ nadditive loss inadvantage_dhKEMCCAWordGame_le. - Decapsulation (
dhKEMDecapsWordOracle) validates canonical group membership viaF.isElem, rejecting non-group words withnone(encoded as[]alongsidec = cStar) as in the ciphertext-validation remark of Construction 12.23 (pp. 435–436); hash queries outsideSet.range (F.encode d)return[]. DHKEMROMINDCCAbounds the two-world distinguishing advantage (Game.Indistinguishable), twice the textbook's hidden-bit bias|Pr[KEM^cca = 1] - 1/2|.