Documentation

CslibFrontier.Crypto.Primitives.Garbling.HalfGates.PrvSim

Half-gates garbling is simulation private #

The half-gates scheme HalfGates.scheme hash over XOR–AND circuits is prv.sim secure with the side information Φ_circ, which reveals the circuit, for every circular correlation robust hash family hash: CircularCorrelationRobust.prvSim_halfGates. The simulator is HalfGates.simWord, which does not depend on the adversary, so the proof gives more than the definition asks (CircularCorrelationRobust.negligible_prvSimAdvantage_simWord): one PPT simulator whose advantage against every uniform strict PPT adversary is negligible.

The proof bounds the number of gates of the adversary's chosen circuits by a polynomial P k in the parameter, read from the length bound of its choice stage. At every parameter with 2 P k ≤ 2 ^ k, which holds from some parameter on, the advantage is exactly the circular correlation robustness advantage of the certified reduction HalfGates.prvSimReduction (HalfGates.prvSimAdvantage_simWord_eq). That reduction is legal at every level (HalfGates.isTweakUnique_prvSimReduction) and oracle PPT (HalfGates.isOraclePPT_prvSimReduction), so its advantage is negligible by CircularCorrelationRobust.negligible_advantage.

This is this library's theorem under circular correlation robustness in the form of Definition 1 of Zahur, Rosulek and Evans [ZRE15] (§4.1, p. 10), as CircularCorrelationRobust states it. It is not a formalization of Theorem 1 there (p. 12), which proves prv.sim and obv.sim under the weaker Definition 3 (p. 11), circular correlation robustness for naturally derived keys; Definition 3 is not formalized. The scheme differs from Figure 2 (p. 9) in its tweaks, its projective encoding and its label length, as CslibFrontier.Crypto.Primitives.Garbling.HalfGates.Scheme lists. Obliviousness is not treated here.

Main results #

References #

One simulator serves every adversary. For a circular correlation robust hash family hash and every uniform strict PPT prv.sim adversary B, the prv.sim advantage of B against the simulator simWord hash for half-gates garbling with the side information Φ_circ is negligible.

Half-gates garbling is prv.sim secure with the side information Φ_circ, for every circular correlation robust hash family hash: for every uniform strict PPT adversary there is a PPT simulator, on (1^k, y, f) with XOR–AND circuits encoded by encXorAndCircuit, whose advantage is negligible. The simulator simWord hash is the same for every adversary (CircularCorrelationRobust.negligible_prvSimAdvantage_simWord). The model is the standard model with uniform adversaries and a single Garble query, as in Scheme.PrvSimSecure.

This is this library's theorem under [ZRE15] Definition 1 (§4.1, p. 10), in the form CircularCorrelationRobust states. It is not a formalization of Theorem 1 there (p. 12), which assumes only the weaker Definition 3 (p. 11), circular correlation robustness for naturally derived keys. The scheme also differs from Figure 2 (p. 9) in three ways: slot s of gate g has the tweak 2 g + s modulo 2 ^ k, where Figure 2 takes its indices from NextIndex; the encoding information e is projective, listing both labels of each input; and labels have k + 2 bits, where Figure 2 has k.