Questions: Modes of Operation: CBC, CTR, and GCM

5 questions to test your understanding

Score: 0 / 5
Question 1 Short Answer

ECB mode encrypts each block independently with the same key. A developer argues this is fine because AES itself is secure. What specific attack demonstrates ECB's failure?

Think about your answer, then reveal below.
Question 2 Multiple Choice

In CBC mode, a single-bit error in ciphertext block i affects which plaintext blocks after decryption?

AOnly block i is affected
BBlock i is completely garbled, and block i+1 has a single-bit flip in the same position as the ciphertext error; all other blocks decrypt correctly
CAll blocks from i onward are garbled
DNo blocks are affected because the error-correcting properties of AES fix it
Question 3 True / False

CTR mode turns a block cipher into a stream cipher by encrypting counter values and XORing the result with plaintext. Reusing the same nonce with the same key for two different messages is equivalent to reusing a one-time pad.

TTrue
FFalse
Question 4 Multiple Choice

GCM mode provides both encryption and authentication. Why is combining these in a single mode preferable to encrypting with CTR and then computing a separate MAC?

AGCM is faster because it skips the authentication step for most blocks
BComposing CTR encryption with a separate MAC can be insecure depending on the order of operations (encrypt-then-MAC is secure, MAC-then-encrypt has known vulnerabilities). GCM is a single, analyzed construction that provides authenticated encryption correctly by design
CSeparate MACs cannot authenticate encrypted data — they can only authenticate plaintext
DGCM uses stronger encryption than CTR mode
Question 5 True / False

CTR mode is fully parallelizable for both encryption and decryption, while CBC mode is parallelizable only for decryption.

TTrue
FFalse