



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!




CS 120/CSCI E-177: Introduction to Cryptography
Salil Vadhan and Alon Rosen Nov. 14, 2006
Recommended Reading.
public key = encryption key, anyone can encrypt since the public key is published in some public directory secret key = decryption key secret key 7 → public key should be infeasible We can imagine that there exists a public directory containing everyone's public key: pk (^) Alice,pk (^) Bob,... To send a message m to Alice, we get pk (^) Alice from the directory and send Epk (^) Alice (m). The real implementation of the public-key infrastructure requires care. For instance, how can we be sure that we access the real public directory?
The key generation algorithm G is a randomized algorithm that takes a security parameter 1 n^ as input returns a pair (pk , sk ), where pk is the public key and sk is the secret key; we write (pk , sk ) ←R G(1n). The encryption algorithm E is a stateless randomized algorithm that takes the public key pk and a plaintext (aka message) m and outputs a ciphertext c; we write c ←R Epk (m). The decryption algorithm D is a deterministic algorithm that takes the secret key sk and a ciphertext c and returns a plaintext m = Dsk (c).
Associated with the scheme is a plaintext space Pn from which m is allowed to be drawn. The message space is a set, often the set of strings of a given length. We require Dsk (Epk (m)) = m for all m ∈ P and all (pk , sk ) ← G(1n).
Denition 2 (indistinguishability for public-key encryption) Let (G, E, D) be a public- key encryption scheme over P =
n Pn.^ (G, E, D)^ has^ indistinguishable encryptions^ if for every (nonuniform) PPT A, there is a negligible function ε such that for all m 0 , m 1 ∈ Pn such that ‖m 0 ‖ = ‖m 1 ‖,
|Pr [A(1n, pk , Epk (m 0 )) = 1] − Pr [A(1n, pk , Epk (m 1 )) = 1]| ≤ ε(n),
where the probabilities above are taken over (pk , sk ) ←R G(1n), the coin tosses of Epk , and the coin tosses of A.
Proof Sketch: Encryption oracle cannot help adversary, because the adversary can encrypt on its own.
No deterministic public-key encryption scheme can be secure. No public-key encryption scheme can be perfectly (or even statistically) secure.
Denition 4 F = {fk : Dk → Dk}k∈K is a collection of trapdoor permutations if each fk is a permutation and:
Pr
A(1n, K, fK (X)) ∈ f (^) K− 1 (fK (X))
≤ ε(n) ∀n
where the probability is taken over (K, T ) ←R G(1n), X ←R DK , and the coin tosses of A.
(x) = bk(x)bk(fk(x))bk(fk(fk(x))) · · · bk(f (^) k− 1 (x)).f (^) k(x), Gk,(x) ⊕ m
This construction is not more ecient in terms of computation because we still have to evaluate fk for each bit of the message but it is more ecient in terms of communication since the ciphertext is shorter.
Theorem 6 Above public-key encryption scheme is secure if {fk} is a collection of trapdoor per- mutations with hardcore bits {bk}.
Proof Sketch: (K, f (^) K(X), GK,(X)) c ≡ (K, f (^) K(X), GK,(X)). cf. construction of a PRG that stretches by an arbitrary polynomial.
This encryption scheme uses Rabin's functions: p, and q are n-bit primes, such that p ≡ q ≡ 3 mod 4 and N = pq. The public key is pk = N and the secret key is sk = {p, q}. Encryption Epk (m):
− 1 mod N ) where = ‖m |.Decryption: given the factorization of N , how do we compute x from x^2 ` mod N eciently?
Prime p, generator g xed. Alice chooses x ←R Zp− 1 , sends gx^ to Bob. Bob chooses y ←R Zp− 1 , sends gy^ to Alice. Both can compute the DieHellman Key k = gxy.
Can be broken if discrete log problem easy, but seems to require Computational Die Hellman assumption: given p, g, gx, gy, hard to compute gxy^ (with nonnegligible proba- bility). If Alice & Bob want to use gxy^ as a key, actually need Decisional DieHellman assump- tion: (P, G, GX^ , GY^ , GXY^ ) computationally indistinguishable from (P, G, GX^ , GY^ , GZ^ ), where Z is chosen randomly independently form X and Y. (not quite true as stated, should take g to be a random generator of large subgroup of Z∗ p of prime size, e.g. of QRp if p = 2q + 1 for prime q. See KL 8.4.5.) DH Key Exchange insecure against active adversary: person-in-the-middle attack. Properly dening security of key exchange vs. active adversaries very subtle!
Replace interaction in DH Key Exchange with public directory. Secret Key: (p, g, x), Public Key: (p, g, xˆ), where xˆ = gx^ mod p. E(m) (for m ∈ Z∗ p):