PRP on bit strings ⇒ Length-preserving PRF

Fully-black-box reduction · standard model · via Switching Lemma · BKR00 · security loss: for queries (birthday bound)

Statement

Let be a PRP on bit strings, with domain for a polynomially bounded computable from in polynomial time. Then , with the same , is a length-preserving PRF with domain and range : for every making at most queries,

by the triangle inequality and the Switching Lemma on — standard. For every family of permutations on it is stated as for the maximal advantages over adversaries making queries in time — BKR00, Proposition 2.5. An efficient makes queries, and is negligible because , so is pseudorandom in — standard.

Sketch

Sampled lazily, a uniformly random function on answers distinct queries as a uniformly random permutation does until two of its answers collide, which happens with probability at most ; so a PRF distinguisher is a PRP distinguisher up to that additive term.

Notes

  • The term is tight up to a constant: the distinguisher that queries the first strings of in lexicographic order and outputs iff the answers are distinct has advantage at least against every family of permutations on , for — BKR00, Proposition 2.4.
  • The proof of Proposition 2.5 takes the queries distinct and conditions on the random function’s answers being distinct; that step is sound for an adversary that always makes exactly distinct queries, to which every adversary can be padded without changing its output (Switching Lemma) — standard.
  • On an arbitrary domain of superpolynomial size the same argument gives a PRF with additive term (PRP ⇒ PRF) — standard. A length-preserving PRF need not be a permutation; three Feistel rounds turn one on into a PRP on bit strings with domain (Length-preserving PRF ⇒ PRP on bit strings) — LR88.