Docsity

Cryptology Final Exam Spring 2003: Questions on Cryptographic Techniques and Algorithms - , Exams of Cryptography and System Security

Toggle sidebar
bg1
MATH/CMSC 456 CRYPTOLOGY
FINAL EXAM SPRING 2003
1. (15 points) Describe how you would choose your plaintext for a chosen plaintext
attack on each of the following, and say how would you obtain the key:
(a) Vigen`ere cipher.
(b) Hill cipher (with a 2 ×2 matrix).
(c) Affine cipher.
2. (15 points = 7+8) Suppose your RSA modulus is n= 55 = 5 ×11 and your
encryption exponent is e= 3.
(a) Find the decryption modulus d.
(b) Show that if c≡m3(mod 55) is the ciphertext, then the plaintext is m≡cd
(mod 55). You may assume that gcd(m, 55) = 1. You may not quote the fact that
RSA decryption works. That is what you are showing in this specific case.
3. (14 points = 7+7) (a) Suppose you know that
333352≡6707050932(mod 670726081).
Describe how you can use this information to factor 670726081 (do not actually
factor it).
(b) Consider the sequence starting k1= 1, k2= 0, k3= 1, and defined by the third
order recurrence
kn+3 ≡kn+2 +kn+1 +kn(mod 2).
This sequence can also be given by a second order recurrence. Determine this
second order recurrence by setting up and solving the appropriate equations.
4. (15 points = 6+4+5) Alice signs documents as follows: She has an RSA modulus
n, public encryption exponent e, and private decryption exponent d. To sign m,
she computes s≡md(mod n). Then (m, s) is the signed message. Bob verifies
that this is a valid signature by checking that m≡se(mod n).
(a) Suppose Eve has a message m1that she wants to sign. Why should it be difficult
for Eve to find s1such that (m1, s1) is a valid signed message? Your answer should
relate Eve’s problem to the security of RSA.
(b) Eve can produce a valid signed message (m2, s2) as follows: She chooses a
random s2and sets m2≡se
2(mod n). Show that this yields a valid message,
although it is likely that m2will be meaningless.
(c) Suppose His a cryptographic hash function. Instead of signing m, suppose
people sign H(m). A valid signed message is therefore (m, s), where se≡H(m)
(mod n). Explain why it should be difficult for Eve to produce a valid signed
Typeset by A
M
S-T
E
X
1
pf2

Partial preview of the text

Download Cryptology Final Exam Spring 2003: Questions on Cryptographic Techniques and Algorithms - and more Exams Cryptography and System Security in PDF only on Docsity!

MATH/CMSC 456 CRYPTOLOGY

FINAL EXAM SPRING 2003

  1. (15 points) Describe how you would choose your plaintext for a chosen plaintext attack on each of the following, and say how would you obtain the key: (a) Vigen`ere cipher. (b) Hill cipher (with a 2 × 2 matrix). (c) Affine cipher.
  2. (15 points = 7+8) Suppose your RSA modulus is n = 55 = 5 × 11 and your encryption exponent is e = 3. (a) Find the decryption modulus d. (b) Show that if c ≡ m^3 (mod 55) is the ciphertext, then the plaintext is m ≡ cd (mod 55). You may assume that gcd(m, 55) = 1. You may not quote the fact that RSA decryption works. That is what you are showing in this specific case.
  3. (14 points = 7+7) (a) Suppose you know that

333352 ≡ 6707050932 (mod 670726081).

Describe how you can use this information to factor 670726081 (do not actually factor it).

(b) Consider the sequence starting k 1 = 1, k 2 = 0, k 3 = 1, and defined by the third order recurrence kn+3 ≡ kn+2 + kn+1 + kn (mod 2).

This sequence can also be given by a second order recurrence. Determine this second order recurrence by setting up and solving the appropriate equations.

  1. (15 points = 6+4+5) Alice signs documents as follows: She has an RSA modulus n, public encryption exponent e, and private decryption exponent d. To sign m, she computes s ≡ md^ (mod n). Then (m, s) is the signed message. Bob verifies that this is a valid signature by checking that m ≡ se^ (mod n). (a) Suppose Eve has a message m 1 that she wants to sign. Why should it be difficult for Eve to find s 1 such that (m 1 , s 1 ) is a valid signed message? Your answer should relate Eve’s problem to the security of RSA. (b) Eve can produce a valid signed message (m 2 , s 2 ) as follows: She chooses a random s 2 and sets m 2 ≡ se 2 (mod n). Show that this yields a valid message, although it is likely that m 2 will be meaningless. (c) Suppose H is a cryptographic hash function. Instead of signing m, suppose people sign H(m). A valid signed message is therefore (m, s), where se^ ≡ H(m) (mod n). Explain why it should be difficult for Eve to produce a valid signed

Typeset by AMS-TEX 1

2 MATH/CMSC 456 CRYPTOLOGY FINAL EXAM SPRING 2003

message by the method of (b) (that is, explain why is it difficult for Eve to choose a random s 3 and find a message m 3 such that (m 3 , s 3 ) is a valid signed message).

  1. (8 points = 4+4) Consider the following DES-like encryption method. Start with a message of 2n bits. Divide it into two blocks of length n (a left half and a right half): M 0 M 1. The key consists of n bits. One round of encryption starts with a pair Mj Mj+1. The output is the pair Mj+1Mj+2, where

Mj+2 = Mj ⊕ K ⊕ Mj+1.

(⊕ means XOR, which is addition mod 2 on each bit). This is done for m rounds, so the ciphertext is MmMm+1. (a) Suppose the encryption process consists of m = 2 rounds. If you know only a ciphertext, can you deduce the key? Justify your answer. (b) Suppose the encryption process consists of m = 3 rounds. Why is this system not secure? Justify your answer.

  1. (8 points) Let p be a large prime, let α be a primitive root mod p, and let β ≡ αx^ (mod p). Peggy claims to know x. Victor wants to verify this without determining the value of x. The first few steps of the procedure are as follows. Peggy chooses two random numbers r 1 and r 2 such that r 1 + r 2 ≡ x (mod p − 1), then computes x 1 ≡ αr^1 (mod p) and x 2 ≡ αr^2 (mod p). She sends x 1 and x 2 to Victor. Before proceeding, Victor of course checks that β ≡ x 1 x 2 (mod p). Describe a zero-knowledge verification that Peggy knows x, using these steps as the beginning of the procedure. The procedure should be such that Victor believes the chance Peggy does not know x is less than 1/1000.
  2. (10 points = 5+5) Suppose we have a (2,4) Shamir secret sharing scheme mod the prime p = 13. Participants A, B, C are given the following valid shares:

A : (1, 11), B : (2, 3), C : (3, 8).

(a) What is the secret? (b) Suppose D has the point (4, 7). Is this a valid share? Explain why or why not.

  1. (15 points = 3+5+7) Let E be an elliptic curve and let Q be a point on E. Both E and Q are publicly known. Alice and Bob want to establish a key for some cryptographic purpose. They proceed as follows:

(1) Alice chooses a secret integer a and Bob chooses a secret integer b. (2) Alice computes A = aQ and Bob computes B = bQ. (3) Alice sends A to Bob and Bob sends B to Alice. (4) Alice computes aB and Bob computes bA. They extract the last 100 bits of the x-coordinates of these points to obtain the key.

(a) Show that aB = bA. (b) Suppose Eve knows how to compute discrete logs for elliptic curves and assume Eve intercepts all communications between Alice and Bob. Show how she can find the key that Alice and Bob establish. (c) Give a non-elliptic curve version of this protocol. Namely, replace E by integers mod a prime p and replace Q by a primitive root mod p, and describe the steps Alice and Bob follow.