1,331 views
0 votes
0 votes
using RSA algorithm Alice wishes to send a message m=439 to Bob. Alice choose a prime number p=31 and q=23,if he chooses a public key (223,713) what is the private key bob should choose?

A)367

B)413

C)218

D)240

2 Answers

2 votes
2 votes

The keys for the RSA algorithm are generated the following way:-

  1. Choose two large and distinct prime numbers $p$ and $q$.
  2. Take the product $n =p \times q$
  3. Compute the number of integers less than n that are coprime with n (otherwise known as the totient):                           $\phi(n)=(p-1)\times (q-1)$
  4. Choose an integer e such that $1< e< \phi(n)$ and $e$ and $\phi(n)$ are coprime (i.e. share no common factors other than 1)
  5. Compute a value for d such that it satisfies the relation:  $(d \times e)\ \% \ \phi(n) = 1$
  6. The public key is $(e,n)$
  7. The private key is $(d,n)$
  8. To encrypt m using the public key use the relation: $c = m^{e} \ \% \ n$
  9. To decrypt c using the private key use the relation: $m = c^{d} \ \% \ n$

Given,

P=31 , Q=23 , e=223 , n=713 , m=439

$\phi(n)=(p-1)\times(q-1)$

$\phi(n)=30\times22$

$\phi(n)=660$

Now from step 5 Compute a value for d such that it satisfies the relation: $(d \times e)\ \% \ \phi(n) = 1$

it is satisfy when d=367

$(367 \times 223)\ \% \ 660 = 1$

Hence, Option(A)367 is the correct choice.

Algo. Reference :-https://www.cs.utexas.edu/~mitra/honors/security.html

edited by
0 votes
0 votes

RSA Algorithm   http://courses.cs.vt.edu/~cs5204/fall00/protection/rsa.html 

Compute n = p * q = 31 * 23 =713

φ(n) = (p - 1) * (q - 1) = 30 * 22 =660

given public key is (e, n) = (223, 713)

encryption of m = 439 is      c = me mod n = 439 223 mod 713 =284

decryption of c is                  m = cd mod n = 284 d mod 713 =439     here d is public key

by checking option only 367 is satisfied

 

Related questions

557
views
1 answers
0 votes
Sahil_Lather asked Jan 26, 2023
557 views
Which of the following statement is/are incorrect about the Routing Information Protocol (RIP) protocol and Open Shortest Path First (OSPF) protocol?RIP ... using TCP.RIP is an Network Layer protocolOSPF is an Application Layer protocol
471
views
1 answers
0 votes
Sahil_Lather asked Jan 26, 2023
471 views
Assume that host A and host C are connected through intermediate bridge and router labeled B and R respectively. Determine how many times each frame has to visit the ... - 44Network Layer - 4, Data Link Layer - 4, Physical Layer - 5
1.3k
views
1 answers
1 votes
jatin khachane 1 asked Jan 18, 2019
1,279 views
Frames of 20000 bytes are sent over 10 MBps full duplex link between 2 hosts. Propagation is 45 ms.Suppose that the sliding window protocol is used ... minimum time sender will have to wait before starting transmission of the next frame
663
views
1 answers
0 votes
Soumya29 asked Jan 6, 2019
663 views
$Que-$ A sender uses a Stop-and-Wait protocol for transmission of $8000 \ K-bits$ size frames on a $1Gbps$ satellite channel with a propagation delay of $400 \ ms$. What ...