Docsity

Final Exam Problems - Cryptology | CMSC 456, Exams of Cryptography and System Security

Toggle sidebar
bg1
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
pf2

Partial preview of the text

Download Final Exam Problems - Cryptology | CMSC 456 and more Exams Cryptography and System Security in PDF only on Docsity!

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 y^2 ≡ x^3 + 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 m such 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 r 1 and computes r 2 ≡ m · r 1 − 1 (mod n) (assume that gcd(r 1 , n) = 1).
    2. Peggy computes x 1 ≡ r 1 e (mod n) and x 2 ≡ re 2 (mod n) and sends x 1 , x 2 to Victor.
    3. Victor checks that x 1 x 2 ≡ c (mod n).

Give the remaining steps of the protocol. Victor should be at least 99% con- vinced that Peggy is not lying.

  1. (15 points ) Suppose the output of a hash function H is a string of 60 bits. Explain why H cannot be strongly collision resistant and give the details of how you find the collision. You may assume that your computer can store up to 2^40 bits and do up to 2^40 computations (that is, not enough to compute or store 260 values of the hash function).
  2. (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 C 0 = R. The right half of the ciphertext is C 1 = 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).
  3. (18 points = 8+10) Recall the Baby Step – Giant Step method for classical discrete logs: There is a large prime p and we want to solve β ≡ αx^ (mod p) for x. We know that 0 ≤ x < N 2 for some N. We make two lists:
    1. αj^ (mod p) for 0 ≤ j < N
  1. βα−kN^ (mod p) for 0 ≤ k < N.

(a) Explain how this will yield a solution to the discrete log problem and ex- plain why it always works (assume that the numbers are small enough that the computer memory can store the lists). You may use the fact that ev- ery y with 0 ≤ y < N 2 can be written in the form y = y 0 + y 1 N with y 1 , y 2 ∈ { 0 , 1 , 2 ,... , N − 1 }. (b) Give the elliptic curve analog of the procedure. Namely, you have points A and B on an elliptic curve E (mod p) and you want to find an integer x with B = xA. You know that 0 ≤ x < N 2 for some N. You should give the steps needed to find x.

  1. (18 points: 10+8) Recall that an ElGamal signature (m, r, s) is valid if αm^ ≡ βr^ rs^ (mod p) (where (p, α, β) is the public information. (a) Let r ≡ αβ (mod p) and s ≡ −r (mod p − 1). Find a message m such that (m, r, s) is a valid ElGamal signature. (b) Suppose that H is a good cryptographic hash function and that Alice signs H(m) instead of m. In other words, (m, r, s) is valid if αH(m)^ ≡ βr^ rs^ (mod p). Explain what property of H makes it difficult to use the method of part (a) to forge a valid signed message (m, r, s).