Docsity

Mini Exam Cryptography - Computer Security | CSE 543, Exams of Cybersecurity

Toggle sidebar
bg1
CSE543/Fall 2007 - Cryptography Mini-Exam
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
1. (3pts) When a cryptographic construction provides message authenticity, what does the receiver
learn?
answer: Authenticity enables the receiver to verify the identity of the sender of the message, implying
the message’s integrity.
2. (3pts) What is the probability of finding a collision for an ideal 60-bit hash function? What is the
main reason for this probability?
answer: 1 in 230. Due to the birthday paradox.
3. (3pts) Define the two properties of true cryptographic hash functions.
answer:One-way property states that it is computationally intractable to compute the pre-image of
a digest h−1(y) = d. The collision-free property states that it is computationally intractable to find
two inputs whose hash values are the same.
4. (3pts) What is the main purpose of the last two messages in the Needham-Schroeder symmetric key
protocol?
answer: B wants to prove that A really has possession of the session key provided in the ticket in the
third message. B provides a nonce to A that must it must decrypt and modify to prove its ability to
use the session key.
5. (3pts) Specify the trust model of a PKI system? That is, what is the CA trusted to state?
answer: CA is trusted to verify the mapping between public keys and identities. CA is trusted to
protect its private key from being leaked. The user must trust her machine to protect the generation
and use of her private key.
6. (3pts) How does a private key signature ensure non-repudiability?
answer: Private key can only belong to signer, and signing the hash ensures that the message’s
integrity can be associated with the private key encryption.
1
pf3
pf4

Partial preview of the text

Download Mini Exam Cryptography - Computer Security | CSE 543 and more Exams Cybersecurity in PDF only on Docsity!

CSE543/Fall 2007 - Cryptography Mini-Exam

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

  1. (3pts) When a cryptographic construction provides message authenticity, what does the receiver learn? answer: Authenticity enables the receiver to verify the identity of the sender of the message, implying the message’s integrity.
  2. (3pts) What is the probability of finding a collision for an ideal 60-bit hash function? What is the main reason for this probability? answer: 1 in 2^30. Due to the birthday paradox.
  3. (3pts) Define the two properties of true cryptographic hash functions. answer: One-way property states that it is computationally intractable to compute the pre-image of a digest h−^1 (y) = d. The collision-free property states that it is computationally intractable to find two inputs whose hash values are the same.
  4. (3pts) What is the main purpose of the last two messages in the Needham-Schroeder symmetric key protocol? answer: B wants to prove that A really has possession of the session key provided in the ticket in the third message. B provides a nonce to A that must it must decrypt and modify to prove its ability to use the session key.
  5. (3pts) Specify the trust model of a PKI system? That is, what is the CA trusted to state? answer: CA is trusted to verify the mapping between public keys and identities. CA is trusted to protect its private key from being leaked. The user must trust her machine to protect the generation and use of her private key.
  6. (3pts) How does a private key signature ensure non-repudiability? answer: Private key can only belong to signer, and signing the hash ensures that the message’s integrity can be associated with the private key encryption.

Long Answer - no more than 2 paragraphs

  1. (7pts) Why should you include a message authentication code (MAC) with a message? What is the difference between a MAC and an HMAC? answer: Provide authenticity and especially integrity. HMAC is a special form of a MAC HM AC(k, d) = H(K + H(k + d)) that prevents extension attacks.
  2. (7pts) What purpose does the authenticator in a Kerberos message serve? Detail one flaw Merritt and Bellovin identified in its design. answer: It is used to provide fresh proof that the principal really knows the session key. The authenticator includes timestamp and identity of the sender encrypted with the associated ticket’s session key to justify the source and the message freshness. The timestamp is valid for 5 minutes, so someone can replay in this window.

Word Problems - take your time and answer clearly and completely.

  1. (10pts) Suppose Alice wants to send a message to Bob containing her name N , her computer’s IP address IP , and a request R for Bob. Design the cryptographic messages that Alice must send to meet the security requirements below. Assume that Alice and Bob share a symmetric key K and have securely distributed their public keys K A+ and K B+. Assume that all the messages include Alice’s name, IP address, and the request.

(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.

  1. (10pts) Answer the questions below regarding key generation with Diffie-Hellman and RSA.

(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.