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
88 practiced

A colleague hands you a raw X.509 certificate and asks you to sanity-check it before it's trusted in production. Walk through what you'd look at to confirm who the certificate identifies, who vouches for it, how long it's good for, and what it's actually authorized to be used for, and give an example of a mismatch you'd want to catch between the certificate's identity fields.

MediumTechnical
128 practiced

Design a comprehensive test suite to validate DH/ECDH implementation correctness in a cryptographic library. Include unit tests for parameter validation, subgroup checks, invalid encodings, deterministic test vectors, interoperability vectors, fuzz targets, and CI integration. Specify what failure modes the tests must detect.

EasyTechnical
129 practiced

Describe the Diffie-Hellman key exchange protocol in detail. Explain the mathematical hardness assumption it relies on, parameter selection such as prime modulus and generator for finite-field DH, how two parties derive a shared secret, and key differences between finite-field DH and elliptic curve Diffie-Hellman (ECDH). Mention common attack vectors like man-in-the-middle and countermeasures.

HardTechnical
83 practiced

Describe in detail the classes of side-channel and fault-injection attacks that can extract private keys during scalar multiplication (simple power analysis, differential power analysis, injection of faults to induce incorrect curve operations). For each class, propose layered mitigations covering algorithmic changes, hardware features, detection, and protocol-level countermeasures.

EasyTechnical
84 practiced

Define a protocol downgrade attack in the context of key exchange. Provide an example where an active attacker forces negotiation to an insecure parameter set, and explain at least two countermeasures protocols use to prevent downgrade (for example transcript binding and explicit downgrade sentinels).

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.