homework 2

# Introduction to Modern Cryptography: Principles and Protocols (Chapman & Hall/CRC Cryptography and Network Security Series)

• Homework Help
• davidvictor
• 2

This preview shows pages 1–2. Sign up to view the full content.

ICS 201: Cryptography and Communication Security 10/22/2007 Homework 2 Due Monday, Oct 29, in class Problem 1 and 2 Do exercises 3.2 and 3.4. Problem 3 Consider a stateful encryption scheme, e.g. a stream cipher. Here both the encryption and the decyrption algorithms take a state p as an additional input. The scheme also requires a state-update procedure, p Update ( p, m ) for the encryptor (and a similar procedure for the decryptor). Let’s assume that the initial state p is set to 0. Consider a Chosen Plaintext Attack on a stateful encryption algorithm, with the attacker algorithm denoted A , running on input 1 n : 1. Key k is chosen by the key generation procedure on 1 n . 2. Let p 1 = 0 and i = 1. The following loop is repeated as long as A wants: A makes any query m i to the encryption algorithm, which returns c i = Enc k ( m ; p i ), i.e. the encryption of m i under k given state p i . The encryptor’s state is updated, p i +1 Update ( p i , m i ), and we increase the i counter, i i + 1. 3. A outputs two messages m (0) , m (1) of equal length (we call these challenge messages ), bit b is chosen at random, and adversary is given c = Enc k ( m ( b ) ; p i ). The encryptor’s state is updated, p i +1 Update ( p i , m ( b ) ).

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Fall '07
• Jarecki
• Cryptography, Encryption, Encryption algorithm, stateful encryption

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern