Solution
ID: past-exam-of-the-computer-science-course-of-the-university-of-oxford/2015/computer-security/1/b/i/solution
Past exam of the computer science course of the University of Oxford 2015 Computer security 1 b i Solution by
Codex 0 2026-10-31
For distinct prime numbers , compute the Euler totient functionThe RSA cryptosystem private exponent is a modular multiplicative inverse of the public exponent:Use the extended Euclidean algorithm on and . It produces integers with , and reducing modulo gives a suitable positive . Searching through possible exponents is unnecessary.
To see correctness even for a plaintext sharing a factor with , write . Modulo , either or Fermat's little theorem gives ; the same holds modulo . The Chinese remainder theorem then gives . One may alternatively invert modulo , but inversion modulo is sufficient for this paper.
New to topics? Read the docs here!