Question
In a RSA cryptosystem, a participant A uses two prime numbers and to generate her public and private keys. If the public key of A is 35, then the private key of A is ______.
Official answer and solution
- Official answer
- 11
- From
- Official GATE 2017 answer key
Solution
Apply the RSA key generation algorithm using Euler's totient function and the Extended Euclidean Algorithm to find the modular multiplicative inverse.
Given prime numbers and , the modulus is:
Euler's totient function is:
The public key is . The private key is the modular inverse of modulo :
Apply the Extended Euclidean Algorithm to solve :
Expressing 1 as a linear combination:
Thus:
Checking: . Hence, the private key is .
11.0
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2017 Computer Science and Information Technology (CS) Session 1
- Question
- 44 of 65, printed as CS Q.44
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.