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.

HardTechnical
33 practiced

Estimate the cross-over point (in bit-length) where Pollard's Rho for discrete log becomes asymptotically slower than baby-step giant-step in practice, taking into account memory constraints and parallelizability. Discuss how parallel resources affect your estimate.

EasyTechnical
33 practiced

Define the order of an element g in a finite cyclic group G. Explain what a primitive root modulo p is and how orders are used in discrete-log based cryptosystems. Give a procedure to test whether g is a generator modulo a prime p.

MediumTechnical
38 practiced

Explain the index calculus method for computing discrete logarithms in F_p^*: describe factor base selection, relation collection, the linear algebra step, and individual logarithm computation. Discuss the heuristic complexity L_p[1/3] and explain why index calculus outperforms generic algorithms for sufficiently large p, and how its effectiveness changes when you move from prime fields to extension or binary fields.

HardTechnical
38 practiced

Your team needs to decide between the Quadratic Sieve and the General Number Field Sieve when estimating how hard it would be to factor a given RSA modulus. Explain the core ideas of each algorithm and their asymptotic complexities, and identify the practical crossover point where GNFS becomes more efficient than QS. Use numeric examples to show roughly where QS is still competitive and where GNFS dominates for key sizes used in practice.

HardTechnical
39 practiced

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.

Unlock Full Question Bank

Get access to all 45 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.