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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

238 CHAPTER 12. RSA<br />

Neither <strong>of</strong> these processes is very hard, but each is a bit time-consuming,<br />

especially because there are several things we wrote again and again, like ÷2<br />

and (mod 171). Fortunately, we can combine the two steps and cut out much<br />

<strong>of</strong> the unnecessary writing. As a first example we redo the previous one.<br />

Example: Compute 23 159 %171.<br />

exponent quotient remainder power <strong>of</strong> 2 modulo 171<br />

159 ÷2 79.5 1 1 23 ≡ 23<br />

79 ÷2 39.54 1 2 23 2 ≡ 16<br />

39 ÷2 19.5 1 4 16 2 ≡ 85<br />

19 ÷2 9.5 1 8 85 2 ≡ 43<br />

9 ÷2 4.5 1 16 43 2 ≡ 139<br />

4 ÷2 2 0 32 139 2 ≡ 169<br />

2 ÷2 1 0 64 169 2 ≡ 4<br />

1 ÷2 .5 1 128 4 2 ≡ 16<br />

Thus 23 159 ≡ 16 · 43 · 85 · 16 · 23 ≡ 163 (mod 171).<br />

⋄<br />

From now on we will abbreviate by not writing the “÷2 =” or “power”<br />

columns. 5<br />

Example: Compute 45 61 %79.<br />

First, 45 < 79 and 61 < 70 so the base and the power are already reduced.<br />

Since 45 61 is far too big we must build we will call the binary chart.<br />

exponent quotient remainder mod 79<br />

61 30.5 1 45 ≡ 45<br />

30 15 0 45 2 ≡ 50<br />

15 7.5 1 50 2 ≡ 51<br />

7 3.5 1 51 2 ≡ 73<br />

3 1.5 1 73 3 ≡ 36<br />

1 .5 1 36 2 ≡ 32<br />

Thus 45 61 ≡ 45 · 51 · 73 · 36 · 32 ≡ 2 (mod 79).<br />

⋄<br />

12.4 Complication III: a mini one<br />

The computation we just did, 45 · 51 · 73 · 36 · 32 ≡ 2 (mod 79), almost is too<br />

much for many calculators. It certainly can happen that the final computation’s<br />

product is too big. Then what If there are too many factors, or if they are too<br />

5 In fact, one <strong>of</strong> the interesting results <strong>of</strong> this method is that we don’t need to explicitly<br />

find the proper powers <strong>of</strong> 2.

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

Saved successfully!

Ooh no, something went wrong!