


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



U.C. Berkeley — CS276: Cryptography Handout N Luca Trevisan February 3, 2009
Scribed by Manohar Jonnalagedda, posted February 13, 2009
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.
To understand the definition of a pseudorandom function, it’s good to think of it 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 F : { 0 , 1 }k^ × { 0 , 1 }m^ → { 0 , 1 }m^ is a (t, )-secure pseudorandom function if for every oracle algorithm T that has complexity at most t we have
K∈{ 0 , 1 }k
R:{ 0 , 1 }m→{ 0 , 1 }m
Intuitively, this means that an adversary wouldn’t be able to distinguish outputs from a purely random function and a pseudorandom function (upto a certain additive error). Typical parameters are k = m = 128, in which case security as high as (2^60 , 2 −^40 ) is conjectured to be possible.
As usual, it is possible to give an asymptotic definition, in which (k) is required to be negligible, t(k) is allowed to be any polynomial, and F is required to be computable in polynomial time.
Suppose F : { 0 , 1 }k^ × { 0 , 1 }m^ → { 0 , 1 }m^ is a pseudorandom function. We define the following encryption scheme.
This construction achieves CPA security.
Theorem 2 Suppose F is a (t, ) secure pseudorandom function. Then the above scheme is ( (^) O(tm) , 2 + t · 2 −m)-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 per- form our analysis accordingly. Then extend the analysis from the pseudorandom case to the truly random case.
Let us therefore consider a modified scheme (Enc, Dec), where instead of performing FK (r) ⊕ M , we do R(r) ⊕ M , where R : { 0 , 1 }m^ → { 0 , 1 }m^ is a truly random function. We need to look at how secure this scheme is. In fact, we will actually prove that
Lemma 3 (Enc, Dec) is (t, 2 tm )−CPA secure.
Proof:
In the computation T Enc(Enc(r, C)) of algorithm T given oracle Enc and input the ciphertext (r, C), let us define REPEAT to be the event where T gets the messages (r 1 , C 1 ),... , (rt, Ct) from the oracle, such that r equals one of the ri.
Then we have
P[T^ Enc(Enc(M^ )) = 1]^ =^ P[T^ Enc(Enc(M^ )) = 1^ ∧^ REP EAT^ ]
similarly,
P[T^ Enc(Enc(M^ ′)) = 1]^ =^ P[T^ Enc(Enc(K, M^ ′)) = 1^ ∧^ REP EAT^ ]
Note that if T ′^ is given the oracle FK , then the computation T ′FK^ is exactly the same as the computation T Enc(Enc(M )), and if T ′^ is given the oracle R, where R is a
random function, then the computation T Enc(Enc(M )).
Thus, we have
K∈{ 0 , 1 }k
K
[T Enc(K,·)(Enc(K, M )) = 1] (2)
R:{ 0 , 1 }m→{ 0 , 1 }m
R
[T Enc(·)(Enc(M )) = 1] (3)
which means that
∣ ∣ ∣ ∣ (^) K∈{P 0 , 1 }k^ [T^
R:{ 0 , 1 }m→{ 0 , 1 }m
The complexity of T ′^ is at most the complexity of T times O(m) (the time needed to translate between oracle queries of T and oracle queries of T ′), and so if T has complexity t/O(m) then T ′^ has complexity ≤ t. This means that (4) contradicts the assumption that F is (t, )−secure.