written 8.0 years ago by | • modified 4.7 years ago |
In an RSA system the public key (e,n) of user A is defined as (7,119). Calculate Φn and private key d. what is the cipher text when you encrypt message m=10, using the public key? -
written 8.0 years ago by | • modified 4.7 years ago |
In an RSA system the public key (e,n) of user A is defined as (7,119). Calculate Φn and private key d. what is the cipher text when you encrypt message m=10, using the public key? -
written 8.0 years ago by |
Given Data:
Solution:
The formula for n is: n= p *q.
That means, p and q should be a factor of 119. Two such numbers are 7 and 17.
Therefore, p=17 and q=7
Now, Φ (n) = (p-1) * (q-1) .
Therefore, $Φ (n) = (p-1)*(q-1) \\ Φ (n) = (17-1)*(7-1) \\ Φ (n) = 96$
Now, the condition on e and Φ (n) is that GCD(e, Φ(n))=1 .
We can see that this condition is satisfied by the current values of e and φ(n) i.e. GCD(7,96)=1.
Next we determine d.
It is given as d*e=1 mod Φ (n) where d < Φ (n).
Therefore: d*7 =1 mod 96
To obtain d we apply Euclid’s inverse algorithm (extended Euclid’s algorithm is used to find out the multiplicative inverse of a number. Follow the steps mentioned below to obtain the answer)
Construct a table as below and fill with the given values: As seen r1 and r2 will have the values of Φ (n) and e respectively. Also, t1 and t2 will have default values as 0 and 1.
Now, we move to the second half. Here there is only one formula:
t=t1 – (q * t2)