**Summary**

Having introduced the notion of CPA security in the past lecture, we shall now see constructions that achieve it. Such constructions shall require either *pseudorandom functions* or *pseudorandom permutations*. We shall see later how to construct such objects.

**1. Pseudorandom Functions**

To achieve CPA security, we shall use very powerful primitives called *pseudorandom functions* and *pseudorandom permutations*. We’ll see later how to construct them.

To understand the definition, it’s good to think of a pseudorandom function as a pseudorandom generator whose output is *exponentially long*, and such that each bit of the output is efficiently computable given the seed. The security is against efficient adversaries that are allowed to look at at any subset of the exponentially many output bits.

Definition 1[Pseudorandom Function] A function is a -secure pseudorandom function if for every oracle algorithm that has complexity at most we have

Typical parameters are , in which case security as high as is conjectured to be possible.

As usual, it is possible to give an asymptotic definition, in which is required to be negligible, are allowed to be any polynomial, and is required to be computable in polynomial time.

**2. Encryption Using Pseudorandom Functions**

Suppose is a pseudorandom permutation. We define the following encryption scheme.

- : pick a random , output

This construction achieves CPA security.

Theorem 2Suppose is a secure pseudorandom function. Then the above scheme is -secure against CPA.

The proof of Theorem 2 will introduce another key idea that will often reappear in this course: to first pretend that our pseudorandom object is truly random, and perform our analysis accordingly. Then extend the analysis from the pseudorandom case to the truly random case.