Conventional circuits and side-information inverters #
For circuit garbling schemes in the sense of Bellare, Hoang and Rogaway
[BHR12b], Sections 2.3 and 4.1, function descriptions are well-formed
conventional Boolean circuits f = (n, m, q, A, B, G) with n ≥ 2 inputs, m ≥ 1 outputs,
q ≥ 1 binary gates (m ≤ q), 1-indexed wire numbers 1 to n + q, and gate inputs satisfying
1 ≤ A(g) < B(g) < g and B(g) ≤ n + q - m so that output wires are disjoint from input wires
and are never fed into subsequent gates. Unlike Cslib.Circuits.Circuit, where input and output
arities are type parameters and output wires may alias arbitrary wires, ConventionalCircuit
packages (n, m, q) as data inside a single type ValidCircuit of function descriptions (so an
adversary can query circuits of chosen sizes) and enforces the BHR12 output-wire convention
needed for total side-information inversion.
Three standard side-information functions (SideInfo) on ValidCircuit are defined:
phiTopo, revealing the circuit topology(n, m, q, A, B)(ValidTopo);phiSize, revealing only the shape(n, m, q)(ValidShape);phiCirc, revealing the full circuit.
Following [BHR12b], Section 4.1, Proposition 1, we construct explicit
deterministic (Φ, ev)-inverters mTopo and mSize and Φ-inverters mTopoInv and mSizeInv.
Given a valid topology t and target output y ∈ {0, 1}^m, mTopo leaves the wiring unchanged,
sets every non-output gate to the constant false table and every output gate g to the constant
table returning the corresponding bit of y, and pairs this circuit with 0^n. Given a valid
shape (n, m, q) and y, mSize wires every gate to the first two input wires A(g) = 1,
B(g) = 2 (which is well-formed because 2 ≤ n and m ≤ q for every valid circuit) and applies
mTopo. These are the inverters of the proof of Proposition 1; the proposition says they run in
linear time. CslibFrontier.Crypto.Primitives.Garbling.CircuitInvertersPPT certifies strict
polynomial time on multi-tape Turing machines; the linear-time bound remains open (#5293).
Combining these inverters with the reductions of
CslibFrontier.Crypto.Primitives.Garbling.Foundations gives, at a fixed security parameter, the
advantage relations behind Corollaries 1 and 2 of [BHR12b], Sections 4.2 and 4.3,
for phiTopo, phiSize and phiCirc. They are steps, not the corollaries. Each corollary is an
equality between sets of garbling schemes that are secure against every polynomial-time adversary,
with a polynomial-time simulator for the simulation notions (Section 3.7).
CslibFrontier.Crypto.Primitives.Garbling.FoundationsAsymptotic defines the asymptotic notions and
proves Propositions 2 and 3, certifying the reductions prvIndToSim, prvSimToInd, obvIndToSim
and obvSimToInd and the simulators built from any polynomial-time inverter as strict PPT. The
corollaries stay open (#5293): they also need polynomial-time certificates for the inverters
mTopo, mSize, mTopoInv and mSizeInv and for the side information phiSize, which are not
proved.
Main definitions #
Cslib.Crypto.Garbling.Topo,Cslib.Crypto.Garbling.ConventionalCircuit,Cslib.Crypto.Garbling.ValidCircuit: BHR12 conventional circuits and their topologies.Cslib.Crypto.Garbling.Topo.IsValid,Cslib.Crypto.Garbling.ConventionalCircuit.IsValid: well-formedness, a property of the topology alone.Cslib.Crypto.Garbling.ValidTopo,Cslib.Crypto.Garbling.ValidShape: valid topologies and valid shapes(n, m, q).Cslib.Crypto.Garbling.Scheme.IsCircuitScheme: schemes overValidCircuitwhose length readers and semantics agree with(n, m, q)andConventionalCircuit.evalCirc.Cslib.Crypto.Garbling.phiTopo,Cslib.Crypto.Garbling.phiSize,Cslib.Crypto.Garbling.phiCirc: the topology, size and full-circuit side-information functions.Cslib.Crypto.Garbling.mTopo,Cslib.Crypto.Garbling.mSize,Cslib.Crypto.Garbling.mTopoInv,Cslib.Crypto.Garbling.mSizeInv: the explicit(Φ, ev)- andΦ-inverters of the proof of [BHR12b], Section 4.1, Proposition 1.
Main results #
Cslib.Crypto.Garbling.phiTopo_isEvInverter,Cslib.Crypto.Garbling.phiSize_isEvInverter,Cslib.Crypto.Garbling.phiTopo_isInverter,Cslib.Crypto.Garbling.phiSize_isInverter,Cslib.Crypto.Garbling.phiCirc_isInverter: the inverters of the proof of Proposition 1 of [BHR12b] are correct. Their strict polynomial running time on multi-tape Turing machines is certified inCslibFrontier.Crypto.Primitives.Garbling.CircuitInvertersPPT; Proposition 1's linear-time bound remains open (#5293).
Steps toward Corollaries 1 and 2 #
At a fixed security parameter, for every circuit garbling scheme:
Cslib.Crypto.Garbling.prvIndAdvantage_phiTopo_eq_two_mul_prvSimAdvantage,Cslib.Crypto.Garbling.prvIndAdvantage_phiSize_eq_two_mul_prvSimAdvantage,Cslib.Crypto.Garbling.prvSimAdvantage_phiTopo_mTopo_eq,Cslib.Crypto.Garbling.prvSimAdvantage_phiSize_mSize_eq: the advantage relations behind Corollary 1 of [BHR12b], Section 4.2, the bounds (1) and (2) in the proof of Proposition 2 as equalities.Cslib.Crypto.Garbling.obvIndAdvantage_phiTopo_eq_two_mul_obvSimAdvantage,Cslib.Crypto.Garbling.obvIndAdvantage_phiSize_eq_two_mul_obvSimAdvantage,Cslib.Crypto.Garbling.obvIndAdvantage_phiCirc_eq_two_mul_obvSimAdvantage,Cslib.Crypto.Garbling.obvSimAdvantage_phiTopo_mTopoInv_eq,Cslib.Crypto.Garbling.obvSimAdvantage_phiSize_mSizeInv_eq,Cslib.Crypto.Garbling.obvSimAdvantage_phiCirc_id_eq: the advantage relations behind Corollary 2 of [BHR12b], Section 4.3, the bounds (3) and (4) in the proof of Proposition 3 as equalities.
References #
Conventional circuits and topologies #
Well-formedness of a topology ([BHR12b], Section 2.3): 2 ≤ n, 1 ≤ m,
1 ≤ q, m ≤ q (output wires are disjoint from input wires), and for every gate g = n + 1 + i,
1 ≤ A(g) < B(g) < g and B(g) ≤ n + q - m (output wires are not fed into any gate).
At least two input wires.
At least one output wire.
At least one gate.
The output wires are gate wires, disjoint from the input wires.
Wire numbers start at
1.The first input wire of a gate precedes its second input wire.
A gate reads only earlier wires.
No gate reads an output wire.
Instances For
The topology of a conventional circuit, forgetting the gate truth tables G.
Well-formedness of a conventional circuit ([BHR12b], Section 2.3): its
topology is valid (Topo.IsValid). It does not depend on the gate truth tables.
The values on the first n + s wires (n input wires followed by the first s gate wires)
when evaluating f on x. Inputs shorter than n are padded with false; longer inputs are
truncated to n bits.
Plaintext evaluation ev_circ(f, x) of a conventional circuit ([BHR12b],
Section 2.3): evaluate all q gates and return the values on the final m output wires.
Valid conventional circuits: the function descriptions of circuit garbling.
A garbling scheme G over ValidCircuit is a circuit garbling scheme when its length readers
return (n, m, q) and its semantics ev is ConventionalCircuit.evalCirc
([BHR12b], Section 3.1).
Assemble a conventional circuit from a topology t and gate truth tables G.
Topologies of valid conventional circuits.
Standard side-information functions #
Φ_topo(f) = (n, m, q, A, B): side information revealing the circuit topology
([BHR12b], Section 3.3).
Φ_size(f) = (n, m, q): side information revealing only the input count, output count and
gate count ([BHR12b], Section 3.3).
Φ_circ(f) = f: side information revealing the entire valid circuit
([BHR12b], Section 3.3).
Explicit side-information inverters #
The (Φ_topo, ev)-inverter M_topo ([BHR12b], Section 4.1, Proposition 1):
from a valid topology t and output string y, build the circuit with topology t and constant
gates mTopoGates t y paired with the all-zero input 0^n.
The canonical wiring for a shape (n, m, q) ([BHR12b], Section 4.1,
Proposition 1): every gate takes wires A(g) = 1 and B(g) = 2.
The Φ_topo-inverter built from mTopo by setting y = 0^m.
The Φ_size-inverter built from mSize by setting y = 0^m.
The identity is a Φ_circ-inverter (proof of [BHR12b], Section 4.1,
Proposition 1).
Because mTopoGates t y ignores gate wire inputs, (ofTopo t (mTopoGates t y)).evalCirc x = y
for every t.n-bit input x whenever t.m ≤ t.q and y.length = t.m.
mTopo is a (Φ_topo, ev)-inverter for every circuit garbling scheme (proof of
[BHR12b], Section 4.1, Proposition 1). Strict polynomial running time is certified
in CircuitInvertersPPT; Proposition 1's linear-time bound remains open (#5293).
mSize is a (Φ_size, ev)-inverter for every circuit garbling scheme (proof of
[BHR12b], Section 4.1, Proposition 1). Strict polynomial running time is certified
in CircuitInvertersPPT; Proposition 1's linear-time bound remains open (#5293).
Indistinguishability and simulation advantages for circuit side information #
Step toward Corollary 1 of [BHR12b], Section 4.2 (open, #5293), not the cited
result (Φ_topo, simulation to indistinguishability): at a fixed security parameter, for any
circuit garbling scheme, the prv.ind advantage under phiTopo is twice the prv.sim advantage of
prvIndToSim against any simulator. No running-time bound for prvIndToSim is proved.
Step toward Corollary 1 of [BHR12b], Section 4.2 (open, #5293), not the cited
result (Φ_topo, indistinguishability to simulation): at a fixed security parameter, for any
circuit garbling scheme, the prv.sim advantage against the mTopo inverter simulator equals the
prv.ind advantage of prvSimToInd. No running-time bound for the simulator or for prvSimToInd
is proved.
Step toward Corollary 1 of [BHR12b], Section 4.2 (open, #5293), not the cited
result (Φ_size, simulation to indistinguishability): at a fixed security parameter, for any
circuit garbling scheme, the prv.ind advantage under phiSize is twice the prv.sim advantage of
prvIndToSim against any simulator. No running-time bound for prvIndToSim is proved.
Step toward Corollary 1 of [BHR12b], Section 4.2 (open, #5293), not the cited
result (Φ_size, indistinguishability to simulation): at a fixed security parameter, for any
circuit garbling scheme, the prv.sim advantage against the mSize inverter simulator equals the
prv.ind advantage of prvSimToInd. No running-time bound for the simulator or for prvSimToInd
is proved.
Step toward Corollary 2 of [BHR12b], Section 4.3 (open, #5293), not the cited
result (Φ_topo, simulation to indistinguishability): at a fixed security parameter, for any
circuit garbling scheme, the obv.ind advantage under phiTopo is twice the obv.sim advantage of
obvIndToSim against any simulator. No running-time bound for obvIndToSim is proved.
Step toward Corollary 2 of [BHR12b], Section 4.3 (open, #5293), not the cited
result (Φ_topo, indistinguishability to simulation): at a fixed security parameter, for any
circuit garbling scheme, the obv.sim advantage against the mTopoInv inverter simulator equals
the obv.ind advantage of obvSimToInd. No running-time bound for the simulator or for
obvSimToInd is proved.
Step toward Corollary 2 of [BHR12b], Section 4.3 (open, #5293), not the cited
result (Φ_size, simulation to indistinguishability): at a fixed security parameter, for any
circuit garbling scheme, the obv.ind advantage under phiSize is twice the obv.sim advantage of
obvIndToSim against any simulator. No running-time bound for obvIndToSim is proved.
Step toward Corollary 2 of [BHR12b], Section 4.3 (open, #5293), not the cited
result (Φ_size, indistinguishability to simulation): at a fixed security parameter, for any
circuit garbling scheme, the obv.sim advantage against the mSizeInv inverter simulator equals
the obv.ind advantage of obvSimToInd. No running-time bound for the simulator or for
obvSimToInd is proved.
Step toward Corollary 2 of [BHR12b], Section 4.3 (open, #5293), not the cited
result (Φ_circ, simulation to indistinguishability): at a fixed security parameter, for any
circuit garbling scheme, the obv.ind advantage under phiCirc is twice the obv.sim advantage of
obvIndToSim against any simulator. No running-time bound for obvIndToSim is proved.
Step toward Corollary 2 of [BHR12b], Section 4.3 (open, #5293), not the cited
result (Φ_circ, indistinguishability to simulation): at a fixed security parameter, for any
circuit garbling scheme, the obv.sim advantage against the identity inverter simulator equals the
obv.ind advantage of obvSimToInd. No running-time bound for the simulator or for obvSimToInd
is proved.