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
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?

EasyTechnical
32 practiced

RSA fundamentals: given p = 61, q = 53 and public exponent e = 17, compute N = p * q, phi(N), find the private exponent d (the modular inverse of e mod phi(N)), encrypt plaintext m = 65 to obtain c = m^e mod N, and then decrypt c to recover m. Show all intermediate calculations and explain why decryption recovers the original message.

EasyTechnical
51 practiced

You're reviewing a from-scratch modular-exponentiation routine for a crypto library and want to check that whoever wrote it actually understands why reducing after every multiplication is safe, not just fast. Work through, by hand, (a) (17 * 23) mod 13 and (b) 17^5 mod 13 using repeated reduction after each multiplication, showing every intermediate step. Then explain why reducing intermediate results modulo 13 is mathematically valid, and why that property is what lets every public-key algorithm in this space use huge exponents without ever holding a huge number in memory.

EasyTechnical
34 practiced

Diffie-Hellman practice: with prime p = 23 and generator g = 5, Alice chooses private exponent a = 6 and Bob chooses b = 15. Compute Alice's public value A = g^a mod p, Bob's public value B = g^b mod p, and the shared secret s = A^b mod p = B^a mod p. Show steps and verify that both computations yield the same secret.

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?

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.