Number Theory and Mathematical Foundations of Cryptography Questions

The classical mathematics underpinning cryptographic hardness assumptions: modular arithmetic, prime generation and primality testing, the structure of the discrete logarithm and integer factorization problems, group and finite field theory, elliptic curve arithmetic, and pairings and bilinear groups. Covers deriving why a scheme's underlying hard problem is believed hard, the classical algorithms (index calculus, the Number Field Sieve, Pollard's rho, baby step giant step, BKZ) used to estimate its concrete difficulty as an input to parameter sizing, and how that difficulty maps to classical parameter sizes (RSA moduli, DH/DSA group sizes, EC curve sizes, pairing group balance). Every question should ground the math in an actual cryptographic scheme (RSA, Diffie-Hellman, (EC)DSA/Schnorr, ECC, or a primality testing pipeline), not bare textbook number theory. Distinct from the constructive lattice-, code-, and multivariate-based post-quantum schemes and their concrete-security estimation, which post-quantum-and-lattice-cryptography owns; this topic retains a small set of foundational lattice-object definitions (a lattice and its basis, the Gaussian heuristic, BKZ's root-Hermite relation, NTRU decryption-failure bounds, discrete-Gaussian sampler proofs, new-assumption vetting methodology) and the isogeny hardness assumption that the closed topic's own curation does not ship, kept here rather than deleted, plus a three-question footnote on why Shor collapses these classical assumptions together. Also distinct from formal security-reduction proofs and cryptanalytic attack methodology, owned by cryptanalysis-and-security-proofs. The theory layer distinguishing a cryptographer from a library user.

EasyTechnical
33 practiced

Explain Euler's totient function phi(n). For n = p*q with distinct primes p and q, show how phi(n) relates to p and q. Using that, outline the RSA key generation process at a mathematical level and explain why phi(n) is needed for computing the private exponent d.

EasyTechnical
31 practiced

Describe at a high level how point addition and scalar multiplication work on an elliptic curve defined over a finite field. Why is scalar multiplication easy but the elliptic curve discrete logarithm problem (ECDLP) considered hard in practice?

MediumTechnical
37 practiced

A junior engineer asks why we can't just prove RSA is secure the same way we prove an NP-hard problem is intractable. How do you explain the difference between the complexity classes P, NP, and NP-hard to answer that, and why is NP-hardness alone not a strong enough foundation to justify a cryptographic hardness assumption?

MediumTechnical
27 practiced

You are tasked with selecting safe parameters for a 2048-bit Diffie-Hellman group used in TLS. Describe mathematically how you would choose the prime p and generator g (or subgroup order r and generator) and what checks you would perform to ensure group security against small-subgroup and Pohlig-Hellman attacks.

EasyTechnical
59 practiced

State Fermat's Little Theorem and describe how the Fermat primality test (base-a test) uses it. Explain why Fermat's test is probabilistic and give an example of a Carmichael number that fools the test. What practical limitations make Miller-Rabin preferred?

Unlock Full Question Bank

Get access to all 13 Number Theory and Mathematical Foundations of Cryptography interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.