Correctness hop of the FO IND-CCA proofs #
This module bounds the distance between the lazy coupled handler Scheme.coupledFilterHandler
and the keyless simulator Scheme.simFilterHandler of
CslibFrontier.Crypto.Protocols.KEM.FujisakiOkamoto.NotBot.Hybrids by the decryption error of the
underlying PKE. This is the correctness step of the proof of the §3.1 theorem for T in
[HHK17] (games G1–G2 of the proof of Theorem 3.1), where the
plaintext-checking oracle is replaced by re-encryption.
The two handlers differ only in the decryption test Dec(sk, c) = some m of the key-derivation
oracle H(false, m, c). For a fixed key pair, both are run on the same SimState, and a state is
bad when some coin r cached for a message m in gCache fails to decrypt
(Dec(sk, Enc(pk, m; r)) ≠ some m). Caches only grow, so bad states are absorbing, and from a good
state the two handlers agree on every transition into a good state: a cached coin r = G(m) with
Enc(pk, m; r) = c then forces Dec(sk, c) = some m. The difference lemma bounds the distance by
the probability of reaching a bad state. Every G or H query samples at most one fresh coin,
which fails with probability at most the worst-case message failure probability
(closeTo_run_coupledFilterHandler_simFilterHandler). The FO-notbot challenge hop applies this
to the one-wayness run from empty caches. In the filtered games of the FO^⊥ proof the challenge
coin r* accounts for one more term, and averaging over key generation with δ-correctness gives
the bound (qG + qH + 1) δ.
Main results #
Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme.closeTo_run_coupledFilterHandler_simFilterHandler: from a state whose cached coins decrypt correctly, a program making at mostkqueries toGandHhas output laws under the two handlers withinktimes the worst-message failure probability of the key pair.Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme.advantage_coupledFilterGame_simFilterGame_le: for an adversary making at mostqGqueries toGandqHqueries toHagainst aδ-correct PKE, the distinguishing advantage betweencoupledFilterGameandsimFilterGameis at most(qG + qH + 1) δ.
References #
- D. Hofheinz, K. Hövelmanns, E. Kiltz, A Modular Analysis of the Fujisaki–Okamoto Transformation (IACR ePrint 2017/604, full version dated 2 November 2021).
Every coin cached in gCache decrypts correctly for its message.
The coupled and keyless handlers agree until a cached coin fails to decrypt. Run from a
state whose cached coins all decrypt correctly, and post-processed by any next, a program making
at most k combined G/H queries has output laws under coupledFilterHandler d₁ and
simFilterHandler d₂ within k times the worst-message failure probability of the key pair,
provided the two decapsulation filters agree on such states.
Filtered correctness hop: for an adversary making at most qG queries to G and qH
queries to H against a δ-correct PKE, when the decapsulation filters d₁ and d₂ agree on
every state satisfying GoodCache, coupledFilterGame d₁ and simFilterGame d₂ have
distinguishing advantage at most (qG + qH + 1) δ.