
MATH/CMSC 456 (Washington) Exam 2 May 2, 2006
Use 6 pages for your answers. Do Problem 1 on page 1, Problem 2
on page 2, etc.
1. (20 points = 10+10) (a) Let H(x) = x(mod 123456). Give two properties
of a cryptographic hash function that H(x) does not satisfy. Explicitly show
that these properties fail.
(b) Let P= (1,3) and Q= (−2,0) be points on the elliptic curve y2≡x3+ 8
(mod 11). Evaluate P+Q.
2. (15 points) Peggy claims that she knows an RSA plaintext. That is, n, e, c
are public and Peggy claims that she knows msuch that me≡c(mod n).
She wants to prove this to Victor using a zero knowledge protocol. Peggy and
Victor perform the following steps:
1. Peggy chooses a random integer r1and computes r2≡m·r−1
1(mod n)
(assume that gcd(r1, n) = 1).
2. Peggy computes x1≡re
1(mod n) and x2≡re
2(mod n) and sends
x1, x2to Victor.
3. Victor checks that x1x2≡c(mod n).
Give the remaining steps of the protocol. Victor should be at least 99% con-
vinced that Peggy is not lying.
3. (15 points ) Suppose the output of a hash function His a string of 60 bits.
Explain why Hcannot be strongly collision resistant and give the details of how
you find the collision. You may assume that your computer can store up to 240
bits and do up to 240 computations (that is, not enough to compute or store
260 values of the hash function).
4. (14 points) Nelson produces budget encryption machines for people who
cannot afford a full-scale version of DES. The encryption consists of one round
of a Feistel system. The plaintext has 64 bits and is divided into a left half L
and a right half R. The encryption uses a function f(R) that takes an input of
32 bits and outputs a string of 32 bits. (There is no key: anyone dumb enough
to buy this machine should not be trusted to choose a key.) The left half of
the ciphertext is C0=R. The right half of the ciphertext is C1=L⊕f(R).
Suppose Alice uses one of these machines to encrypt and send a message to
Bob. Bob has an identical machine. How does he use the machine to decrypt
the ciphertext he receives? Show that this decryption method works (do not
quote results about Feistel systems; you are essentially justifying that a special
case works).
5. (18 points = 8+10) Recall the Baby Step – Giant Step method for classical
discrete logs: There is a large prime pand we want to solve β≡αx(mod p)
for x. We know that 0 ≤x < N 2for some N. We make two lists:
1. αj(mod p) for 0 ≤j < N
1