




















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















































































p-
Rivest Shamir^ Adleman
Euler (^) Fermat
Pick secret, random large primes: p,q “Publish”: n = p*q
φ(n) = φ(p) φ(q) = (p-1)*(q-1) Pick random e ∈ Z *φ(n) “Publish”: e Compute d = inverse of e in Z φ(n) Hence, ed = 1 [ mod φ(n) ]
“Private Key”: d
Mumbo jumbo…
More Mumbo jumbo…
n,e is my public key. Use it to send me a message.
p,q random primes, e random ∈ Zφ(n) n = pq e*d = 1 [ mod φ(n) ]
To understand this, we need a little number theory...
MAX(a,b) + MIN(a,b) = a+b
Greatest Common Divisor:
GCD(x,y) = greatest k ≥ 1 s.t. k|x and k|y.
Least Common Multiple:
LCM(x,y) = smallest k ≥ 1 s.t. x|k and y|k.
GCD(x,y) × LCM(x,y) = xy
MAX(a,b) + MIN(a,b) = a+b
(a mod n) means the remainder when a is divided by n.
If a = dn + r with 0 ≤ r < n Then r = (a mod n) and d = (a div n)
In other words, Reflexive: a ≡n a Symmetric: (a ≡n b) ⇒ (b ≡n a) Transitive: (a ≡n b and b ≡n c) ⇒ (a ≡n c)
“a and b are equivalent modulo n”
Define Residue class [i] = the set of all integers that are congruent to i modulo n.