CS FundamentalsModerateGATE CS · security placement
A bitmap image is encrypted with AES, and the ciphertext still shows the outline of the picture. Which mode of operation was used, and why?
- A. CBC, because each block is XORed with the previous ciphertext block
- B. CTR, because the counter repeats every few blocks
- C. ECB, because identical plaintext blocks give identical ciphertext blocks
- D. GCM, because authentication tags leak the plaintext layout
Correct answer: C. ECB, because identical plaintext blocks give identical ciphertext blocks
ECB encrypts each block independently with the same key, so repeated regions of the image map to repeated ciphertext. CBC and CTR mix in a chaining value or a unique counter, so identical blocks encrypt differently.
More Computer Networks questions
- 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…
- 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…