Docsity

Problems Set 2 for Epidemiological Methods | SOCA 107, Assignments of Introduction to Sociology

Toggle sidebar
bg1
Computer Science and Engineering, UCSD Winter 10
CSE 107: Introduction to Modern Cryptography Instructor: Mihir Bellare
Problem Set 2 January 12, 2010
Problem Set 2
Due: Wednesday January 20, 2010, in class.
See course information section (on course web page) for instructions and rules on working on
problem sets and turning them in.
Problem 1. [30 points] Let Kby a 56-bit DES key and La 64-bit auxiliary key. For any 64-bit
plaintext Mlet
DESY(KkL, M ) = DES(K, L ⊕M).
This defines a family of functions DESY :{0,1}120 × {0,1}64 → {0,1}64.
(a) [8 points] Show that DESY is a block cipher.
(b) [22 points] Let (M1, C1),(M2, C2) be input-output examples of DESY under a random 120-
bit target key KkL. Present an attack that given (M1, C1),(M2, C2) recovers the target
key using at most 257 computations of DES or DES−1. (As usual, the job is actually only to
recover a key consistent with the input-output examples, but in practice this is typically the
target key.)
Problem 2. [50 points] Let F:{0,1}k× {0,1}l→ {0,1}lbe a family of functions and let r≥1
be an integer. The r-round Feistel cipher associated to Fis the family of functions F(r):{0,1}k×
{0,1}2l→ {0,1}2l, defined as follows for any key K∈ {0,1}kand input x∈ {0,1}2l–
Function F(r)(K, x)
Parse xas L0R0with |L0|=|R0|=l
For i= 1,...,r do
Li←Ri−1;Ri←F(K, Ri−1)⊕Li−1
Return LrRr
1. [20 points] Show that F(1) is not a secure PRF by presenting a practical adversary Asuch
that Advprf
F(1)(A) is close to one.
2. [30 points] Show that F(2) is not a secure PRF by presenting a practical adversary Asuch
that Advprf
F(2)(A) is close to one.
1
pf2

Partial preview of the text

Download Problems Set 2 for Epidemiological Methods | SOCA 107 and more Assignments Introduction to Sociology in PDF only on Docsity!

Computer Science and Engineering, UCSD Winter 10 CSE 107: Introduction to Modern Cryptography Instructor: Mihir Bellare Problem Set 2 January 12, 2010

Problem Set 2

Due: Wednesday January 20, 2010, in class.

See course information section (on course web page) for instructions and rules on working on problem sets and turning them in.

Problem 1. [30 points] Let K by a 56-bit DES key and L a 64-bit auxiliary key. For any 64-bit plaintext M let

DESY(K ‖ L, M ) = DES(K, L ⊕ M ).

This defines a family of functions DESY: { 0 , 1 }^120 × { 0 , 1 }^64 → { 0 , 1 }^64.

(a) [8 points] Show that DESY is a block cipher.

(b) [22 points] Let (M 1 , C 1 ), (M 2 , C 2 ) be input-output examples of DESY under a random 120- bit target key K ‖ L. Present an attack that given (M 1 , C 1 ), (M 2 , C 2 ) recovers the target key using at most 2^57 computations of DES or DES−^1. (As usual, the job is actually only to recover a key consistent with the input-output examples, but in practice this is typically the target key.)

Problem 2. [50 points] Let F : { 0 , 1 }k^ × { 0 , 1 }l^ → { 0 , 1 }l^ be a family of functions and let r ≥ 1 be an integer. The r-round Feistel cipher associated to F is the family of functions F (r): { 0 , 1 }k^ × { 0 , 1 }^2 l^ → { 0 , 1 }^2 l^ , defined as follows for any key K ∈ { 0 , 1 }k^ and input x ∈ { 0 , 1 }^2 l^ –

Function F (r)(K, x) Parse x as L 0 R 0 with |L 0 | = |R 0 | = l For i = 1,... , r do Li ← Ri− 1 ; Ri ← F (K, Ri− 1 ) ⊕ Li− 1 Return LrRr

  1. [20 points] Show that F (1)^ is not a secure PRF by presenting a practical adversary A such that Advprf F (1) (A) is close to one.
  2. [30 points] Show that F (2)^ is not a secure PRF by presenting a practical adversary A such that Advprf F (2) (A) is close to one.

For both (1) and (2) above, say what is the advantage achieved by your adversary. Also say what is its running time and the number of oracle queries it makes.