Documentation

CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto.NotBot

Concrete ROM IND-CCA advantage bound for FO-notbot #

Scheme.indCcaRomAdvantage_le is the concrete per-instance ROM IND-CCA advantage bound for the implicit-rejection transform FO-notbot = U-notbot ∘ T of [HHK17] (IACR ePrint 2017/604, full version dated 2 November 2021, §3.2.2, Fig. 12), after Theorems 3.2 and 3.4 of that paper. It holds for one fixed finite scheme, with no security parameter and no running-time bound on the reduction romCpaReduction A; it is the step that the word-level asymptotic theorem for the FO-notbot family, WordPKE.INDCPA.romINDCCA in CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto.WordSecurity, consumes. For uniform messages, a δ-correct explicit-coin PKE and a randomized adversary each of whose coin values makes at most qG queries to G and qH queries to H (and any number of decapsulation queries),

Adv^{IND-CCA}(A) ≤ 2 · Adv^{IND-CPA}(B) + (2 qH + 2 (qG + qH)) / |M| + 2 (qG + qH + 1) δ,

where B = romCpaReduction A is one two-stage IND-CPA adversary that draws its own challenge messages. As in the source, no γ-spreadness is needed (§1.1.2 table and the text below it, p. 6; remark after the proof of Theorem 3.2, p. 13; KEM-notbot row of the §3.3 table, p. 22). The paper obtains its bound by composing Theorem 3.2 for T (IND-CPA to OW-PCVA, §3.1, used in its OW-PCA form without spreadness from the remark on p. 13) with Theorem 3.4 for U-notbot (§3.2.2); this proof composes the corresponding game hops directly:

  1. advantage_eagerIndCcaGame_eagerFbGame_le (module NotBot.Fallback): replacing the implicit-rejection keys H(s, ·) by an independent table costs qH / |M| (game G1 of the proof of Theorem 3.4).
  2. eagerCoupledGame_eq_eagerFbGame (NotBot.Pushforward) and eval_coupledGame_eq_eagerCoupledGame (NotBot.Lazy): re-indexing the random oracles so that decapsulation reads a ciphertext table Hq, and its lazy realization coupledGame, whose key-derivation oracle reads Hq(c) for H(false, m, c) exactly when c = Enc(pk, m; G(m)) and Dec(sk, c) = some m (game G2 of the proof of Theorem 3.4).
  3. advantage_coupledGame_le (NotBot.Challenge): the real and random challenge keys are indistinguishable unless G(m*) is queried or the challenge itself fails to decrypt (game G3 of the proof of Theorem 3.4). With the decryption test, no other message reaches the challenge key, so no spreadness is needed. Removing the decryption test inside the one-wayness run costs (qG + qH) δ (games G1–G2 of the proof of Theorem 3.1), which leaves the one-wayness experiment simFilterOwExperiment of the keyless simulator; succProbability_simFilterOwExperiment_le (module Security) bounds it by the IND-CPA advantage of romCpaReduction plus (qG + qH) / |M|.

Step 1 is applied to both challenge bits, which accounts for the factor 2 on its term. The hops are proved for each coin value of the adversary, and RandomizedROAdversary.advantage_play_le averages them over the coins. In roIndCcaGame and eagerIndCcaGame, both the real key (via H) and the independent ideal challenge key are drawn from the arbitrary sampler S.sampleKey : ProbComp K (distinct from S.pke.keyGen), and the proof holds for any S.sampleKey; taking S.sampleKey uniform on K recovers the standard KEM IND-CCA key law of [HHK17], §2.2, Def. 2.4 / Fig. 4.

Main results #

References #

theorem Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme.advantage_eagerIndCcaGame_coupledGame_le {PK SK M R CT K : Type} [DecidableEq M] [DecidableEq CT] [Fintype M] [Nonempty M] [Finite R] [Fintype CT] [Finite K] (S : Scheme PK SK M R CT K) (A : ROAdversary PK M R CT K) {qG qH : ℕ} (hq : ROQueryBounds A qG qH) (hmsg : S.sampleMsg.eval = Probability.PMF.uniformOfFintype M) (b : Bool) :
↑((S.eagerIndCcaGame A b).advantage (S.coupledGame A b).eval) ≤ ↑qH / ↑(Fintype.card M)

Hybrid chain for one challenge bit: under uniform messages, the eager IND-CCA game of FO-notbot and the lazy coupled game differ by at most qH / |M|.

theorem Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme.indCcaRomAdvantage_le {PK SK M R CT K : Type} [DecidableEq M] [DecidableEq CT] [Fintype M] [Nonempty M] [Finite R] [Finite CT] [Finite K] (S : Scheme PK SK M R CT K) (A : RandomizedROAdversary PK M R CT K) {qG qH : ℕ} (hq : A.QueryBounds qG qH) (hmsg : S.sampleMsg.eval = Probability.PMF.uniformOfFintype M) {δ : ℝ} (hδ : S.pke.DeltaCorrect δ) :
↑(S.indCcaRomAdvantage A) ≤ 2 * ↑(S.pke.cpaAdvantage (S.romCpaReduction A)) + (2 * ↑qH + 2 * (↑qG + ↑qH)) / ↑(Fintype.card M) + 2 * ↑(qG + qH + 1) * δ

Concrete ROM IND-CCA advantage bound for FO-notbot, the per-instance step after [HHK17], Theorems 3.2 and 3.4 (composed directly), for one fixed finite scheme and without running-time bounds on romCpaReduction A; the word-level asymptotic theorem for the FO-notbot family consumes it. Let the messages be uniform and the PKE δ-correct, and let every coin value of the randomized adversary A make at most qG queries to G and qH queries to H (decapsulation queries are unbounded). Then the single IND-CPA reduction romCpaReduction A satisfies `Adv^{IND-CCA}(A) ≤ 2 · Adv^{IND-CPA}(romCpaReduction A) + (2 qH + 2 (qG + qH)) / |M|

  • 2 (qG + qH + 1) δ. As in the source, the PKE need not be γ-spread (§1.1.2 table, p. 6; remark after the proof of Theorem 3.2, p. 13). Both advantages are two-world differences, twice HHK17's hidden-bit advantages, so the factor 2in front of the IND-CPA term is the same for both normalizations; in the hidden-bit normalization the bound reads `2 · Adv^{IND-CPA} + (qG + 2 qH) / |M| + (qG + qH + 1) δ, which is within the KEM-notbotrow `qRO · δ + 3 qRO / |M| + 3 · Adv^{IND-CPA}of the §3.3 table (p. 22) forqRO = qG + qH + 1. Both the real key (via H) and the independent ideal challenge key in roIndCcaGameare drawn from the arbitrary key samplerS.sampleKey : ProbComp K; taking S.sampleKeyuniform onK` recovers the standard uniform-ideal-key experiment of [HHK17], §2.2, Def. 2.4 / Fig. 4.