written 5.8 years ago by | • modified 5.8 years ago |
Subject: Mobile Computing
Difficulty: Medium
Marks: 4 Marks
written 5.8 years ago by | • modified 5.8 years ago |
Subject: Mobile Computing
Difficulty: Medium
Marks: 4 Marks
written 5.8 years ago by | • modified 5.8 years ago |
RSA is named after it‘s inventors: Ron Rivest, Adi Shamir, and Len Adleman at MITRSA is public key algorithm. The RSA scheme is a block cipher in which the plaintext and ciphertext are integers between 0 and n-1 for some n. A typical size for n is 1024 bits, or 309 decimal digits. That is, n is less than 21024.
Before stating RSA let us see main ingredients used in algorithm:
p,q, two prime numbers : (private, chosen)
n = pq : (public, calculated)
e, with gcd (f(n),e) = 1; 1< e < f(n): (public, chosen)
d k e-1 (mod f(n)) : (private, calculated)
RSA algorithm works as follow:
RSA Algorithm Example
Compute a value for d such that (D x E) % φ(n) = 1.
One solution is d = 3 [(3 * 7) % 20 = 1]
Public key is (E, n) => (7, 33)