CSC314 Network Security Lecture 9
CSC314 Network Security Lecture 9
gy mod n
By using DH formula
Verification:
To encrypt a plain text message “M”
C = Me mod n
To decrypt the block
M=Cd mod n
RSA Example
p = 3 and q = 11
n = p * q = 3 * 11 = 33
φ(n) = (p - 1) * (q - 1) = 2 * 10 = 20
φ(n) = 20
Choose e such that e and φ(n) are co-prime
Let e = 7
Choose d such that
de mod φ(n) = 1
d=3
(3)(7)mod20 = 1
Public key is (e, n) => (7, 33)
Private key is (d, n) => (3, 33)
Verification:
The encryption of m = 2 is c = 27 mod 33 = 29
The decryption of c = 29 is m = 293 mod 33 = 2
Thank you
Insert the title of your subtitle Here