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?

  1. A. CBC, because each block is XORed with the previous ciphertext block
  2. B. CTR, because the counter repeats every few blocks
  3. C. ECB, because identical plaintext blocks give identical ciphertext blocks
  4. 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

Exams that ask this topic