Documentation

CslibFrontier.Crypto.Primitives.Garbling.Asymptotic

Asymptotic simulation privacy of garbling schemes #

Scheme.PrvSimSecure G Φ encFn encΛ is simulation privacy (prv.sim) in the sense of Bellare, Hoang and Rogaway [BHR12b], §3.4 (p. 9): for every polynomial-time adversary B there is a polynomial-time simulator S whose advantage in the game PrvSim (Fig. 5, p. 8) is negligible in the security parameter. The quantifiers are those of the source, ∀ B ∃ S.

The library's form differs from the source in the following ways, none of which strengthens or weakens the notion beyond the change of formal setting:

Scheme.PrvSimSecureUniversal G Φ encFn encΛ is the stronger form with one simulator for every adversary, ∃ S ∀ B. With arbitrary side information it is novel to this library: no cited source states it. Zahur, Rosulek and Evans [ZRE15] (§2, p. 5) state prv.sim in this order for one side information, the circuit itself ("there must exist a simulator S that takes input (1^k, f, f(x)) and whose output is indistinguishable from (F, X, d) generated the usual way"), so its instance at Φ_circ is theirs; [BHR12b] allow any Φ, with ∀ B ∃ S. Simulation-based security of a protocol built on a garbling scheme needs this order: a protocol's simulator must serve every environment (as in Cslib.Crypto.Protocols.MPC.ProtocolFamily.SemiHonestSecure), and a reduction builds one garbling adversary per environment, so a simulator chosen after the adversary would depend on the environment. Bellare, Hoang and Rogaway's own protocol theorem ([BHR12b], §7.1, Theorem 14, p. 35) is stated with ∀ B ∃ S on both sides instead.

Main definitions #

Main results #

References #

def Cslib.Crypto.Garbling.Scheme.PrvSimSecure {Fn Λ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) (encFn : Fn ↪ List Bool) (encΛ : Λ ↪ List Bool) :

Simulation privacy prv.sim of [BHR12b], §3.4 (p. 9), with side information Φ: for every uniform strict PPT adversary B there is a simulator S, uniform strict PPT on (1^k, y, φ), whose prv.sim advantage against B is negligible. Queries are encoded by encQuery Fn encFn, side information by encΛ; the module documentation lists the differences from the source's formal setting.

def Cslib.Crypto.Garbling.Scheme.PrvSimSecureUniversal {Fn Λ : Type} (G : Scheme Fn) (Φ : SideInfo Fn Λ) (encFn : Fn ↪ List Bool) (encΛ : Λ ↪ List Bool) :

Simulation privacy with one simulator for every adversary, with side information Φ: one simulator S, uniform strict PPT on (1^k, y, φ), whose prv.sim advantage against every uniform strict PPT adversary is negligible, in the game PrvSim of [BHR12b] (Fig. 5, p. 8) and the formal setting of Scheme.PrvSimSecure.

For arbitrary Φ this notion is novel to this library. It generalizes two sources:

  • [ZRE15] (§2, p. 5) state prv.sim with one simulator ("there must exist a simulator S that takes input (1^k, f, f(x)) and whose output is indistinguishable from (F, X, d) generated the usual way") only for the side information Φ_circ, the circuit, so its instance at SideInfo.circ is their notion;
  • [BHR12b], §3.4 (p. 9), allow any Φ, but with a simulator for each adversary.

It implies Scheme.PrvSimSecure, the notion of [BHR12b] (Scheme.PrvSimSecureUniversal.prvSimSecure). It is plausible because the library's schemes meet it under standard assumptions: point-and-permute garbling with the topology Φ_topo from a pseudorandom function (PseudorandomFunction.negligible_prvSimAdvantage_simWord), and half-gates garbling with Φ_circ from circular correlation robustness (CircularCorrelationRobust.negligible_prvSimAdvantage_simWord). It fails for a scheme whose garbled input is its input (CslibFrontierTests.Crypto.GarblingScheme).

theorem Cslib.Crypto.Garbling.Scheme.PrvSimSecureUniversal.prvSimSecure {Fn Λ : Type} {G : Scheme Fn} {Φ : SideInfo Fn Λ} {encFn : Fn ↪ List Bool} {encΛ : Λ ↪ List Bool} (h : G.PrvSimSecureUniversal Φ encFn encΛ) :
G.PrvSimSecure Φ encFn encΛ

One simulator for every adversary gives a simulator for each adversary: Scheme.PrvSimSecureUniversal (∃ S ∀ B) implies Scheme.PrvSimSecure (∀ B ∃ S).