Provable security notes / II

Games, advantage, and concrete bounds

The language of provable security begins with experiments and with the difference between baseline guessing and real adversarial success.

A game-based security definition specifies an experiment and a bound that every adversary in the stated computational class must satisfy. The challenger samples keys and hidden coins, gives the adversary a controlled interface, and declares a winning condition. In distinguishing games, advantage measures the deviation from random guessing; in inversion and forgery games, it is usually the success probability itself.

The security parameter \(\lambda\) indexes a family of schemes. It may control key size, modulus size, group order, hash output length, or lattice dimension. Asymptotic security asks what happens as \(\lambda\) grows. Concrete security asks what the actual bound says at deployed parameter sizes.

Challenger and adversary format

A security game is an interactive experiment between a Challenger \(\mathcal C\) and an Adversary \(\mathcal A\). The Challenger defines the world; the Adversary tries to distinguish, invert, forge, or otherwise violate the target property.

Generic game transcript

  1. \(\mathcal C\) samples hidden data: keys, a challenge bit, random coins, or a hard-problem instance.
  2. \(\mathcal C\) gives public information to \(\mathcal A\), such as a public key, domain parameters, or oracle access.
  3. \(\mathcal A\) adaptively makes allowed oracle queries. The game must state exactly which queries are allowed and which are forbidden.
  4. \(\mathcal C\) answers according to the experiment, maintaining any required state such as oracle tables, previous messages, or previous ciphertexts.
  5. \(\mathcal A\) outputs a final value: a bit, a plaintext, a preimage, a ciphertext relation, or a forgery.
  6. The game outputs \(1\) if the win condition is satisfied and \(0\) otherwise.

The advantage is computed over all randomness of \(\mathcal C\), all randomness of \(\mathcal A\), and any random-oracle or sampling tables used in the experiment.

A proof bounds the probability of an event in this experiment. Throughout the series, the transcript starts at \(\mathsf T_0=()\) and records every oracle query and reply in order, including repetitions. The notation \(\mathsf T\,\|\,((q,a))\) appends one query-reply pair. Oracle names are included when several interfaces are available. The diagrams display representative calls; after each reply, the adversary resumes with its updated internal state and transcript.

Challenger \(\mathcal C\)
Adversary \(\mathcal A\)
\(\mathsf{st}_{\mathcal C}\leftarrow\mathsf{Setup}(1^\lambda;r_{\mathcal C})\)
\((\mathsf{pp},\mathcal O)\)
\(\mathsf{st}_{\mathcal A,0}\leftarrow\mathcal A(\mathsf{pp};r_{\mathcal A})\)
\(q_i\leftarrow\mathcal A^{\mathcal O}(\mathsf{st}_{\mathcal A,i-1},\mathsf T_{i-1})\)
\(q_i\)
\(a_i\leftarrow\mathcal O_{\mathsf{st}_{\mathcal C}}(q_i)\)
\(\mathsf T_i:=\mathsf T_{i-1}\,\|\,((q_i,a_i))\)
\(a_i\)
\(w\leftarrow\mathcal A^{\mathcal O}(\mathsf{st}_{\mathcal A,q},\mathsf T_q)\)
\(w\)
\(\mathsf{Game}^{\mathcal A}(1^\lambda):=\mathbf 1[\mathsf{Win}(\mathsf{st}_{\mathcal C},\mathsf T_q,w)]\)

The security theorem quantifies over adversary algorithms that use the stated interface and obey its resource bounds.

Advantage

For a distinguishing experiment with hidden bit \(b\leftarrow\{0,1\}\), a common advantage convention is

\[\operatorname{Adv}_{A}=\left|\Pr[b'=b]-\frac12\right|.\]

Some texts multiply this quantity by two, giving an advantage between \(0\) and \(1\) instead of between \(0\) and \(1/2\). Both conventions express the same security notion, but the factor must be carried through every concrete bound.

Tag guessing

Suppose each verification attempt guesses an independent, hidden, uniform \(t\)-bit tag. Each attempt succeeds with probability \(2^{-t}\), so the union bound gives

\[\Pr[\mathsf{forge}]\le q2^{-t}.\]

For \(t=128\) and \(q=2^{40}\), this is at most \(2^{-88}\). Tag length alone does not establish this bound for an arbitrary MAC: its proof must also bound any advantage obtained from correlations or observed tags.

Negligibility

A nonnegative function \(\mu(\lambda)\) is negligible if for every constant \(c>0\) there exists \(\lambda_0\) such that

\[\mu(\lambda)<\lambda^{-c}\]

for all \(\lambda>\lambda_0\). Multiplying a negligible function by a polynomial preserves negligibility. Consequently, if polynomially many bad events each have probability bounded by the same negligible function, the union bound gives a negligible probability for their union. The common bound makes the conclusion uniform over the events.

Asymptotic security requires that, for every probabilistic polynomial-time adversary \(A\), there exists a negligible function \(\mu_A\) bounding its advantage as \(\lambda\) grows. The negligible bound may depend on the adversary. Concrete analysis gives a bound uniform over adversaries within specified running-time and query budgets. A factor \(q_H\) in a reduction, for example, multiplies the underlying success bound by the permitted number of hash queries.

Birthday terms

Collision probabilities show how query counts affect a bound. If \(q\le N\) values are sampled independently and uniformly from a set of size \(N=2^n\), then

\[\Pr[\mathsf{collision}] =1-\prod_{i=0}^{q-1}\left(1-\frac{i}{N}\right) \le \frac{q(q-1)}{2N}.\]

When \(q(q-1)/N\) is small, the probability is approximately \(q(q-1)/(2N)\). This is the birthday term.

Block size is not key size

A block-cipher mode with 128-bit blocks can have birthday terms of the form \(q(q-1)/2^{129}\), often coarsened to a constant-factor \(q^2/2^{128}\) estimate. At \(q=2^{48}\) blocks, the sharper birthday term is near \(2^{-33}\). This does not mean the key has been brute-forced. It means the proof has a block-collision event whose probability is already visible.

Reading a bound

A concrete theorem such as

\[\operatorname{Adv}^{\mathsf{scheme}}_A \le 2\,\operatorname{Adv}^{\mathsf{prf}}_B +\frac{q^2}{2^n} +q_v2^{-t}\]

separates three contributions: a PRF distinguishing term, a collision bound, and a tag-guessing bound. Here \(q\) counts the samples involved in the collision event, \(n\) is their bit length, and \(q_v\) counts verification attempts on \(t\)-bit tags. The factor \(2\) converts PRF success bias to a difference between game probabilities. Parameter selection bounds all three contributions at the reduction’s stated running time and query budgets.