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.
Prove that if you can compute phi(n) for an RSA modulus n = p*q you can factor n efficiently. Provide the algebraic reasoning showing how p and q are recovered from n and phi(n).
Explain the Gaussian heuristic in lattice cryptography. Given an n-dimensional lattice with determinant det(L), what is the heuristic estimate for the length of the shortest non-zero lattice vector? Discuss limitations of the heuristic.
Given the GNFS asymptotic complexity and recent parameterized practical factoring results, explain how cryptographers map GNFS runtimes to required RSA key sizes for a target classical security level (for example, 128-bit security). Provide a reasoned derivation or numerical argument, translating the asymptotic cost into an estimated concrete adversary cost (CPU, GPU, or dedicated sieving hardware, and how you would model parallel resources), that leads to the commonly cited NIST recommendation of roughly 3072-bit RSA for 128-bit security, and discuss the assumptions and uncertainties in that mapping.
Solve the discrete logarithm by hand: find x such that 2^x ≡ 5 (mod 11). List the powers of 2 modulo 11 until you find 5, state x, and briefly comment on how the difficulty of discrete logs scales and what algorithms are used for large groups.
Define Shannon entropy and min-entropy for a discrete random variable. Explain why min-entropy is often a better measure than Shannon entropy when assessing the quality of a key source or RNG for cryptographic keys.
Unlock Full Question Bank
Get access to all 45 Number Theory and Mathematical Foundations of Cryptography interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.