


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Tuesday, September 25, 2007 — Professor Trent Jaeger
Please read the instructions and questions carefully. You will be graded for clarity and correctness. You have 45 minutes to complete this exam, so focus on those questions whose subject matter you know well. Students who try to read the papers in order to find an answer will not likely do well. Write legibly and check your answers before handing it in. Short Answer - some will be one or two words – no more than 3 sentences
Long Answer - no more than 2 paragraphs
Word Problems - take your time and answer clearly and completely.
(a) (2pts) Using the symmetric key, design a message that enables Bob to verify that the message’s integrity has not been violated and that it is from Alice.
(b) (2pts) Using the symmetric key, design a message that protects the confidentiality of the request only and ensures that Bob can verify the message’s integrity and source.
(c) (2pts) Using public key cryptography, design a message that enables Bob to verify that the message’s integrity has not been violated and that it is from Alice.
(d) (2pts) Using public key cryptography, design a message that protects the confidentiality of the request only and ensures that Bob can verify the message’s integrity and source.
(c) Call M the message and include c a counter for the messages in the session. Then A + E(K, M + c) + HM AC(K, A + M + c) protects M’s secrecy, ensures that Charlie cannot replay, and protects the integrity of the message. (d) The key K is derived from the secret X that only the Bank and Alice have access to. The adversary cannot establish an old session because the nonce cannot be replayed (Bank maintains set for X by assumption). Also, A, B are included in the messages to ensure that no man-in-the-middle is replaying authentication messages.
(a) (2pts) Suppose the Diffie-Hellman public values p and g are 7 and 4, respectively. Compute a legal y value.
(b) (2pts) Suppose your partner’s y value is 3. What is your shared key?
(c) (2pts) Suppose that you are computing an RSA key pair. What are p and q and φ(n) for an n = 51?
(d) (2pts) Find a legal RSA public key pair for this p and q.
(e) (2pts) How many possible values for e are there? answer: (a) y = gxmodp where x could be pretty much any value, I will choose 4. Therefore, y = 4^4 mod7 = 256 mod7 = 4. (b) The shared key z = yxmodp = 3^4 mod7 = mod7 = 4. (c) p = 3, q = 17 (or vice versa), and φ(n) = 2 ∗ 16 = 32. (d) A valid e is 5, as it is relatively prime to 32. Given e = 5, demodφ(n) = 1, so d can equal 13 (5 ∗ 13 mod32 = 1). Officially, d = (13, 51) and e = (5, 51). (e) Odd numbers less than 32 = 16. Other odds are permissible in general too.