Symmetric Encryption and Block Ciphers Questions

How symmetric-key primitives are constructed and why they work: block-cipher internals (Feistel networks vs substitution-permutation networks, the AES round structure and S-box design, key schedules and why a weak one degrades security), stream ciphers (ChaCha20 and CTR-mode keystream generation), and the internal mechanics of modes of operation (ECB, CBC, CTR, XTS, GCM), including why some are parallelizable, why ECB leaks structure, and why some require a unique nonce. Covers authenticated encryption construction internals (how GHASH and Poly1305 work, why nonce reuse breaks their security algebraically, formal security notions like IND-CPA and INT-CTXT), padding schemes and the mechanics of padding-oracle attacks, and cryptanalysis of block ciphers (differential and linear cryptanalysis, reduced-round attacks). This is the design and internals layer: how these primitives are built and proven secure, distinct from choosing which algorithm or mode to deploy, managing key lifecycle and rotation, or architecting data protection for a system, which belong to the applied cryptography layer.

HardTechnical
29 practiced

For AES-GCM using 96-bit random IVs, derive the approximate probability of an IV collision after N messages (use birthday bounds). Compute the safe upper bound for N given an acceptable collision probability of 2^-32, and explain operational implications for a high-throughput service.

MediumTechnical
28 practiced

Summarize AES-SIV (Synthetic IV) mode and its misuse-resistant properties. Explain the S2V construction at a high level, why AES-SIV is deterministic and provides nonce-misuse resistance, and describe scenarios where deterministic encryption is acceptable or desirable (and where it's not).

HardTechnical
34 practiced

Given a black-box encryption oracle for a 128-bit-block block cipher under a fixed unknown key, design a testing methodology to detect weak keys, keyed-collisions, and susceptibility to slide or related-key structural attacks. Describe the chosen-plaintext sets, statistical tests to run, how to interpret results, and rough complexity estimates.

HardTechnical
33 practiced

Explain how Associated Data length and ciphertext length are incorporated into GCM's GHASH computation (including padding behavior). Describe what happens if an implementation incorrectly pads or omits the length block and how that affects tag verification.

EasyTechnical
28 practiced

Explain why Electronic Codebook (ECB) mode is insecure for encrypting structured or repetitive data. Provide a concrete adversarial example showing how identical plaintext blocks yield identical ciphertext blocks and how this leaks structure, and propose practical alternatives (modes or constructions) to ECB for both file encryption and network protocols.

Unlock Full Question Bank

Get access to all 46 Symmetric Encryption and Block Ciphers interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.