In
cryptography
Cryptography, or cryptology (from grc, , translit=kryptós "hidden, secret"; and ''graphein'', "to write", or ''-logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of adve ...
and the
theory of computation
In theoretical computer science and mathematics, the theory of computation is the branch that deals with what problems can be solved on a model of computation, using an algorithm, how efficiently they can be solved or to what degree (e.g., ...
, the next-bit test
Andrew Chi-Chih Yao
Andrew Chi-Chih Yao (; born December 24, 1946) is a Chinese computer scientist and computational theorist. He is currently a professor and the dean of Institute for Interdisciplinary Information Sciences (IIIS) at Tsinghua University. Yao used ...
Theory and applications of trapdoor functions
In Proceedings of the 23rd IEEE Symposium on Foundations of Computer Science, 1982. is a test against
pseudo-random number generators. We say that a sequence of bits passes the next bit test for at any position
in the sequence, if any attacker who knows the
first bits (but not the seed) cannot predict the
st with reasonable computational power.
Precise statement(s)
Let
be a polynomial, and
be a collection of sets such that
contains
-bit long sequences. Moreover, let
be the
probability distribution
In probability theory and statistics, a probability distribution is the mathematical function that gives the probabilities of occurrence of different possible outcomes for an experiment. It is a mathematical description of a random phenomeno ...
of the strings in
.
We now define the next-bit test in two different ways.
Boolean circuit formulation
A predicting collection
Manuel Blum
Manuel Blum (born 26 April 1938) is a Venezuelan-American computer scientist who received the Turing Award in 1995 "In recognition of his contributions to the foundations of computational complexity theory and its application to cryptography and ...
and Silvio Micali
Silvio Micali (born October 13, 1954) is an Italian computer scientist, professor at the Massachusetts Institute of Technology and the founder of Algorand. Micali's research centers on cryptography and information security.
In 2012, he receive ...
, How to generate cryptographically strong sequences of pseudo-random bits, in SIAM J. COMPUT., Vol. 13, No. 4, November 1984 is a collection of
boolean circuits
In computational complexity theory and circuit complexity, a Boolean circuit is a mathematical model for combinational digital logic circuits. A formal language can be decided by a family of Boolean circuits, one circuit for each possible inp ...
, such that each circuit
has less than
gates and exactly
inputs. Let
be the probability that, on input the
first bits of
, a string randomly selected in
with probability
, the circuit correctly predicts
, i.e. :
Now, we say that
passes the next-bit test if for any predicting collection
, any polynomial
:
Probabilistic Turing machines
We can also define the next-bit test in terms of
probabilistic Turing machines
In theoretical computer science, a probabilistic Turing machine is a non-deterministic Turing machine that chooses between the available transitions at each point according to some probability distribution. As a consequence, a probabilistic Turin ...
, although this definition is somewhat stronger (see
Adleman's theorem
In computational complexity theory, P/poly is a complexity class representing problems that can be solved by small circuits. More precisely, it is the set of formal languages that have polynomial-size circuit families. It can also be defined equiva ...
). Let
be a probabilistic Turing machine, working in polynomial time. Let
be the probability that
predicts the
st bit correctly, i.e.
We say that collection
passes the next-bit test if for all polynomial
, for all but finitely many
, for all