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.

282 INTERNET SECURITY<br />

SSLCompressed.fragment: The compressed fragment (the plaintext<br />

fragment if not compressed)<br />

||: concatenation symbol<br />

The compressed message plus the MAC are encrypted using symmetric encryption.<br />

The block ciphers being used as encryption algorithms are:<br />

DES(56), Triple DES(168), IDEA(128),<br />

RC5(variable) and Fortezza(80)<br />

where the number inside the brackets indicates the key size. Fortezza is a PCMCIA<br />

card that provides both encryption and digital signing.<br />

For block encryption, padding is added after the MAC prior to encryption. The<br />

total size of the data (plaintext plus MAC plus padding) to be encrypted must be<br />

a multiple of the cipher’s block length. Padding is added to force the length of the<br />

plaintext to be a multiple of the block cipher’s block length. Padding is formed by<br />

appending a single ‘1’ bit to the end of the message and then ‘0’ bits are added, as<br />

many as needed. The last 64 bits of the total size of padded data are reserved for the<br />

original message length.<br />

For stream encryption, the compressed message plus the MAC are encrypted. Since<br />

the MAC is computed before encryption takes place, it is encrypted along with the<br />

compressed plaintext.<br />

• Append SSL record header: The final processing of the SSL Record Protocol is to<br />

append an SSL record header. The composed fields consist of:<br />

– Content type (8 bits): This field is the higher-layer protocol used to process the<br />

enclosed fragment.<br />

– Major version (8 bits): This field indicates the major version of SSL in use. For<br />

SSLv3, the value is 3.<br />

– Minor version (8 bits): This field indicates the minor version of SSL in use. For<br />

SSLv3, the value is 0.<br />

– Compressed length (16 bits): This field indicates the length in bytes of the plaintext<br />

fragment or compressed fragment if compression is required. The maximum<br />

value is 2 14 + 2048.<br />

Figure 8.4 illustrates the SSL Record Protocol format.<br />

The SSL-specific protocols consist of the Change Cipher Spec Protocol, the Alert<br />

Protocol and the Handshake Protocol, as shown in Figure 8.1. The contents of these three<br />

protocols are presented in what follows.<br />

8.1.3 SSL Change Cipher Spec Protocol<br />

The Change Cipher Spec Protocol is the simplest of the three SSL-specific protocols.<br />

This protocol consists of a single message, which is compressed and encrypted under<br />

the current CipherSpec. The message consists of a single byte of value 1. The change<br />

cipher spec message is sent by both the client and server to notify the receiving party

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

Saved successfully!

Ooh no, something went wrong!