Solution

ID: past-exam-of-the-computer-science-course-of-the-university-of-oxford/2015/computer-security/1/b/i/solution

For distinct prime numbers , compute the Euler totient function
The 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!