Switching Lemma

Let be a finite nonempty domain, , and . For any possibly randomized distinguisher making at most adaptive forward queries,

Repeated queries return the same answer; neither experiment provides inverse queries — standard. For the bound is , in which form it is stated, with a game-playing proof, as Lemma 1 of BR06 (TODO: confirm the statement against the final version). The term is the birthday bound on the probability that independent uniform elements of are not all distinct — BKR00, Proposition A.1.

Corollary

For every keyed family of permutations of and every making at most queries, , by the triangle inequality between the real game, the random permutation and the random function (PRP ⇒ PRF) — standard. For every family of permutations on it is stated as , the maximal advantages over adversaries making queries in time — BKR00, Proposition 2.5. The bound is tight up to a constant factor: on , the distinguisher that queries distinct points and outputs iff the answers are distinct has advantage at least against every family of permutations, for — BKR00, Proposition 2.4.

Proof

Couple the lazy-sampled oracles until their answers first differ. On the th distinct input, draw the function’s answer uniformly from . If it is unused, give the permutation the same answer; otherwise give the permutation an independent uniform unused answer and stop coupling. Before divergence the permutation’s answer is uniform among unused values, and divergence on this query has probability . A union bound over at most distinct inputs gives ; repeated inputs add no chance of divergence. Identical transcripts give identical outputs when the adversary’s coins are coupled — standard.

The usual proof instead lets be the event that the random function’s answers are distinct and uses , as in the proof of Proposition 2.5 of BKR00. The identity fails when the number of queries depends on the answers: on , the adversary that outputs if , and otherwise queries and outputs iff , has but — BR06 (TODO: confirm against the final version). It holds for an adversary that always makes exactly distinct queries, since then does not depend on its coins and, given , every sequence of distinct answers is equally likely, as under ; padding any adversary to exactly distinct queries leaves its output unchanged, so the bound stands — standard.

Memory bounded version

A streaming distinguisher with bits of memory reads elements of one at a time, drawn uniformly either with replacement (the answers of on distinct inputs) or without replacement (the answers of on the same inputs). Its advantage is at most

which is tight up to polylogarithmic factors — Din20.

Participates in

Used via Switching Lemma