Free-XOR garbling is efficient #
FreeXOR.scheme hash of CslibFrontier.Crypto.Primitives.Garbling.FreeXOR.Scheme is an efficient
garbling scheme (Scheme.IsEfficient) for valid conventional circuits encoded by encValidCircuit
whenever the hash family hash is computed in polynomial time (FreeXOR.scheme_isEfficient).
En, De and ev reuse projectiveEncode_polyTime, PointPermute.decodeWord_polyTime and
evalCirc_polyTime. The garbler propagates zero labels by a fold over the gates, writes the body of
F with PointPermute.bodyWith, and reads the decoding bits from the zero labels. The evaluator is
a fold over the gates whose state is the labels so far and the position of the next gate's block.
We also define the Free-XOR side information phiXor : SideInfo ValidCircuit XorTopology, which
exposes the circuit topology together with one boolean per gate indicating whether the gate computes
XOR while hiding the truth tables of all non-XOR gates, together with its polynomial-time
projection certificate phiXor_polyTime.
Main definitions #
Cslib.Crypto.Garbling.FreeXOR.XorTopology: topology together with XOR gate flags.Cslib.Crypto.Garbling.FreeXOR.encXorTopology: encoding ofXorTopology.Cslib.Crypto.Garbling.FreeXOR.phiXor: side information revealing topology and XOR gate flags.Cslib.Crypto.Garbling.FreeXOR.xorFlags: XOR gate flags projected from four-bit gate records viaisXorTable.
Main results #
Cslib.Crypto.Garbling.FreeXOR.scheme_isEfficient: Free-XOR garbling is efficient.Cslib.Crypto.Garbling.FreeXOR.phiXor_compatible:phiXoragrees withscheme's length readers.Cslib.Crypto.Garbling.FreeXOR.xorFlags_polyTime:xorFlagsis computed in polynomial time.Cslib.Crypto.Garbling.FreeXOR.phiXor_polyTime:phiXoris computed in polynomial time.
Side information #
The tuple of the fields of encXorTopology.
Encoding of XorTopology via encValidTopo and encBits.
Free-XOR side information Φ_xor(f): reveals f's valid topology and which gates compute XOR,
while hiding the truth tables of all non-XOR gates.
Library infrastructure (no cited result): isXorTable is computed in polynomial time.
Library infrastructure (no cited result): xorFlags is computed in polynomial time.
phiXor runs in polynomial time from encValidCircuit.
Lengths of labels #
Zero-label propagation as a fold #
Evaluator as a fold with bounded growth #
The garbled function from gate data #
Certificates #
The key-only hash on words is computed in polynomial time.
Free-XOR garbling is efficient for every hash family computed in polynomial time
(CircularCorrelationRobust.polyTime supplies hf): the length readers n and m, the number of
coins and the garbler on (1^k, f, r), and En, Ev, De and ev on their encoded arguments,
run in polynomial time, for valid conventional circuits encoded by encValidCircuit.