
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!

Spring 2008 – 22c:169 Computer Security Assignment 2 - due by Thursday, March 13.
i. Imagine that the base station and the laptop use H(current time |MAC address of the base station | MAC address of the laptop) as a seed for PRNG, and use the sequence of random numbers from PRNG as keystream for XOR. (| means concatenation.) Can an attacker decrypt a ciphertext without participating in NTP? Explain your answer.
ii. Imagine that the base station and the laptop have a shared key K. If they use H( K | current time) as a seed for PRNG, and use the sequence of random numbers from PRNG as keystream. (| means concatenation.) Can an attacker decrypt a ciphertext without participating in NTP? Explain your answer.
iii. Design a function that the base station and the laptop can use to compute a seed, using only the shared key K, the secure hash function H, the pseudo-random number generator PRNG, and a complete clock synchronization from NTP. Explain why your function computes a seed only known to the base station and the Alice’s laptop, and the keystream generated from PRNG using this seed is secure. In other words, explain why an attacker cannot decrypt a ciphertext computed with this keystream.
CBC :Ci = E(K, [Ci− 1 ⊕ Pi]); Pi = Ci− 1 ⊕ D(K, Ci) CF B :Ci = Pi ⊕ E(K, Ci− 1 ); Pi = Ci ⊕ E(K, Ci− 1 )
These two appear to provide equal security. Suggest a reason why PGP uses the CFB mode.