Skip to content
Official PYQ · 2017

GATE CS 2017 Set 1 Q44 — Concept of Layering: OSI and TCP/IP Protocol Stacks

Explain with AI
In a RSA cryptosystem, a participant AA uses two prime numbers p=13p = 13 and q=17q = 17 to generate her public and private keys. If the public key of AA is 3535, then the private key of AA is __________ .
View worked solution

Answer: 11

In the RSA cryptosystem, the public key ee and private key dd are related by the congruence relation:

e⋅d≡1(modϕ(n))e \cdot d \equiv 1 \pmod{\phi(n)}

Given the prime numbers:

  • p=13p = 13
  • q=17q = 17

We calculate Euler's totient function ϕ(n)\phi(n) as:

ϕ(n)=(p−1)(q−1)=(13−1)(17−1)=12×16=192\phi(n) = (p - 1)(q - 1) = (13 - 1)(17 - 1) = 12 \times 16 = 192

Given the public key e=35e = 35, we need to find the private key dd such that:

35⋅d≡1(mod192)35 \cdot d \equiv 1 \pmod{192}

Using the Extended Euclidean Algorithm or testing small multiples of 192192:

35⋅d=192k+135 \cdot d = 192k + 1

For k=2k = 2:

35⋅d=192(2)+1=384+1=38535 \cdot d = 192(2) + 1 = 384 + 1 = 385 d=38535=11d = \frac{385}{35} = 11

Thus, the private key of AA is 11.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Concept of Layering: OSI and TCP/IP Protocol Stacks questions