PRG ⇒ Compression-function PRF (GGM)
Statement
Let and be polynomially bounded and computable from in polynomial time, with . If is a length-doubling PRG, written with , then
is a compression-function PRF with and : the PRF with key space and range , domain and outputting is pseudorandom — GGM86 for , and by the same tree hybrid for every — standard. The seed length of a PRG is : otherwise for a constant and infinitely many , and the efficient distinguisher that on those tries every seed and accepts iff one maps to its input accepts every , but a uniform string of only with probability at most , so its advantage is at least there — standard. A PRG has , here , so for every . So , and , as a compression-function PRF requires. Any PRG can be stretched to a length-doubling — standard.
Sketch
walks a binary tree of depth from the root , keeping the left or right half of ‘s output on each input bit. For , hybrid answers with , where gives each depth- prefix an independent uniform seed in , sampled lazily on first use; is with , and is a uniformly random function . and differ only in replacing , for the seeds of the at most depth- prefixes the queries reach, by uniform strings in ; this is independent PRG instances, and an inner hybrid that switches them one at a time, in order of first use, costs one PRG distinguishing advantage per switch. A PRG distinguisher that picks the level and the switch uniformly, plants its challenge there and simulates the rest with , runs in the time of plus evaluations of and has for every making queries — standard.
\begin{algorithm}
\algname{Algorithm}
\caption{$f(k, x_1 \cdots x_\ell)$}
\begin{algorithmic}
\State $y \gets k$
\Comment{$G(s) = G_0(s) \,\|\, G_1(s)$ with $|G_0(s)| = |G_1(s)| = |s|$}
\For{$i = 1, \ldots, \ell$}
\State $y \gets G_{x_i}(y)$
\EndFor
\Return $y$
\end{algorithmic}
\end{algorithm}
Notes
- The hybrid does not use : for with , the same is a PRF with key space and range and domain , with the same bound, though not a compression-function PRF — standard.