Pseudorandom Function and Permutation
Let be all functions mapping to , and .
Then, a random function is chosen uniformly.
Keyed Functions
Let be an efficient, deterministic algorithm, and define , then the first input is called the key.
Then, choose a uniform is equivalent to choosing the function , thus, the algorithm defines a distribution over functions in .
Therefore, , and the number of is at most .
Pseudorandom Functions Definition (PRFs)
The formal definition of pseudorandom functions is:
is a pseudorandom function if , for uniform key , is indistinguishable from a uniform function .
Pseudorandom Permutations (PRPs)
Let , is a permutation if it is a bijection, which means exists.
Let be the set of permutations.
Keyed Permutation
Let be a length-preserving, keyed function, then is a keyed permutation if is a permutation for every , and is efficiently computable.
is a strong pseudorandom permutation if for uniform key , is indistinguishable from a uniform permutation .