Generic-group games with linear inputs #
A bound, not stated in the book, for a family of games in the generic group model of
[BS23], Section 16.3. The bound of Theorem 16.3 for discrete logarithm
(Cslib.Crypto.GenericGroup.succProbability_dlogGame_le_choose) is one instance; a bound for
another game of this form is another.
linearGame W A draws a uniform injective labeling L : ZMod q ↪ S and a uniform point
x : ι → ZMod q, gives the adversary the label L 1 and the labels L (x i), and runs it
against the group oracle of L (runLabeled). The adversary outputs a value o : γ and an
element w k of S for each k : κ; it wins when every w k is a label, of v k say, and
W x o v holds. Suppose that for every o and every family of linear forms
F k = ∑ i, a k i X i + b k, the test W x o (F · (x)) holds for at most an ε fraction of the
points x. Then, for prime q, an adversary that makes at most T queries to the group oracle
wins with probability at most C(3T + |ι| + 1 + |κ|, 2) / q + ε (succProbability_linearGame_le).
As in Cslib.Crypto.GenericGroup.dlogGame, the budget is ProbOracleComp.IsQueryBounded: at most
T labeling and group-operation queries on every path, whatever the adversary's private coins.
This is a query bound in an idealized model: it assumes no computational hardness, says nothing about any specific group, and applies to adversaries that are otherwise unbounded.
The proof is the proof of [BS23], Theorem 16.3 (Games 0–2), with linear forms in the
|ι| unknowns X i in place of linear polynomials in one unknown. It reduces to labels in
ZMod q with a uniform permutation as labeling (Cslib.Crypto.GenericGroup.relabel), samples the
permutation lazily, and replaces it by a table on linear forms that is identical until two distinct
forms of the table agree at x. The table ends with at most 3T + |ι| + 1 + |κ| forms: the
generator and the inputs, at most three for each query, and one for each output. Over ZMod q
with q prime, two distinct linear forms agree at a uniform point with probability at most 1 / q
(Cslib.Probability.toOuterMeasure_uniform_linearComb_eq), which gives the first term; this is the
only use of primality. The forms of the outputs in the table do not depend on x, so the
hypothesis on W gives the second term.
Main definitions #
Cslib.Crypto.GenericGroup.linearGame: the game with linear inputs and winning testW.
Main results #
Cslib.Crypto.GenericGroup.succProbability_linearGame_le: the boundC(3T + |ι| + 1 + |κ|, 2) / q + ε.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 16.3, Theorem 16.3 and its proof, pp. 693–695.
A generic-group game with linear inputs. The labeling L and the point x : ι → ZMod q are
uniform; the adversary gets L 1 and the labels L (x i), queries the group oracle of L, and
outputs a value o : γ and elements w k of S. It wins when every w k is a label, of v k
say, and W x o v holds.
Reduction to a uniform permutation as labeling #
Where primality is used #
Tabulating queries #
Keyed tables #
The core bound follows the book's Games 1 and 2. A key (a, b) : (ι → ZMod q) × ZMod q stands
for the linear form ∑ i, a i X i + b, and a table records (key, label) pairs. Two primitive
queries act on a table: fwd K asks for the label of the key K, and inv ℓ for the key of the
label ℓ; a group query is at most three of them (toPrim). The real handler (realStep)
answers as a lazily sampled permutation of values at x. The symbolic handler (symStep) gives
fresh labels to fresh keys and new constants to unknown labels; it looks at x only to raise a
flag when two distinct keys agree at x. The two handlers agree until the flag is raised.
The two handlers #
One step of each handler #
Group queries as primitive queries #
The bound #
Bound for games with linear inputs. For prime q, suppose that for every output value
o and every choice of linear forms F k for the outputs, W holds on at most an ε fraction of
the points. Then an adversary that makes at most T queries to the group oracle on every path wins
the game with linear inputs with probability at most C(3T + |ι| + 1 + |κ|, 2) / q + ε.