This exam is to be completed using only scratch paper
and pencil or pen (no calculators, books, or notes). The time
for the exam is 120 minutes. Please note that these questions
are in English, and your answers should also be in English.
Problem 1 (5 points).
Let ek: P -> C be
the encryption function for a block cipher. Describe how such
an encryption function can be used in Cipher Block Chaining mode
(CBC).
a) Derive the decryption function dk(y1, y2). Are all keys possible?
b) Describe how to carry out a chosen plaintext attack on this cipher to recover the key.
a) Calculate the entropy
of the random variable P.
b) Let the same P denote a plaintext distribution, and define an encryption system with K = {1,2}, C = {0,1,2}, and ek(x) = x + k (mod 3). Calculate the key equivocation H(K | C), assuming equally likely keys.
C = Zn, K = Zn , and L = Zn. Let k in K be the key, and let x1, x2, x3, ... denote the sequence of plaintext from the message. Define the keystream sequence by
z1 = k,
zi = kzi-1 + xi-1 (mod n), if i > 1.
Define the encryption function by ek(xi)
= xi + zi mod n.
a) Describe how to carry out a chosen plaintext attack against this encryption system.
b) If a ciphertext letter ci is garbled in transmission, what happens to the message that is received?
a) State the definition of the order of a modulo n.
b) What is the order of 2 modulo 33 ?
a) State the definition of a strongly collision-free hash function f: A -> B.
b) State the definition of a weakly collision-free hash function f: A -> B
c) If a hash function f is not weakly collision free, and a signature scheme is used to sign a message m by signing f(m) instead, what kind of attack can be mounted against the scheme?
d) Let p be a large prime for which 2 is a primitive root modulo p. Define a hash function f: Z -> Zp by f(x) = x + 2x (mod p). Is this function weakly collision free? Is it strongly collision free? Why or why not?
a) Describe the ElGamal encryption scheme.
b) State the definition of the perfect secrecy property for an encryption system.
c) Does the ElGamal encryption scheme have the
perfect secrecy property?
a) Find Bob's private key a.
b) If the ciphertext produced using Bob's key is 3, what is the corresponding plaintext?
c) What message has 4 as a signature using Bob's key in the RSA digital signature scheme ?
a) The one-time pad is not vulnerable to a chosen plaintext attack.
b) CBC mode of DES is generally safer than Electronic codebook mode. c) When a message is signed twice using the same key under the ElGamal signature scheme, the two signatures will be the same.