homework 1

homework 1 - or not, and prove your answer . In each case,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ICS 180: Introduction to Cryptography 4/8/2004 Homework 1 Due Thursday, 4/15/2004, at the beginning of class! 1 Substitution cipher [15 points] Have a look at the substitution cipher in Lecture Notes 1 (section 3.2) and recall the defnition oF perFect secrecy. Prove that the substitution cipher is perFectly secure For the special case oF = 1, and that it it is not perFectly secure iF 2. 2 OTP cipher variations [30 points] We showed that One-Time Pad encryption satisfes perFect secrecy iF M = K = { 0 , 1 } , For any . Consider some variations oF the OTP cipher, where the messages and/or keys are binary strings as beFore but with some strings missing. Consider set S oF three 2-bit strings, S = { 00 , 01 , 10 } . Consider the Following three variations on the OTP cipher. In all these variations the key generation algorithm chooses k ∈ K uniFormly, and encryption and decryption work as in OTP, i.e. Enc ( k,m ) = k m and Dec ( k,c ) = k c . ±or each oF the OTP variations below, say whether the resulting cipher is perFectly secure
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: or not, and prove your answer . In each case, say what the space C oF the ciphertexts is, and note the sizes oF the message space M and key space K . Do these sizes correlate somehow with whether or not the cipher is secure? Can you explain why? 1. Let M = S and K = { , 1 } 2 , i.e. both the message and the key are (2 )-long bit strings 1 However, not every (2 )-bit string can be a valid message. or example, For = 3, we could have m = [00 , 01 , 00] = 000100 but m = [11 , 00 , 11] = 110011 is not in M because 11 n S . 2. Let M = { , 1 } 2 and K = S 3. Let M = K = S . [[Hint: This one is actually not perfectly secure. ..]] 1 We use notation A n to denote a set of n-long sequences [ A 1 , A 2 , ..., A n ] where each A i is an element of A . Using this notation, { , 1 } n denotes a set of all n-long binary strings. H1-1...
View Full Document

This homework help was uploaded on 01/30/2008 for the course ICS 180 taught by Professor Jarecki during the Spring '04 term at UC Irvine.

Ask a homework question - tutors are online