Asymptotic garbling security notions and BHR12 Propositions 2 and 3 #
This module completes the asymptotic security definitions of Bellare, Hoang and Rogaway
[BHR12b], §§3.4–3.7 (ePrint 2012/265, pp. 8–12), in the same uniform strict-PPT
two-stage style (TwoStage.IsPPT) as Cslib.Crypto.Garbling.Scheme.PrvSimSecure in
CslibFrontier.Crypto.Primitives.Garbling.Asymptotic, and lifts the fixed-parameter reductions
and simulators of CslibFrontier.Crypto.Primitives.Garbling.Foundations to the full asymptotic
equivalences of Propositions 2 and 3 ([BHR12b], §§4.2–4.3, pp. 13–15).
For efficient schemes (Scheme.IsEfficient) with polynomial-time computable side information Φ:
prv.simimpliesprv.ind(Scheme.PrvSimSecure.prvIndSecure), viaisPPT_prvIndToSim, with the factor of2absorbed byNegligible.prv.indimplies bothprv.sim(Scheme.PrvIndSecure.prvSimSecure) and the universal-simulator formPrvSimSecureUniversal(Scheme.PrvIndSecure.prvSimSecureUniversal) whenΦhas a polynomial-time(Φ, ev)-inverterM, viaisPPTOn_prvSimFromInverterandisPPT_prvSimToInd.obv.simimpliesobv.ind(Scheme.ObvSimSecure.obvIndSecure), viaisPPT_obvIndToSim.obv.indimplies bothobv.sim(Scheme.ObvIndSecure.obvSimSecure) and the universal-simulator formObvSimSecureUniversal(Scheme.ObvIndSecure.obvSimSecureUniversal) whenΦhas a polynomial-timeΦ-inverterM, viaisPPTOn_obvSimFromInverterandisPPT_obvSimToInd.
Deviations from [BHR12b] match Scheme.PrvSimSecure: adversaries are uniform
strict PPT two-stage programs (TwoStage.IsPPT), advantages are two-world Experiment.advantage
values (the paper's 2 Pr[·] - 1 up to sign) or Experiment.succProbability for aut, and
function/side-information types carry explicit encodings encFn and encΛ.
Scheme.IsEfficient requires polynomial-time length readers f.n, f.m rather than the source's
linear-time ones. Scheme.AutSecure also corresponds to the authenticity definition of
[BS23] (version 0.6, §23.3.5, Definition 23.3, pp. 1026–1027). The obliviousness
definition there (Definition 23.2, same pages) fixes one circuit with two inputs, so it corresponds
to Scheme.ObvIndSecure at the side information SideInfo.circ, not for arbitrary Φ.
The *Universal conclusions (∃ S ∀ B) strengthen Propositions 2 and 3 as stated (∀ B ∃ S):
the source's proofs define the simulator from the inverter M before the adversary B
([BHR12b], pp. 13–15), and the ∀ B ∃ S forms follow from them.
Main definitions #
Cslib.Crypto.Garbling.encIndToSimState: encoding ofIndToSimState.Cslib.Crypto.Garbling.Scheme.PrvIndSecure: asymptoticprv.indsecurity.Cslib.Crypto.Garbling.Scheme.ObvIndSecure: asymptoticobv.indsecurity.Cslib.Crypto.Garbling.Scheme.ObvSimSecure: asymptoticobv.simsecurity (∀ B ∃ S).Cslib.Crypto.Garbling.Scheme.ObvSimSecureUniversal: asymptoticobv.simwith one simulator for every adversary (∃ S ∀ B, novel to this library).Cslib.Crypto.Garbling.Scheme.AutSecure: asymptoticautauthenticity.
Main results #
Cslib.Crypto.Garbling.Scheme.isPPTOn_garble,isPPTOn_prvView,isPPTOn_obvView: uniform strict-PPT execution of efficient garbling schemes and their views.Cslib.Crypto.Garbling.isPPT_prvIndToSim,isPPTOn_prvSimFromInverter,isPPT_prvSimToInd,isPPT_obvIndToSim,isPPTOn_obvSimFromInverter,isPPT_obvSimToInd: strict-PPT efficiency certificates for the BHR12 reductions and simulators.Cslib.Crypto.Garbling.Scheme.PrvSimSecure.prvIndSecure,Cslib.Crypto.Garbling.Scheme.PrvIndSecure.prvSimSecureUniversal,Cslib.Crypto.Garbling.Scheme.PrvIndSecure.prvSimSecure: asymptotic BHR12 Proposition 2.Cslib.Crypto.Garbling.Scheme.ObvSimSecure.obvIndSecure,Cslib.Crypto.Garbling.Scheme.ObvIndSecure.obvSimSecureUniversal,Cslib.Crypto.Garbling.Scheme.ObvIndSecure.obvSimSecure: asymptotic BHR12 Proposition 3.
References #
Encodings #
Asymptotic security definitions #
Indistinguishability privacy prv.ind of [BHR12b], §3.4 (pp. 8–9): for
every uniform strict PPT two-stage adversary A choosing a pair of queries encoded by
encMessagePair (encQuery Fn encFn) and receiving (F, X, d) (or ⊥), its prv.ind advantage is
negligible in the security parameter.
Indistinguishability obliviousness obv.ind of [BHR12b], §3.5 (pp. 9–10):
for every uniform strict PPT two-stage adversary A choosing a pair of queries encoded by
encMessagePair (encQuery Fn encFn) and receiving (F, X) (or ⊥), its obv.ind advantage is
negligible in the security parameter. At the side information SideInfo.circ it is the
obliviousness of [BS23] (version 0.6, §23.3.5, Definition 23.2, pp. 1026–1027), which
fixes one circuit with two inputs.
Simulation obliviousness obv.sim of [BHR12b], §3.5 (pp. 9–10), with
side information Φ: for every uniform strict PPT adversary B there is a simulator S, uniform
strict PPT on (1^k, φ), whose obv.sim advantage against B is negligible.
Simulation obliviousness with one simulator for every adversary, with side information
Φ: one simulator S, uniform strict PPT on (1^k, φ), whose obv.sim advantage against every
uniform strict PPT adversary is negligible, in the game ObvSim of [BHR12b],
§3.5 (pp. 9–10).
For arbitrary Φ this quantifier order (∃ S ∀ B) is novel to this library:
[BHR12b], §3.5, quantifies ∀ B ∃ S, and
Scheme.ObvSimSecureUniversal.obvSimSecure recovers that standard notion. It is plausible because
the standard inverter-based construction obvSimFromInverter yields a single universal simulator
from ObvIndSecure (Scheme.ObvIndSecure.obvSimSecureUniversal).
One simulator for every adversary gives a simulator for each adversary:
Scheme.ObvSimSecureUniversal (∃ S ∀ B) implies Scheme.ObvSimSecure (∀ B ∃ S).
Authenticity aut of [BHR12b], §3.6 (p. 10) and [BS23]
(version 0.6, §23.3.5, Definition 23.3, pp. 1026–1027): for every uniform strict PPT two-stage
adversary A choosing a query encoded by encQuery Fn encFn and receiving (F, X), its
probability of producing a valid forgery differing from Ev(F, X) is negligible in the security
parameter.
Strict-PPT execution of efficient schemes #
Library infrastructure (no cited result): garbling G.garble k f is uniform strict PPT on
(1^k, f) whenever G is efficient.
Library infrastructure (no cited result): sampling the real privacy view G.prvView k q is
uniform strict PPT on (1^k, q) whenever G is efficient.
Library infrastructure (no cited result): sampling the real obliviousness view G.obvView k q
is uniform strict PPT on (1^k, q) whenever G is efficient.
Strict-PPT efficiency witnesses for BHR12 reductions and simulators #
Library infrastructure (no cited result): prvIndToSim preserves uniform strict PPT when
G is efficient and Φ.phi is polynomial-time computable.
Library infrastructure (no cited result): obvIndToSim preserves uniform strict PPT when
G is efficient and Φ.phi is polynomial-time computable.
Library infrastructure (no cited result): the simulator prvSimFromInverter built from a
polynomial-time (Φ, ev)-inverter M is uniform strict PPT on (1^k, y, φ) when G is
efficient.
Library infrastructure (no cited result): prvSimToInd preserves uniform strict PPT when G
is efficient and Φ.phi and M are polynomial-time computable.
Library infrastructure (no cited result): the simulator obvSimFromInverter built from a
polynomial-time Φ-inverter M is uniform strict PPT on (1^k, φ) when G is efficient.
Library infrastructure (no cited result): obvSimToInd preserves uniform strict PPT when G
is efficient and Φ.phi and M are polynomial-time computable.
BHR12 Propositions 2 and 3 #
BHR12 Proposition 2 (prv.sim → prv.ind) ([BHR12b], §4.2, pp. 13–14):
for an efficient garbling scheme G with compatible polynomial-time side information Φ,
simulation privacy PrvSimSecure implies indistinguishability privacy PrvIndSecure. The factor
of 2 in prvIndAdvantage_eq_two_mul_prvSimAdvantage_prvIndToSim is absorbed by Negligible.
BHR12 Proposition 2 (prv.ind → prv.sim with a universal simulator)
([BHR12b], §4.2, pp. 13–14): for an efficient garbling scheme G with compatible
polynomial-time side information Φ and a polynomial-time (Φ, ev)-inverter M, PrvIndSecure
implies PrvSimSecureUniversal, because prvSimFromInverter G k M does not depend on the
adversary. This universal form (∃ S ∀ B) strengthens Proposition 2 as stated (∀ B ∃ S, which is
Scheme.PrvIndSecure.prvSimSecure); the source's proof yields it, since its simulator is defined
from M before the adversary (pp. 13–14).
BHR12 Proposition 2 (prv.ind → prv.sim) ([BHR12b], §4.2, pp. 13–14):
for an efficient garbling scheme G with compatible polynomial-time side information Φ and a
polynomial-time (Φ, ev)-inverter M, indistinguishability privacy PrvIndSecure implies
simulation privacy PrvSimSecure.
BHR12 Proposition 3 (obv.sim → obv.ind) ([BHR12b], §4.3, pp. 14–15):
for an efficient garbling scheme G with compatible polynomial-time side information Φ,
simulation obliviousness ObvSimSecure implies indistinguishability obliviousness
ObvIndSecure.
BHR12 Proposition 3 (obv.ind → obv.sim with a universal simulator)
([BHR12b], §4.3, pp. 14–15): for an efficient garbling scheme G with compatible
polynomial-time side information Φ and a polynomial-time Φ-inverter M, ObvIndSecure implies
ObvSimSecureUniversal, because obvSimFromInverter G k M does not depend on the adversary. This
universal form (∃ S ∀ B) strengthens Proposition 3 as stated (∀ B ∃ S, which is
Scheme.ObvIndSecure.obvSimSecure); the source's proof yields it, since its simulator is defined
from M before the adversary (pp. 14–15).
BHR12 Proposition 3 (obv.ind → obv.sim) ([BHR12b], §4.3, pp. 14–15):
for an efficient garbling scheme G with compatible polynomial-time side information Φ and a
polynomial-time Φ-inverter M, indistinguishability obliviousness ObvIndSecure implies
simulation obliviousness ObvSimSecure.