Documentation

CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto.NotBot.Fallback

Decoupling the implicit-rejection seed of FO-notbot #

In Figure 12 of [HHK17], implicit rejection reads H(s, c) from the ordinary key-derivation oracle at the secret fallback seed s. As in the first hop of Theorem 3.4 (§3.2.2, Figure 13), replace those rejection keys by an independent table Hfb c.

Fix the keys, coin table and challenge ciphertext. Among the entries H(s, c), resample exactly those for rejected ciphertexts other than the challenge. Thus real and hybrid decapsulation agree for every request, including a ciphertext that decrypts to s; the challenge also keeps its original key. A direct hash query at the seed can reveal the substitution. The hybrid ignores the seed, so at most qH queries hit it with probability at most qH * p when the largest seed probability is p.

Main results #

References #

Generic helpers #

Splitting the key-derivation table at the seed #

The two oracles agree until the seed is queried #

One run of each game #

Averaging over the randomness #

theorem Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme.advantage_eagerIndCcaGame_eagerFbGame_le {PK SK M R CT K : Type} [DecidableEq CT] [Fintype 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) {p : NNReal} (hp : ∀ (m : M), S.sampleMsg.eval m ≤ ↑p) (b : Bool) :
↑((S.eagerIndCcaGame A b).advantage (S.eagerFbGame A b)) ≤ ↑qH * ↑p

Hop 1 of the ROM IND-CCA proof for FO-notbot (the first game hop in the proof of the §3.2.2 IND-CCA theorem for U-notbot in [HHK17]): replacing the implicit-rejection keys H(s, c) by an independent table Hfb c changes the output distribution by at most qH * p, where qH bounds the adversary's H-queries and p bounds the point probabilities of the seed sampler S.sampleMsg.