Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
1.4k views
in Computer by (72.7k points)
closed by
Let P = 17 and Q = 11 is taken in RSA algorithm, what are possible values of E( (public key), N and D (Private key) respectively?
1. 5, 187, 37
2. 7, 160, 23
3. 7, 187, 23
4. 9, 160, 37

1 Answer

0 votes
by (121k points)
selected by
 
Best answer
Correct Answer - Option 3 : 7, 187, 23

Compute the value of N and Φ

It is given as,

N = P × Q and  Φ = (P-1) × (Q-1)

Here in the example,

N = 17 × 11 = 187

Φ = (17-1) × (11-1) = 16 × 10 = 160

Find the value of E (public key)

Choose E, such that e should be co-prime. Co-prime means it should not multiply by factors of Φ and also not divide by Φ

Gcd(E, Φ (N) ) =1

Gcd(E, 160 ) =1

Gcd(7,160) =1 // taken from option

Compute the value of D (private key)

The condition is given as,

E × D ≡ 1 mod Φ 

(7 × 23) ≡ 1 mod 160  //taking from Options

Because 161mod160 ≡ 1

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...