Per-instance CCR reduction step for the garbled binary-to-one-hot conversion #
This file proves the exact per-instance concrete circular correlation robustness (CCR) reduction
identity behind obliviousness of the binary-to-one-hot conversion bin-to-hot of Heath
[Hea24] (§4.1, p. 14), used for one-hot garbling in logrow [HKN24].
Asymptotic obliviousness in the sense of [BHR12b] or [HKN24]
Theorem 3 is not proved here (#5293): the size n, index x, hash H, tweak map tw and
distinguisher D are fixed, no CCR assumption is applied, no PPT efficiency witness is proved for
reduction, and the gadget hashes all 2 ^ (n + 1) positions outside a full logrow scheme
family.
The evaluator of bin-to-hot sees a OneHotView: one label on each of the n + 1 input wires
and the n ciphertexts. Its index x is public. The simulator simulate samples all of these
uniformly, from n alone. A simulator that sees neither the input nor an output corresponds to
obliviousness in the sense of Bellare, Hoang and Rogaway [BHR12b], the notion
of [HKN24], Theorem 3, whose proof simulates the one-hot rows (n here, the
paper's n - 1) by uniform strings and refers to [HK21] for this. The argument of
[HK21] is for its own GGM-tree construction, and [Hea24] obtains obliviousness
from its general switch-system theorem (Theorem 4). The reduction below is original to this file:
an exact finite reduction from the single-ciphertext construction to the tweaked circular
correlation robustness game.
The reduction targets circular correlation robustness [CKKZ12], in the tweaked
form of [HKN24], Definition 1, which follows [ZRE15] (see also
[GKWY20] on tweakable variants). It is the instance Cslib.Crypto.Garbling.CCR with
both offsets δ k: for an offset Δ drawn from a key, the oracle CCR.oracle H Δ Δ answers
(X, τ, b) with H (X + Δ) τ + bitOffset Δ b; Definition 1 draws Δ with its least significant
bit fixed to one, which a suitable key map δ expresses. The per-instance concrete reduction
identity advantage_realGame_simGame_eq (a step, not an obliviousness theorem) states that for
every distinguisher D, the advantage between the real view and the simulated view equals the
circular correlation robustness advantage CCR.advantage H δ δ of an explicit reduction
reduction H tw n x D. It needs only that different doubling steps use different tweaks.
The reduction samples the input labels uniformly and evaluates the gadget step by step. At step
t it needs the hash of the zero-label at the hot position, which is its own label there plus
Δ, so it makes one query, at its label, at the tweak of the hot position and the new input bit.
With the keyed oracle the answer is that hash plus the new bit's offset, which gives the
ciphertext exactly (realGame_reduction). With a uniformly random function every query is at a
fresh tweak (isTweakUnique_reduction), so CCR.idealFreshGame_eq_prfIdealGame_of_isTweakUnique
replaces the random function by fresh uniform answers per query, making every ciphertext uniform
given what came before (idealGame_reduction).
The reduction makes n queries (isQueryBounded_reduction) at pairwise distinct tweaks
(isTweakUnique_reduction). In particular it never asks the same (X, τ) with both bits, which
Definition 1 forbids as illegal: against such a query pair the keyed oracle is trivially
distinguishable, so the identity is useful for the reductions of this file and not for arbitrary
adversaries of CCR.advantage. No assumption is applied and nothing is bounded: the size, index,
hash, tweaks and distinguisher are fixed, running time is not tracked, and asymptotic
obliviousness, privacy and authenticity of the full logrow gate are not formalized here (#5293).
Main definitions #
Cslib.Crypto.Garbling.BinaryToOneHot.OneHotView: what the evaluator sees.Cslib.Crypto.Garbling.BinaryToOneHot.simulate: the simulator.Cslib.Crypto.Garbling.BinaryToOneHot.realGame,.simGame: the obliviousness experiments.Cslib.Crypto.Garbling.BinaryToOneHot.reduction: the circular correlation robustness adversary.
Main results #
Cslib.Crypto.Garbling.BinaryToOneHot.isQueryBounded_reduction: one query per step.Cslib.Crypto.Garbling.BinaryToOneHot.isTweakUnique_reduction: at most one query per tweak when different steps use different tweaks (CCR.IsTweakUnique).Cslib.Crypto.Garbling.BinaryToOneHot.realGame_reduction: the keyed oracle gives the real view.Cslib.Crypto.Garbling.BinaryToOneHot.idealGame_reduction: a random function gives the simulated view.Cslib.Crypto.Garbling.BinaryToOneHot.advantage_realGame_simGame_eq: the per-instance concrete reduction identity behind obliviousness (a step, not an asymptotic obliviousness theorem; #5293).
References #
- D. Heath, Efficient Arithmetic in Garbled Circuits
- D. Heath, V. Kolesnikov, One Hot Garbling
- D. Heath, V. Kolesnikov, L. K. L. Ng, Garbled Circuit Lookup Tables with Logarithmic Number of Ciphertexts
- S. G. Choi, J. Katz, R. Kumaresan, H.-S. Zhou, On the Security of the "Free-XOR" Technique
- S. Zahur, M. Rosulek, D. Evans, Two Halves Make a Whole: Reducing Data Transfer in Garbled Circuits Using Half Gates
- C. Guo, J. Katz, X. Wang, Y. Yu, Efficient and Secure Multiparty Computation from Fixed-Key Block Ciphers
- M. Bellare, V. T. Hoang, P. Rogaway, Foundations of Garbled Circuits
What the evaluator of the gadget with n doubling steps sees: one label on each input wire
and the ciphertexts. Its index is public and is not part of the view.
The reduction's evaluation, against oracle O: the ciphertexts of the gadget whose evaluator
holds the labels A, and the evaluator's one-hot labels. Step t asks O once, at the label at
the hot position, the tweak of that position and the new input bit.
The simulator: uniform input labels and uniform ciphertexts. It sees only n.
The real obliviousness experiment: draw a key and uniform input zero-labels, garble, and run D
on the labels of the bits of x and the ciphertexts.
The simulated obliviousness experiment: run D on a simulated view.
The circular correlation robustness adversary: sample the input labels uniformly, compute the
ciphertexts with one oracle query per step, and run D on the labels and ciphertexts.
The reduction makes one oracle query per doubling step.
When different steps use different tweaks, the reduction makes at most one query with each tweak.
Real side: against the keyed oracle, the reduction plays the real experiment.
Ideal side: against a uniformly random function, the reduction plays the simulated experiment, when different doubling steps use different tweaks.
Per-instance concrete reduction identity behind obliviousness of the binary-to-one-hot
gadget: a step, not an asymptotic obliviousness theorem in the sense of
[BHR12b] or [HKN24] Theorem 3 (#5293). The size n, index x,
hash H, tweak map tw and distinguisher D are fixed, no circular correlation robustness
assumption is applied, and running time is not tracked. For every distinguisher D, the advantage
between the real view of the garbled gadget on index x and the simulated view equals the
advantage of reduction H tw n x D against the circular correlation robust oracle, when different
doubling steps use different tweaks. The proof uses that each query is at a fresh tweak; only the
tweaks at the hot positions need to differ across steps, so htw is stronger than necessary.