26.10.2012 Views

Internet Security - Dang Thanh Binh's Page

Internet Security - Dang Thanh Binh's Page

Internet Security - Dang Thanh Binh's Page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

PUBLIC-KEY INFRASTRUCTURE 207<br />

Let us break the hash code into two decimal numbers as follows:<br />

h = 1 41 10 03 03 22 39 12 90 71<br />

43 18 37 47 76 01 18 20 35 10<br />

Using dA = 13 and n = 851, compute the RSA signature:<br />

1 13 (mod 851) ≡ 1<br />

41 13 (mod 851) ≡ 545<br />

.<br />

10 13 (mod 851) ≡ 333<br />

c = h d A = 001 669 084 400 400 091 348 719 157 303<br />

Send c to B.<br />

A → B<br />

635 439 333 047 089 001 439 520 466 084<br />

Send (ciphertext Y , encrypted value of K and signed hash code c) toB.<br />

Server B<br />

1. Decryption of secret session key K:<br />

Received encryption key K:<br />

K = 0270 2524 1479 0285 1773 3139 2753 3669 3198<br />

Choose dB = 1019 (B’s private key) and decrypt K block by block:<br />

270 1019 (mod 3337) ≡ 5<br />

2524 1019 (mod 3337) ≡ 23<br />

.<br />

.<br />

3198 1019 (mod 3337) ≡ 81<br />

K = 05 23 67 72 55 02 68 10 81<br />

or<br />

K = 52367725502681081 (decimal)<br />

= ba0c2b3c484ff9 (hexadecimal)<br />

2. Decryption of m using DES:<br />

Ciphertext Y = a78791c0c8f0b444<br />

Restored DES key K = ba0c2b3c484ff9

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

Saved successfully!

Ooh no, something went wrong!