Asymmetric Encryption and Key Exchange Questions

The construction and mathematics-adjacent mechanics of public-key (asymmetric) cryptography: how RSA, Diffie-Hellman, and elliptic-curve schemes actually work, including the group law and point-arithmetic formulas, scalar-multiplication algorithms (double-and-add, Montgomery ladder, windowed methods, GLV, multi-scalar batching), curve models and coordinate systems, and the hardness assumptions (integer factorization, discrete log, ECDLP) each scheme rests on. Covers key-establishment and authenticated key-exchange protocol design: forward-secrecy mechanics, key confirmation, downgrade protection, key-derivation and context binding, group and multi-party key agreement, and hybrid classical/post-quantum key-exchange composition. Also covers implementation-level attacks against these primitives and their mitigations: timing and side-channel leakage in modular exponentiation and scalar multiplication, invalid-curve and small-subgroup attacks, fault attacks, and padding-oracle attacks. Distinct from selecting, deploying, and operating these primitives in production: PKI certificate lifecycle, CA hierarchy, revocation, and key storage and rotation belong to applied cryptography and key management.

EasyTechnical
73 practiced

What is key confirmation in a key-exchange protocol? Give two mechanisms for mutual key confirmation (for example, a MAC over the transcript using the derived key, and an explicit signature over the key material) and explain how key confirmation prevents certain active and reflection attacks.

HardTechnical
68 practiced

A service signs the exact same message under RSA to several different recipients, each with their own public key but the same small exponent e = 3, and without randomized padding. Explain what's wrong with this setup, name the attack it exposes the service to, and what you'd change about the exponent choice or the padding scheme to fix it.

HardTechnical
131 practiced

Provide pseudocode for RSA decryption/signing using blinding to mitigate timing attacks. Include steps for selecting the blinding factor, applying the blinding before modular exponentiation, unblinding the result, and constant-time precautions. Also describe how to adapt blinding for CRT-based implementations and how to verify correctness.

MediumTechnical
74 practiced

A library you're reviewing computes an ECDH shared secret straight from whatever public key a peer sends, with no validation at all before use. Walk through the full set of checks you'd insist go in before that value is trusted, from confirming the point actually belongs to the curve through to how you'd handle its subgroup, and for each one, name the specific class of attack it closes off.

HardTechnical
85 practiced

Design a hybrid key-exchange composition that combines an IND-CCA secure post-quantum KEM and ECDH so that the final session key remains secure if at least one component remains secure. Provide a formal composition strategy (how to mix secrets with HKDF or PRF) and explain why naive concatenation or XOR can be unsafe.

Unlock Full Question Bank

Get access to all Asymmetric Encryption and Key Exchange interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.