The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+15 votes
1.5k views

In the RSA public key cryptosystem, the private and public keys are $(e, n)$ and $(d, n)$ respectively, where $n=p \times q$ and $p$ and $q$ are large primes. Besides, $n$ is public and $p$ and $q$ are private. Let $M$ be an integer such that $0<M<n$ and $\phi(n) = (p-1)(q-1)$. Now consider the following equations. 

  1. $M’ = M^e \text{ mod } n$
    $M = (M’)^d \text{ mod } n$

  2. $ed  \equiv 1 \text{ mod } n$

  3. $ed  \equiv 1 \text{ mod } \phi(n)$

  4. $M’ = M^e \text{ mod } \phi(n)$
    $M = (M’)^d \text{ mod }\phi( n)$

Which of the above equations correctly represents RSA cryptosystem?

  1. I and II
  2. I and III
  3. II and IV
  4. III and IV
asked in Computer Networks by Veteran (59.4k points)
edited by | 1.5k views
+2
Here while we encrypt the messge, we have to do with the public key, and decryption is done using private key, but here they are encrypting with private key and decryption is done with public key, which has to be reverse.
0
recheck they are doing it correct
0
It is confusing because M-> ciphertext and M`->is plain text they reversed the symbol what we generally use , to confuse! :)
+3

@Shiva is partially correct(but he pointed one imp. thing..):-

Actually, the Public Key Cryptography(i.e. RSA) has several applications

1.Encryption

2.Authentication

3.Key Exchange(i.e. Diffie-Hellman Key Exchange)

Here the given Question it is doing authentication by encrypting by sender's private key and decryption using sender's public key.

0

@Bikram Sir pls check

According to RSA applications it is generally used for

1)Encryption

2)Authentication

3)Key exchange

in this question e represents private key,d represents public key  and authentication has to be done .So if M is a msg then

Authentication by  Encryption ,using private key .So M'=M^e mod n

 Authentication by Decryption,using public key.So M= M' ^d mod n

http://searchsecurity.techtarget.com/definition/RSA
 

2 Answers

+17 votes
Best answer

The basic principle behind RSA is the observation that it is practical to find three very large positive integers e, d and n such that with modular exponentiation for all m:

${\displaystyle (m^{e})^{d}\equiv m{\pmod {n}}}$ and that even knowing e and n or even m it can be extremely difficult to find d.

Additionally, for some operations it is convenient that the order of the two exponentiations can be changed and that this relation also implies: ${\displaystyle (m^{d})^{e}\equiv m{\pmod {n}}}$

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

  • Choose two distinct prime numbers p and q.
  • Compute n = pq.
  • Compute φ(n) = φ(p)φ(q) = (p − 1)(q − 1)
  • This is more clearly stated as: solve for d given de ≡ 1 (mod φ(n))

so B is answer

answered by Veteran (59.6k points)
selected by
+7
If in exam one gets confused then use some common sense like this-

(e,n) Public key
d is private key or (d,n) is private key

Now encryption should be allowed to anyone, Therefore to encrypt protocol must use public key only.
Hence, $M' = M^e \text{ mod n}$
d is private key and this should not be calculated using public componentent i.e. $\text{(e, n)}$
Hence, $d⋅e ≡ 1 \text{(mod φ(n))}$
0
i know that  (d*e)mod z=1. confused...
+1

1 = d*e (mod φ(n) )   and   d*e = 1 (mod φ(n) )   these two are same..?

+1
So here, M' is the plain text ,right? Because M' is generated by using private key on M.

And M is generated by using public key so it must be cipher text?
+5 votes
ans b)
answered by Active (5.2k points)
Answer:

Related questions



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

35,507 questions
42,829 answers
121,693 comments
42,183 users