CS FundamentalsHardGATE CS · security placement
A developer encrypts two different messages with the same one-time-pad key K: C1 = M1 ⊕ K and C2 = M2 ⊕ K. What can an eavesdropper holding C1 and C2 compute without knowing K?
- A. Nothing, because a one-time pad stays perfectly secret
- B. K itself, by XORing C1 with C2 and reading off the result
- C. M1 ⊕ M2, by XORing the two ciphertexts together
- D. M1 alone, by XORing C1 with C2 and then with C1 again
Correct answer: C. M1 ⊕ M2, by XORing the two ciphertexts together
C1 ⊕ C2 = M1 ⊕ M2 because the key cancels. Guessing likely words in one message (crib-dragging) then exposes the other. Perfect secrecy holds only if the key is never reused.
More Computer Networks questions
- A layer-2 switch carries an IPTV multicast stream. Without any special feature it floods the stream to every port in the VLAN. Which…
- An AS with two upstream ISPs wants inbound traffic to prefer ISP A, so it advertises its prefix to ISP B with its own AS number repeated…
- In 802.11, SIFS = 10 µs, a CTS and an ACK each take 44 µs, and the data frame takes 1000 µs. Station X hears the CTS from the receiver but…
- VoIP packets are generated every 20 ms (at t = 0, 20, 40, 60, 80 ms) and suffer network delays of 50, 70, 45, 95 and 60 ms. The receiver…
- A 12 Mbps link uses weighted fair queueing with weights 3, 2 and 1 for classes X, Y and Z. What rate does each class get when all three…
- For how many prefix lengths from /20 to /30 (inclusive) is 10.17.83.191 the directed broadcast address of its subnet?