3- Public-key encryption Flashcards
Requirements for public-key encryption
1- easy generation of a pair of keys
2- easy to encrypt
3- easy to decrypt
4- computationally infeasible to decrypt knowing public key and ctext
Public key process
1- users generate public and private keys
2- alice encrypts her message with bob’s public key
3- bob decrypts using bob’s private key
RSA Enc.
C = P^e mod n
RSA Dec.
P = C^d mod n
Selecting RSA keys
1- n: choose prime p&q, n=pq
2- e: relatively prime to
(p-1)(q-1)
3- d: solve equation [ed=1 mod n]
RSA security
1- impossible to decrypt w/o private key
2- impossible to derive private key from public info
RSA analogues
elliptic curve, el gamal
Problems for public-key Enc.
1- high computational cost
2- security issues for long ptext: Enc. of blocs with the same key = ECB
Hybrid encryption
1- use public key to establish symmetric keys
2- use symmetric encryption