












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Cryptography/Comp Netwk Sec; Subject: Electrical & Computer Enginrg; University: George Mason University; Term: Unknown 1989;
Typology: Study notes
1 / 20
This page cannot be seen from the preview
Don't miss anything!













M C = f(M) = Me^ mod N C
M = f-1(C) = Cd^ mod N
N = P ⋅ Q P, Q - large prime numbers
e ⋅ d ≡ 1 mod ((P-1)(Q-1))
message ciphertext
PUBLIC KEY (^) PRIVATE KEY
e ⋅ d ≡ 1 mod ((P-1)(Q-1))
P, Q - large prime numbers
gcd(e, P-1) = 1 and gcd(e, Q-1) = 1
d:
e:
Z – integers
∈ - belongs to (^) ∉ - does not belong to
a | b a divides b a is a divisor of b
a | b a does not divide b a is not a divisor of b
An integer p ≥ 2 is said to be prime if its only positive
divisors are 1 and p. Otherwise, p is called composite.
gcd ( a , b ) = gcd ( a - kb , b )
for any k ∈∈∈∈ Z
Given integers a and n , n >
∃! q , r ∈ Z such that
q – quotient
r – remainder (of a divided by n )
q =
a n =^ a^ div^ n
a
= a mod n
Two integers a and b are congruent modulo n ( equivalent modulo n )
written a ≡≡≡≡ b iff
a mod n = b mod n or a = b + kn , k ∈∈∈∈ Z or
n | a - b
18 ≡ 42 (mod 8) 6 ⋅ 3 ≡ 6 ⋅ 7 (mod 8)
3 ≡ 7 (mod 8)
x 6 ⋅ x mod 8
x
5 ⋅ x mod 8
i
…
t - t
ri
r -2 = max (a, b) r -1 = min (a, b) r 0 r 1
…
rt-1 = gcd(a, b) rt =
qi
q - q 0 q 1
…
qt-
qi = ri - ri ri +1 = ri -1 - qi ⋅⋅⋅⋅ ri
ri +1 = ri -1 mod ri
i
ri
r -2 = max (a, b) = r -1 = min (a, b) = r 0 = 18 = gcd(36, 126) r 1 = 0
qi
q -1 = 3 q 0 = 2 q 1 qi = ri - ri ri +1 = ri -1 - qi ⋅⋅⋅⋅ ri
ri +1 = ri -1 mod ri
r t-1 = x t-1 ⋅⋅⋅⋅ a + y t-1 ⋅⋅⋅⋅ n
r t-1 = x t-1 ⋅⋅⋅⋅ a + y t-1 ⋅⋅⋅⋅ n ≡≡≡≡ x t-1 ⋅⋅⋅⋅ a (mod n)
If r t-1 = gcd (a, n) = 1 then x t-1 ⋅⋅⋅⋅ a ≡≡≡≡ 1 (mod n) and as a result
x t-1 = a-1^ mod n
i
…
t - t
ri
r -2 = n r -1 = a r 0 r 1
…
rt-1 = 1 rt =
xi
x -2= x -1= x 0 x 1
…
xt -1 = a -1^ mod n xt = ± n
qi
q -1 =