

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!


Computer Science and Engineering, UCSD Winter 10 CSE 107: Introduction to Modern Cryptography Instructor: Mihir Bellare Problem Set 2 January 12, 2010
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
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.