Compression-function PRF ⇒ Length-preserving PRF

Fully-black-box reduction · standard model · folklore · security loss: none

Statement

Let be a compression-function PRF, with and polynomially bounded and computable from in polynomial time, , and sampling . Restricting its domain to the -padded copy of ,

with the same gives a length-preserving PRF with , whose key space, domain and range are all . For every distinguisher , the distinguisher that runs and answers each query with its own oracle on makes as many queries as and has

since is injective, so a uniformly random function composed with it is a uniformly random function — folklore. This is the restriction argument of PRF § Syntax for the embedding .