06.01.2015 Views

Cryptology - Unofficial St. Mary's College of California Web Site

Cryptology - Unofficial St. Mary's College of California Web Site

Cryptology - Unofficial St. Mary's College of California Web Site

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

240 CHAPTER 12. RSA<br />

Theorem 5 Euler’s Theorem 8 (1760): If p and q are two distinct primes and<br />

neither one <strong>of</strong> them divides a, then<br />

a (p−1)(q−1) ≡ 1<br />

(mod pq).<br />

Leonard Euler (1707–1783) is history’s most prolific mathematician. Except<br />

for 1741–1766 when he was at the Royal Academy in Berlin, from 1727 until his<br />

death Euler lived in <strong>St</strong>. Petersburg and worked at the Imperial Academy there.<br />

His contributed to most fields <strong>of</strong> mathematics, in particular geometry, calculus<br />

and number theory, as well as to physics, especially acoustics, hydraulics and<br />

the theory <strong>of</strong> light. As if more is needed, he became blind in 1766 at age<br />

59 but, despite this, continued his work on optics, algebra and lunar motion,<br />

producing almost half <strong>of</strong> his total works while blind. Euler wrote over 700 books<br />

and papers, piling new papers atop older ones. The Imperial Academy, which<br />

published the papers, published the top ones first, cause later, more advanced<br />

results to appear before the ones they superseded or depended upon!<br />

Examples: Of Euler’s Theorem.<br />

(1) 12 60 ≡ 1 (mod 77), since 77 = 11 · 7 and (11 − 1)(7 − 1) = 60.<br />

(2) 19 252 ≡ 1 (mod 301), since 301 = 43 · 7 and (43 − 1)(7 − 1) = 252.<br />

(3) 23 24 ≡ 1 (mod 35) and 49 64 ≡ 1 (mod 85).<br />

⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄<br />

Where will these theorems affect our work Only in one place. The only<br />

times we’ve used “p − 1” so far is when doing modular arithmetic on the exponent.<br />

So when the modulus is the produce <strong>of</strong> two prime pq, then we must<br />

simply be careful to consider the exponent modulo (p − 1)(q − 1).<br />

Examples:<br />

(1) Compute 17 1803 %671.<br />

671 factors as 61 · 11. Since (61 − 1, 11 − 1) = 600, we must reduce 1803<br />

modulo 600. Since this is 3, we have 17 1803 ≡ 7 3 ≡ 35 (mod 77).<br />

(2) Compute 25 448 %253.<br />

253 = 11 · 23, and 10 · 22 = 220. 448%220 = 8, so 25 448 ≡ 25 8 ≡ 49<br />

(mod 253).<br />

⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄<br />

8 Euler actually proved his theorem for any modulus, rather than for the much simpler case<br />

were are concerned with here. In general it takes the form a φ(n) ≡ 1 (mod n), where φ(n) is<br />

an easily computed value. This φ is called “Euler’s phi function” and is not to be confused<br />

with Friedman’s Φ.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!