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

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

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

62 INTERNET SECURITY<br />

Example 3.1 Assume that a 64-bit key input is K = 581fbc94d3a452ea, including 8<br />

parity bits. Find the first three round keys only: K1, K2, andK3.<br />

The register contents C0 (left) and D0 (right) are computed using Table 3.1:<br />

C0 = bcd1a45<br />

D0 = d22e87f<br />

Using Table 3.2, the blocks C1 and D1 are obtained from the block C0 and D0 by shifting<br />

one bit to the left as follows:<br />

C1 = 79a348b<br />

D1 = a45d0ff<br />

The 48-bit key K1 is derived using Table 3.3 (PC-2) by inputting the concatenated block<br />

(C1||D1) such that K1 = 27a169e58dda.<br />

The concatenated block (C2||D2) is computed from (C1||D1) by shifting one bit to the<br />

left as shown below:<br />

(C2||D2) = f346916 48ba1ff<br />

Using Table 3.3 (PC-2), the 48-bit key K2 at round 2 is computed as K2 = da91ddd7b748.<br />

Similarly, (C3||D3) is generated from shifting (C2||D2) by two bits to the left as follows:<br />

(C3||D3) = cd1a456 22e87fd<br />

Using Table 3.3, we have<br />

K3 = 1dc24bf89768<br />

In a similar fashion, all the other 16-round keys can be computed and the set of entire<br />

DES keys is listed as follows:<br />

3.1.3 DES Encryption<br />

K1 = 27a169e58dda K2 = da91ddd7b748<br />

K3 = 1dc24bf89768 K4 = 2359ae58fe2e<br />

K5 = b829c57c7cb8 K6 = 116e39a9787b<br />

K7 = c535b4a7fa32 K8 = d68ec5b50f76<br />

K9 = e80d33d75314 K10 = e5aa2dd123ec<br />

K11 = 83b69cf0ba8d K12 = 7c1ef27236bf<br />

K13 = f6f0483f39ab K14 = 0ac756267973<br />

K15 = 6c591f67a976 K16 = 4f57a0c6c35b<br />

DES operates on a 64-bit block of plaintext. After initial permutation, the block is split<br />

into two blocks Li (left) and Ri (right), each 32 bits in length. This permuted plaintext

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

Saved successfully!

Ooh no, something went wrong!