SLIDE 24 Public key crypto RSA Essentials Public Key Crypto in Java Public key protocols Diffie-Hellman and El Gamal
Radboud University Nijmegen
Two theorems [Background info]
Euler’s theorem
If gcd(m, N) = 1, then mφ(N) ≡ 1 mod N
PROOF Write Z∗
N = {x1, x2, . . . , xφ(N)} and form the product:
x = x1 · x2 · · · xφ(N) ∈ Z∗
- N. Form also y = (m · x1) · · · (m · xφ(N)) ∈ Z∗
N.
Thus y ≡ mφ(N) · x. Since m is invertible the factors m · xi are all different and equal to a unique yj; thus x = y. Hence mφ(N) ≡ 1.
If p is prime and gcd(m, p) = 1 then mp−1 ≡ 1 mod p
PROOF Take N = p in Euler’s theorem and use that φ(p) = p − 1.
- This is often used to test if a number p is actually prime: just try
- ut if mp−1 ≡ 1 for many m (with gcd(m, p) = 1).
- B. Jacobs
Version: fall 2015 Computer Security 26 / 105