RSA Cryptosystem
Developed in 1977 by Ron Rivest, Adi Shamir, and Len Adleman at MIT
β’ Based on modular exponentiation and factorization of large numbers
β’ In RSA block cipher, plaintext (and ciphertext) are integers between 0
and n-1 for some n
β’ Typically |n| = 1024 bits
β’ Means, π β€ 2
1024 or 309 decimal digits
β’ Encryption:πΆ = ππ πππ π Decryption: = πΆπ πππ π β’ Public Key: (e,n) Private Key: (d)
How to generate RSA parameters ?
Ans. Lets focus on values of e and d first
β’ Assume n is a composite number
β’ Means, n = pq where p and q are prime numbers
β’ β β
π = β
ππ = (π β 1)(π β 1) β’ We will show later why n should be composite
β’ We want M = πΆπ πππ π or, M = π ed πππ π β’ We say above relationship holds, if
ππ πππ β
π = 1 β’ This is equivalent to saying,
ππ β‘ 1 πππ π π
or, π β‘ π -1 πππ π π β’ That is, e and d are multiplicative inverses with respect to πππ π π β’ Remember, inverse of e only exists if e is relatively prime to π π