The simulator of Free-XOR garbling #
The privacy simulator FreeXOR.simulate of CslibFrontier.Crypto.Primitives.Garbling.FreeXOR,
written on words, for FreeXOR.scheme hash with the side information phiXor, which reveals the
circuit topology and which gates compute XOR while hiding the truth tables of all non-XOR gates.
The simulator simWord hash k y t sees the parameter k, the output y and t : XorTopology
((topo, free)). It samples one (k + 2)-bit label for each of the n + q wires and four filler
labels for each non-XOR gate (nonXorRank), propagates active labels through the XOR gates, writes
the garbled function with the active row of each non-XOR gate holding the gate's label masked under
the hash of its arguments' active labels and the remaining three rows filled from the coins, lists
the input labels in X, and sets d so that the output active labels decode to y.
The simulator's output law is the typed simulator's (eval_simWord), every view it writes for a
valid circuit and an m-bit output decodes to that output (decodeWord_evalWord_simViewWord),
and it is PPT whenever hash is computed in polynomial time (isPPTOn_simWord).
Main definitions #
Cslib.Crypto.Garbling.FreeXOR.viewWord: the words(F, X, d)of a typed Free-XOR view.Cslib.Crypto.Garbling.FreeXOR.simViewWord,Cslib.Crypto.Garbling.FreeXOR.simWord: the simulated view on given coins, and the simulator.
Main results #
Cslib.Crypto.Garbling.FreeXOR.eval_simWord: the simulator samples the words of the typed simulator's view.Cslib.Crypto.Garbling.FreeXOR.decodeWord_evalWord_simViewWord: simulated views decode to the output.Cslib.Crypto.Garbling.FreeXOR.isPPTOn_simWord: the simulator is PPT.
The simulated view #
The number of coins of the simulator at parameter k for t: one label for each of the
n + q wires, then four filler labels for each non-XOR gate.
The simulator's coins #
The simulated view is the typed simulator's #
The simulated propagated words after all q gates match the typed propagated base labels.
The simulator samples the typed simulator's view.
Simulated views decode to the output.
Efficiency #
simPropWords is computed in polynomial time for any polynomial-time topology satisfying the
circuit ordering bounds.
The number of non-XOR gates in the first g gates is computed in polynomial time.
Library infrastructure (no cited result): polynomial-time gate-row prefixing shared between the Free-XOR simulator and CCR reduction.
The simulator is PPT whenever the hash family is computed in polynomial time.