Documentation

CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto.WordSecurity

ROM IND-CCA security of the word-level Fujisaki–Okamoto families from IND-CPA #

This module proves that the word-level KEMs of CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto.WordGame are IND-CCA secure in the random oracle model when the underlying word-level PKE family is IND-CPA secure:

Assumptions. P.INDCPA is the hardness assumption: IND-CPA security of the PKE family against uniform strict PPT adversaries, with challenge messages in its message space. The other premises are properties of the PKE family and the key length: efficiency (WordPKE.IsEfficient and a polynomial-time keyLen), ciphertexts in the ciphertext space (WordPKE.CiphertextFits), δ-correctness at every parameter with δ negligible, a message space of size 2 ^ msgLen n whose inverse is negligible, and for FO^⊥ γ-spreadness at every parameter with 2 ^ (-γ n) negligible. These are the asymptotic form of the requirements δ ≤ 2^{-κ}, γ ≥ κ and |M| ≥ 2^κ of the source's "Concrete parameters" (p. 22). Nothing is assumed about the reductions.

Proof. For an adversary A with IsOraclePPT encBool A, the typed bridge WordPKE.IsEfficient.exists_typedAdversary gives at each parameter a typed adversary with a polynomial bound q on its G, H and decapsulation queries, whose typed games are the word games and whose typed reductions have the IND-CPA advantages of romCpaReductionWord A and romBotCpaReductionWord A. The concrete bounds Scheme.indCcaRomAdvantage_le and Scheme.indCcaBotAdvantage_le then bound the IND-CCA advantage at n by a sum of twice the IND-CPA advantage of the reduction and terms polynomial in q n times 2 ^ (-msgLen n), δ n and, for FO^⊥, 2 ^ (-γ n). The reductions are uniform strict PPT (WordPKE.IsEfficient.isPPT_romCpaReductionWord, WordPKE.IsEfficient.isPPT_romBotCpaReductionWord), so the IND-CPA assumption makes their advantages negligible, and so is the sum.

Query counts. The source counts every evaluation of G and H in the experiment, the experiment's own included (§2.1, p. 9). The theorems here state no query counts: a uniform strict oracle PPT adversary makes polynomially many queries, and the concrete steps count its explicit queries. Their bounds differ from the source's in every term, and each term is negligible under the premises.

Scope. The games are the word games romIndCcaGameWord and romIndCcaBotGameWord, whose deviations from the source are documented in CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto .WordGame and CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto.Word.

Main results #

References #

ROM IND-CCA security of the word-level FO-notbot family from IND-CPA ([HHK17], ePrint 2017/604 (2 Nov 2021), Theorems 3.2 and 3.4, composed). Let P be an efficient word-level PKE family whose ciphertexts lie in its ciphertext space, which is δ-correct with δ negligible and has messages of length msgLen n with 2 ^ (-msgLen n) negligible, and let keyLen be polynomial-time. If P is IND-CPA secure, its FO-notbot KEM with keys of length keyLen n is IND-CCA secure in the random oracle model against uniform strict oracle PPT adversaries, with any number of decapsulation queries. The proof applies the IND-CPA assumption to the explicit reduction romCpaReductionWord A, certified by IsEfficient.isPPT_romCpaReductionWord. 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; KEM-notbot row of the §3.3 table, p. 22).

theorem Cslib.Crypto.Protocols.FujisakiOkamoto.WordPKE.INDCPA.romINDCCABot {P : WordPKE} {keyLen : ℕ → ℕ} (hcpa : P.INDCPA) (hP : P.IsEfficient) (hkeyLen : Turing.MultiTapeTM.ComputableInPolyTime keyLen Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary) (hfit : P.CiphertextFits) {δ : ℕ → NNReal} (hδ : P.DeltaCorrect δ) (hδneg : Negligible δ) {γ : ℕ → ℝ} (hγ : P.GammaSpread γ) (hγneg : Negligible fun (n : ℕ) => 2 ^ (-γ n)) (hmsg : Negligible fun (n : ℕ) => (2 ^ P.msgLen n)⁻¹) :
P.ROMINDCCABot keyLen

ROM IND-CCA security of the word-level FO^⊥ family from IND-CPA ([HHK17], ePrint 2017/604 (2 Nov 2021), Theorems 3.2 and 3.3, composed as in §3.3, pp. 21–22). Let P be an efficient word-level PKE family whose ciphertexts lie in its ciphertext space, which is δ-correct with δ negligible and γ-spread with 2 ^ (-γ n) negligible, and has messages of length msgLen n with 2 ^ (-msgLen n) negligible, and let keyLen be polynomial-time. If P is IND-CPA secure, its explicit-rejection FO^⊥ KEM with keys of length keyLen n is IND-CCA secure in the random oracle model against uniform strict oracle PPT adversaries, with any number of decapsulation queries. The proof applies the IND-CPA assumption to the explicit reduction romBotCpaReductionWord A, certified by IsEfficient.isPPT_romBotCpaReductionWord.

The premises on δ, γ and the message length are the asymptotic form of the source's "Concrete parameters" (p. 22). The source states a concrete bound, with G and H queries counted over the whole experiment (§2.1, p. 9). This theorem states none; its concrete step, Scheme.indCcaBotAdvantage_le, counts the adversary's explicit queries and has a bound that differs from the source's in every term. The game romIndCcaBotGameWord reads H(m, c) as the canonical word encoding H(false, m, c), answers requests outside the oracles' word domains with the empty word, rejects words longer than ctLen n with ⊥ and measures the two-world advantage, twice the source's |Pr[b' = b] - 1/2|.