Docsity

CS555 Midterm Solution: Man-in-the-Middle Attack and Oblivious Transfer Protocol, Exams of Cryptography and System Security

Toggle sidebar
bg1
CS555 Midterm Solution Sketch Fall ’01
1. Mallory performs a “person in the middle attack”: He replaces the Xthat Bob is
supposed to receive by EKM(R), and replaces the Ythat Alice is supposed to receive by
EKM(R) (where KMis a random key generated by Mallory). This results in Alice believing
that her session key with “Bob” is k0=EA(EKM(R)) and Bob believing that his session
key with “Alice” is k00 =EB(EKM(R)). Both k0and k00 are known to Mallory: He gets k0by
using KMto encrypt EKA(R), and he gets k00 by using KMto encrypt EKB(R). Whenever
Alice sends “Bob” a message MAencrypted with k0, Mallory decrypts it, reads MA, encrypts
MAwith k00 and sends Ek00 (MA) to Bob (Mallory could even maliciously modify MA).
Similarly, when Bob sends “Alice” an MBencrypted with k00, Mallory decrypts it, reads
MB, encrypts MBwith k0and sends Ek0(MB) to Alice.
2.
1. No, because the protocol specifies that all keys are exchanged after the game.
2. Everybody got 5 points because I did not specify which of the two OT protocols (that
were covered in class) is used.
3. F, F, T.
4.
1. Alice sends RA=MA∗VB(R) where Ris random. Bob sends her Y=SB(RA) =
SB(MA)∗R. Alice multiplies Yby R−1and gets SB(MA).
2. Alice sends RA=VA(MA), which looks random. Bob sends her Y=SB(RA) =
VA(SB(MA)). Alice computes SA(Y) = SB(MA).
5. T, F, T.
6. T, F, T, F, F, F, T, F, F, T, F.
7.
1. For any prime pand 0 < a < p, (ap−1mod p) equals 1
2. xi+1 =H(xi)
3. gcd(b, a mod b)
4. R, R0, M ⊕R⊕R0
5. Neuman-Stubblebine
1

Partial preview of the text

Download CS555 Midterm Solution: Man-in-the-Middle Attack and Oblivious Transfer Protocol and more Exams Cryptography and System Security in PDF only on Docsity!

CS555 Midterm Solution Sketch Fall ’

  1. Mallory performs a “person in the middle attack”: He replaces the X that Bob is supposed to receive by EKM (R), and replaces the Y that Alice is supposed to receive by EKM (R) (where KM is a random key generated by Mallory). This results in Alice believing that her session key with “Bob” is k′^ = EA(EKM (R)) and Bob believing that his session key with “Alice” is k′′^ = EB (EKM (R)). Both k′^ and k′′^ are known to Mallory: He gets k′^ by using KM to encrypt EKA (R), and he gets k′′^ by using KM to encrypt EKB (R). Whenever Alice sends “Bob” a message MA encrypted with k′, Mallory decrypts it, reads MA, encrypts MA with k′′^ and sends Ek′′ (MA) to Bob (Mallory could even maliciously modify MA). Similarly, when Bob sends “Alice” an MB encrypted with k′′, Mallory decrypts it, reads MB , encrypts MB with k′^ and sends Ek′ (MB ) to Alice.

  2. No, because the protocol specifies that all keys are exchanged after the game.

  3. Everybody got 5 points because I did not specify which of the two OT protocols (that were covered in class) is used.

  4. F, F, T.

  5. Alice sends RA = MA ∗ VB (R) where R is random. Bob sends her Y = SB (RA) = SB (MA) ∗ R. Alice multiplies Y by R−^1 and gets SB (MA).

  6. Alice sends RA = VA(MA), which looks random. Bob sends her Y = SB (RA) = VA(SB (MA)). Alice computes SA(Y ) = SB (MA).

  7. T, F, T.

  8. T, F, T, F, F, F, T, F, F, T, F.

  9. For any prime p and 0 < a < p, (ap−^1 mod p) equals 1

  10. xi+1 = H(xi)

  11. gcd(b, a mod b)

  12. R, R′, M ⊕ R ⊕ R′

  13. Neuman-Stubblebine