Questions: Authenticated Encryption

5 questions to test your understanding

Score: 0 / 5
Question 1 Short Answer

Three generic composition methods exist: Encrypt-then-MAC, MAC-then-Encrypt, Encrypt-and-MAC. Only one is generically secure. Which, and why do the others fail?

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

A developer implements AES-GCM correctly but reuses a nonce for two different messages under the same key. How severe is this failure?

AConfidentiality is mildly reduced but authentication remains intact
BCatastrophic — nonce reuse in GCM breaks both confidentiality (same keystream XORed with different plaintexts, revealing their XOR) and authenticity (the authentication key H can be recovered from two ciphertexts with the same nonce, enabling universal forgeries on all past and future messages)
COnly the two affected messages are compromised; other messages remain secure
DGCM detects and rejects nonce reuse automatically
Question 3 Multiple Choice

ChaCha20-Poly1305 was designed as an alternative to AES-GCM for platforms without hardware AES support. What are its advantages?

AChaCha20-Poly1305 provides stronger security guarantees than AES-GCM
BChaCha20 uses only ARX operations (add, rotate, XOR) that execute in constant time on all CPUs without special instructions, avoiding timing side channels that affect software AES implementations. Poly1305 is a similarly simple polynomial MAC. Together they provide excellent performance on mobile/embedded devices lacking AES-NI instructions
CChaCha20-Poly1305 supports larger message sizes than GCM
DPoly1305 provides stronger authentication than GHASH
Question 4 True / False

Standalone encryption (encryption without authentication) should never be used in modern systems.

TTrue
FFalse
Question 5 Short Answer

AEAD's 'associated data' (AD) is authenticated but not encrypted. Give an example of data that should be associated data rather than part of the encrypted payload.

Think about your answer, then reveal below.