Pseudorandom generator

A Pseudorandom Generator (PRG) stretches a short, uniformly random seed into a longer string that is computationally indistinguishable from a truly random string of the same length.

Syntax

A PRG is an efficient deterministic function with respect to seed space and output space where (for and this is ):

  • takes a seed and outputs a string

For and , the output length is the stretch of and its additive stretch.

Properties

Pseudorandomness

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{prg}}_{\PRG,\calA}(\secpar)$}
\begin{algorithmic}
\State $s \getsr \calS$; $b \getsr \bits$
\State $r_0 \gets \PRG(s)$; $r_1 \getsr \calR$
\State $b' \gets \calA(1^\secpar, r_b)$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}

A PRG is pseudorandom if for all efficient

is negligible.

A PRG with yields, for every polynomial , a PRG : output the last bits of , re-seed with the first , repeat, and keep the first output bits. A hybrid over the iterations loses a factor of their number — standard. For other and , is a one-way function on , since the argument of PRG ⇒ OWF uses only , and OWF ⇒ PRG then gives a PRG on bit strings — standard.

Next-bit unpredictability

Let output bits.

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{nb}}_{\PRG,\calA}(\secpar)$}
\begin{algorithmic}
\State $s \getsr \calS$; $i \getsr [m]$; $r \gets \PRG(s)$
\State $\beta \gets \calA(1^\secpar, r_1 \cdots r_{i-1})$
\Return $[\beta = r_i]$
\end{algorithmic}
\end{algorithm}

is next-bit unpredictable if for all efficient ,

is negligible. Next-bit unpredictability is equivalent to pseudorandomness: a distinguisher with advantage gives a predictor with advantage by a hybrid argument over the prefixes of followed by uniform bits, and a predictor with advantage gives a distinguisher with advantage — Yao82a, Gol01. The constructions of Blum–Micali and Yao are proved through this characterization, with the bits output in the order that makes each one unpredictable from those before it — BM84, Yao82a.

Security against non-uniform adversaries

Let be a family of polynomial-size circuits, a non-uniform adversary, with playing the pseudorandomness game . is pseudorandom against non-uniform adversaries if for every such family , is negligible. Security against all non-uniform adversaries implies security against all uniform ones (Non-uniform PRG ⇒ PRG) — standard.

Variations

Keyed PRG

A keyed PRG is a pair of efficient algorithms where samples a public key and deterministically maps a seed to , with . This models a PRG whose parameters (seed length, output length) are determined by a key generation algorithm. Security is the game above with , , and , where the adversary receives .

Trapdoor pseudorandom generators

A trapdoor PRG is a tuple of efficient algorithms such that

  • takes a security parameter and outputs a trapdoor ,
  • takes a trapdoor and a key , sampled fresh by the caller on each evaluation, and outputs a value ,
  • takes as input a trapdoor and a value and outputs a bit indicating whether the value was generated pseudorandomly or not.

A trapdoor PRG is pseudorandom if for all efficient , is negligible, where , each query to samples a fresh and returns , and each query to returns a fresh uniform . As an object, a trapdoor PRG denotes a pseudorandom that is -complete and -sound for negligible functions , :

  • -complete: for all
  • -sound: for all

Every zero-bit PRC is a trapdoor PRG whose completeness is robust to noise (Zero-bit PRC ⇒ Trapdoor pseudorandom generators) — folklore; CG24 for the PRC definition.

Hitting-set generators against co-nondeterministic circuits

A co-nondeterministic circuit is given by a circuit , and accepts iff for every . A hitting-set generator against co-nondeterministic circuits is a family , computable in time , such that for every , every co-nondeterministic circuit of size on input bits that accepts at least half of accepts for some seed ; equivalently, every nondeterministic circuit of size that rejects at least half of rejects some — BOV03. With logarithmic seed length all seeds can be enumerated in polynomial time, so such a generator is a derandomization assumption rather than a cryptographic generator — standard. One exists if has a function of nondeterministic circuit complexity — MV99, BOV03.

Other results

Participates in

Builds on Pseudorandom generator

Produces Pseudorandom generator