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.

152 INTERNET SECURITY<br />

A<br />

B<br />

C<br />

D<br />

E<br />

t Wt<br />

15 W15 = M15<br />

16 W16 = S 1 (W0 ⊕ W2 ⊕ W8 ⊕ W13)<br />

17 W17 = S 1 (W1 ⊕ W3 ⊕ W9 ⊕ W14)<br />

. ........................<br />

30 W30 = S 1 (W14 ⊕ W16 ⊕ W22 ⊕ W27)<br />

31 W31 = S 1 (W15 ⊕ W17 ⊕ W23 ⊕ W28)<br />

. ........................<br />

59 W59 = S 1 (W43 ⊕ W45 ⊕ W51 ⊕ W56)<br />

60 W60 = S 1 (W44 ⊕ W46 ⊕ W52 ⊕ W57)<br />

. ........................<br />

78 W78 = S 1 (W62 ⊕ W64 ⊕ W70 ⊕ W75)<br />

79 W79 = S 1 (W63 ⊕ W65 ⊕ W71 ⊕ W76)<br />

S 5<br />

S 30<br />

f t<br />

W t<br />

Figure 4.13 SHA-1 operation.<br />

Example 4.7 Let the original message be 1a7fd53b4c. Then, the final padded message<br />

consists of the following 16 words:<br />

1a7fd53b 4c800000 00000000 00000000<br />

00000000 00000000 00000000 00000000<br />

00000000 00000000 00000000 00000000<br />

00000000 00000000 00000000 00000028<br />

The initial hex values of {Hi} are<br />

H0 = 67452301<br />

H1 = efcdab89<br />

K t<br />

A<br />

B<br />

C<br />

D<br />

E

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

Saved successfully!

Ooh no, something went wrong!