Predicting one of several masked channels from a decoder #
Let E t : Z t → Bool, for t < T, be T channels on finite sets. Suppose a decoder D recovers
a bit b from the T pairs (z t, E t (z t) + b) for every choice of the inputs z and of b.
The same b masks every channel, so b is XOR-shared across them. Then D predicts one of the
channels. For some t, some fixed pairs base at the other positions and some fixed trial bit
y₀, the guess y₀ + D (update base t (z, y₀)) equals E t z for at least a
1 / 2 + 1 / (2 T) fraction of the inputs z ∈ Z t (exists_card_add_decode_update_eq).
The proof is Yao's hybrid argument [Yao82] with the predictor's random choices fixed, done by counting. It follows the telescoping proof of the next-bit theorem in Boneh and Shoup, Section 3.5.
- Hybrid
ishowsDthe pairs(z t, E t (z t) + b)fort < iand(z t, u t)fort ≥ i, where the bitsu tare uniform. - In hybrid
T,Dreturnsbon every sample. - In hybrid
0, the masks are uniform, soD's input does not depend onb. This is the privacy of the XOR sharing, and it meansDreturnsbon exactly half of the samples. - Some adjacent pair of hybrids therefore differs by at least
1 / (2 T). The predictor for channeliinserts its trial bitu iat positioniand returnsu i + D (…), which is correct exactly as often as1 / 2plus that difference. - Averaging over the other coordinates fixes them as
base.
Cslib.Crypto.PRG.Generator.exists_half_add_div_le_predictionExperiment proves the same telescoping
for the output bits of a generator, but it does not apply here. Its predictor guesses an output bit
from the bits before it, with no public side input and no shared secret. Encoding the inputs
z t and the secret b as generator output would count the bits of every z t among the hybrid
positions, which weakens 1 / (2 T) to roughly 1 / (2 (T + ∑ t, log₂ #(Z t))).
Main results #
Cslib.exists_card_add_decode_update_eq: a decoder for an XOR-shared bit predicts one of the channels on a1 / 2 + 1 / (2 T)fraction of its inputs.
References #
Predicting a masked channel. Let D recover b from the pairs (z t, E t (z t) + b),
t < T, for every choice of the inputs z and the bit b. Then for some channel t, some pairs
base and some trial bit y₀, the guess y₀ + D (update base t (z, y₀)) equals E t z for at
least a 1 / 2 + 1 / (2 T) fraction of the inputs z ∈ Z t. There is a channel: with none, D
would return both bits on its one input.