Cryptosystem
Block Cipher
DES
AES
Trapdoor
RSA
ElGamal
Digital Signature

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 πœ™ 𝑛