Documentation

CslibFrontier.Crypto.Primitives.Garbling.Foundations

Indistinguishability and simulation security of garbling schemes #

The relations between the indistinguishability and the simulation notions of privacy and obliviousness of [BHR12b], Section 4, by explicit reductions at a fixed security parameter. These are the advantage relations (1)–(4) in the proofs of Propositions 2 and 3 (pp. 13–15), as equalities. They are steps toward the propositions, not the cited results: the propositions relate the asymptotic notions, security against every polynomial-time adversary (Sections 3.4, 3.5 and 3.7), and need the reductions and simulators to run in polynomial time. CslibFrontier.Crypto.Primitives.Garbling.FoundationsAsymptotic defines those notions, proves that the reductions and simulators here are strict PPT, and derives the propositions from these equalities.

The same reductions, without the output ev(f, x) and the decoding information d, relate obv.ind and obv.sim, with an inverter of Φ in place of an ev-inverter.

Main definitions #

Steps toward Propositions 2 and 3 #

References #

The reductions #

The state of the reductions from indistinguishability to simulation adversaries: the state of the indistinguishability adversary, the hidden bit chosen by the reduction and the pair of queries of the adversary.

  • state : σ

    The state of the indistinguishability adversary.

  • bit : Bool

    The hidden bit chosen by the reduction.

  • pair : MessagePair (Query Fn)

    The pair of queries of the indistinguishability adversary.

noncomputable def Cslib.Crypto.Garbling.prvIndToSim {Fn Λ σ : Type} [DecidableEq Λ] (G : Scheme Fn) (Φ : SideInfo Fn Λ) (A : PrvIndAdversary Fn σ) :

The prv.sim adversary built from a prv.ind adversary A ([BHR12b], Proposition 2): it picks a hidden bit c, submits the query c of the pair of A when the pair is valid and the query 0 otherwise, and outputs whether A recovers c.

noncomputable def Cslib.Crypto.Garbling.prvSimFromInverter {Fn Λ : Type} (G : Scheme Fn) (k : ℕ) (M : Λ → List Bool → Query Fn) :

The prv.sim simulator built from an ev-inverter M for the side information ([BHR12b], Section 4.2): the real view of the query that M produces from ev(f, x) and Φ(f).

def Cslib.Crypto.Garbling.prvSimToInd {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) (M : Λ → List Bool → Query Fn) (B : PrvSimAdversary Fn σ) :

The prv.ind adversary built from a prv.sim adversary B and an ev-inverter M ([BHR12b], Proposition 2): it queries the pair of M(Φ(f), ev(f, x)) and the query (f, x) of B, and guesses as B does.

noncomputable def Cslib.Crypto.Garbling.obvIndToSim {Fn Λ σ : Type} [DecidableEq Λ] (G : Scheme Fn) (Φ : SideInfo Fn Λ) (A : ObvIndAdversary Fn σ) :

The obv.sim adversary built from an obv.ind adversary A ([BHR12b], Proposition 3): it picks a hidden bit c, submits the query c of the pair of A when the pair is valid and the query 0 otherwise, and outputs whether A recovers c.

def Cslib.Crypto.Garbling.obvInverterQuery {Fn Λ : Type} (G : Scheme Fn) (M : Λ → Fn) (φ : Λ) :

The query that the obv.sim simulator built from an inverter M garbles: the function that M produces from φ, on the all-zero input.

noncomputable def Cslib.Crypto.Garbling.obvSimFromInverter {Fn Λ : Type} (G : Scheme Fn) (k : ℕ) (M : Λ → Fn) :

The obv.sim simulator built from an inverter M of the side information ([BHR12b], Section 4.3): the real view of the function that M produces from Φ(f) on the all-zero input.

def Cslib.Crypto.Garbling.obvSimToInd {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) (M : Λ → Fn) (B : ObvSimAdversary Fn σ) :

The obv.ind adversary built from an obv.sim adversary B and an inverter M of the side information ([BHR12b], Proposition 3): it queries the pair of M(Φ(f)) on the all-zero input and the query (f, x) of B, and guesses as B does.

Privacy #

theorem Cslib.Crypto.Garbling.prvIndAdvantage_eq_two_mul_prvSimAdvantage_prvIndToSim {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) [DecidableEq Λ] (hCompat : Φ.Compatible G) (k : ℕ) (S : PrvSimulator Λ) (A : PrvIndAdversary Fn σ) :
prvIndAdvantage G Φ k A = 2 * prvSimAdvantage G Φ k S (prvIndToSim G Φ A)

Step toward [BHR12b], Proposition 2(1) (open, #5293), not the cited result: at a fixed security parameter, the prv.ind advantage of A is twice the prv.sim advantage of the reduction prvIndToSim against every simulator (the bound (1) in the proof, as an equality).

theorem Cslib.Crypto.Garbling.prvIndAdvantage_le_two_mul_prvSimAdvantage_prvIndToSim {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) [DecidableEq Λ] (hCompat : Φ.Compatible G) (k : ℕ) (S : PrvSimulator Λ) (A : PrvIndAdversary Fn σ) :
prvIndAdvantage G Φ k A ≤ 2 * prvSimAdvantage G Φ k S (prvIndToSim G Φ A)

Step toward [BHR12b], Proposition 2(1) (open, #5293), not the cited result: at a fixed security parameter, the prv.ind advantage of A is at most twice the prv.sim advantage of prvIndToSim A against every simulator (the bound (1) in the proof).

theorem Cslib.Crypto.Garbling.eval_prvSimExperiment_prvSimFromInverter {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) [DecidableEq Λ] (hCompat : Φ.Compatible G) {M : Λ → List Bool → Query Fn} (hInv : Φ.IsEvInverter G M) (k : ℕ) (B : PrvSimAdversary Fn σ) (b : Bool) :

Against the simulator built from an ev-inverter M, the prv.sim game on B is the prv.ind game on the reduction prvSimToInd.

theorem Cslib.Crypto.Garbling.prvSimAdvantage_prvSimFromInverter_eq {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) [DecidableEq Λ] (hCompat : Φ.Compatible G) {M : Λ → List Bool → Query Fn} (hInv : Φ.IsEvInverter G M) (k : ℕ) (B : PrvSimAdversary Fn σ) :

Step toward [BHR12b], Proposition 2(2) (open, #5293), not the cited result: at a fixed security parameter, against the simulator built from an ev-inverter M, the prv.sim advantage of B is the prv.ind advantage of the reduction prvSimToInd (the bound (2) in the proof, as an equality).

theorem Cslib.Crypto.Garbling.prvSimAdvantage_prvSimFromInverter_le {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) [DecidableEq Λ] (hCompat : Φ.Compatible G) {M : Λ → List Bool → Query Fn} (hInv : Φ.IsEvInverter G M) (k : ℕ) (B : PrvSimAdversary Fn σ) :

Step toward [BHR12b], Proposition 2(2) (open, #5293), not the cited result: at a fixed security parameter, against the simulator built from an ev-inverter M, the prv.sim advantage of B is at most the prv.ind advantage of prvSimToInd (the bound (2) in the proof).

Obliviousness #

theorem Cslib.Crypto.Garbling.obvIndAdvantage_eq_two_mul_obvSimAdvantage_obvIndToSim {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) [DecidableEq Λ] (hCompat : Φ.Compatible G) (k : ℕ) (S : ObvSimulator Λ) (A : ObvIndAdversary Fn σ) :
obvIndAdvantage G Φ k A = 2 * obvSimAdvantage G Φ k S (obvIndToSim G Φ A)

Step toward [BHR12b], Proposition 3(1) (open, #5293), not the cited result: at a fixed security parameter, the obv.ind advantage of A is twice the obv.sim advantage of the reduction obvIndToSim against every simulator (the bound (3) in the proof, as an equality).

theorem Cslib.Crypto.Garbling.obvIndAdvantage_le_two_mul_obvSimAdvantage_obvIndToSim {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) [DecidableEq Λ] (hCompat : Φ.Compatible G) (k : ℕ) (S : ObvSimulator Λ) (A : ObvIndAdversary Fn σ) :
obvIndAdvantage G Φ k A ≤ 2 * obvSimAdvantage G Φ k S (obvIndToSim G Φ A)

Step toward [BHR12b], Proposition 3(1) (open, #5293), not the cited result: at a fixed security parameter, the obv.ind advantage of A is at most twice the obv.sim advantage of obvIndToSim A against every simulator (the bound (3) in the proof).

theorem Cslib.Crypto.Garbling.eval_obvSimExperiment_obvSimFromInverter {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) [DecidableEq Λ] (hCompat : Φ.Compatible G) {M : Λ → Fn} (hInv : Φ.IsInverter M) (k : ℕ) (B : ObvSimAdversary Fn σ) (b : Bool) :

Against the simulator built from an inverter M of the side information, the obv.sim game on B is the obv.ind game on the reduction obvSimToInd.

theorem Cslib.Crypto.Garbling.obvSimAdvantage_obvSimFromInverter_eq {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) [DecidableEq Λ] (hCompat : Φ.Compatible G) {M : Λ → Fn} (hInv : Φ.IsInverter M) (k : ℕ) (B : ObvSimAdversary Fn σ) :

Step toward [BHR12b], Proposition 3(2) (open, #5293), not the cited result: at a fixed security parameter, against the simulator built from an inverter M of the side information, the obv.sim advantage of B is the obv.ind advantage of the reduction obvSimToInd (the bound (4) in the proof, as an equality).

theorem Cslib.Crypto.Garbling.obvSimAdvantage_obvSimFromInverter_le {Fn Λ σ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) [DecidableEq Λ] (hCompat : Φ.Compatible G) {M : Λ → Fn} (hInv : Φ.IsInverter M) (k : ℕ) (B : ObvSimAdversary Fn σ) :

Step toward [BHR12b], Proposition 3(2) (open, #5293), not the cited result: at a fixed security parameter, against the simulator built from an inverter M of the side information, the obv.sim advantage of B is at most the obv.ind advantage of obvSimToInd (the bound (4) in the proof).