Documentation

CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto.WordGame

Random-oracle IND-CCA security of the word-level Fujisaki–Okamoto families #

This module states random-oracle IND-CCA security for the word-level FO-notbot and FO^⊥ families of CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto.Word, against the uniform strict oracle PPT adversaries of CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto.WordReduction. Both are instances of one experiment, WordPKE.romIndCcaExperimentWord, the IND-CCA game of [HHK17] (IACR ePrint 2017/604, full version dated 2 November 2021), §2.2, Definition 2.4 / Figure 4, with random oracles G and H:

  1. generate (pk, dk) with the KEM's key generation;
  2. run the native encapsulation WordPKE.encaps against lazily sampled random oracles, giving the challenge ciphertext c* and the real key k₀*;
  3. draw an independent uniform key k₁* of length keyLen n;
  4. give the adversary the challenge word Encryption.encKEMChallenge (pk, k_b*, c*) and the oracles G, H and decapsulation (WordPKE.ccaWordOracle), sharing the random oracles of step 2.

Decapsulation runs the KEM's native decapsulation against the same random oracles, and refuses c* with the empty word. For FO-notbot (WordPKE.romIndCcaGameWord) key generation is WordPKE.keyGenNotBot and decapsulation is WordPKE.decapsNotBot; for FO^⊥ (WordPKE.romIndCcaBotGameWord) they are the key generation of the PKE family and WordPKE.decapsBot.

Domains of the random oracles. G is a random function from messages of length msgLen n to uniform words of length coinLen n. H is a random function from the canonical encodings encHQuery (false, m, c) with m of length msgLen n and c of length at most ctLen n (WordPKE.isHQuery) to uniform words of length keyLen n. A request outside these domains gets the empty word and leaves the oracle unchanged (WordPKE.roWordOracle). The honest algorithms only query inside the domains, except that encapsulation queries H at a ciphertext longer than ctLen n when the PKE family produces one.

Advantage. WordPKE.ROMINDCCA and WordPKE.ROMINDCCABot ask that the two sides b = false and b = true be indistinguishable for every uniform strict oracle PPT adversary. The two-world advantage is twice the source's hidden-bit advantage |Pr[b' = b] - 1/2|.

These notions are FO-specific and local to this module, pending the generic KEM records of the crypto readability program (#4817, I3 #4894). WordPKE.INDCPA.romINDCCA and WordPKE.INDCPA.romINDCCABot in CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto.WordSecurity derive them from IND-CPA security of the PKE family.

Main definitions #

References #

The lazily sampled random oracles of the word ROM game at parameter n, on caches of words. G maps a message of length msgLen n to a uniform word of length coinLen n, and H maps a request satisfying isHQuery to a uniform word of length keyLen n. Any other request gets the empty word and leaves the caches unchanged.

Run a word program over the oracles G and H against the game's random oracles, keeping their caches.

The oracles of the adversary in a word ROM IND-CCA game with decapsulation program decaps: G and H are the game's random oracles, and decapsulation runs decaps against them, encoding its answer with encOption encBits. Decapsulation of the challenge ciphertext cStar is refused with the empty word.

noncomputable def Cslib.Crypto.Protocols.FujisakiOkamoto.WordPKE.romIndCcaExperimentWord (P : WordPKE) (keyLen : ℕ → ℕ) {DK : Type} (keyGen : ℕ → ProbComp (List Bool × DK)) (decaps : ℕ → List Bool → DK → List Bool → Probability.WordOracleComp RO (Option (List Bool))) (A : ℕ → List Bool → Probability.WordOracleComp CCAOp Bool) (b : Bool) (n : ℕ) :

The word ROM IND-CCA experiment of an FO KEM over P with key generation keyGen and decapsulation decaps n pk dk, at parameter n with challenge bit b ([HHK17], ePrint 2017/604 (2 Nov 2021), §2.2, Def. 2.4 / Fig. 4, with random oracles G and H). The challenge (c*, k₀*) is encaps against fresh lazy random oracles; k₁* is uniform of length keyLen n; and the adversary A receives encKEMChallenge (pk, k_b*, c*) with the oracles ccaWordOracle, sharing the random oracles of the challenge. It is the word counterpart of Scheme.romIndCcaExperiment.

The word ROM IND-CCA game for FO-notbot at parameter n with challenge bit b: romIndCcaExperimentWord with key generation keyGenNotBot and decapsulation decapsNotBot ([HHK17], ePrint 2017/604 (2 Nov 2021), §3.2.2, Fig. 12).

The word ROM IND-CCA game for FO^⊥ at parameter n with challenge bit b: romIndCcaExperimentWord with the key generation keyGen of P and the explicit-rejection decapsulation decapsBot ([HHK17], ePrint 2017/604 (2 Nov 2021), §3.3, Fig. 18).

Random-oracle IND-CCA security of the word-level FO-notbot family: every uniform strict oracle PPT adversary has negligible advantage between the two sides of romIndCcaGameWord. The negligible bound may depend on the adversary, which is fixed before the parameter.

Random-oracle IND-CCA security of the word-level FO^⊥ family: every uniform strict oracle PPT adversary has negligible advantage between the two sides of romIndCcaBotGameWord. The negligible bound may depend on the adversary, which is fixed before the parameter.