21.03.2013 Views

Problem - Kevin Tafuro

Problem - Kevin Tafuro

Problem - Kevin Tafuro

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.

The primary advantages of CFB mode are:<br />

• For ciphers where raw encryption and decryption operations require separate<br />

algorithms (particularly AES), only a single algorithm is necessary. In such a<br />

case, the faster of the two algorithms can be used.<br />

• A minor bit of precomputational work can be done in advance of receiving a<br />

block-sized element of data, but this is not very significant compared to CTR<br />

mode or OFB mode.<br />

• It does not have nonce-size problems when used with 64-bit block ciphers.<br />

These days, CFB mode is rarely used because CTR mode and OFB mode provide<br />

more advantages with no additional drawbacks.<br />

We discuss CFB mode in Recipe 5.7.<br />

Carter-Wegman + CTR (CWC) mode<br />

CWC mode is a high-level encryption mode that provides both encryption and builtin<br />

message integrity, similar to CCM and OCB modes (discussed later).<br />

CWC is a new mode, introduced by Tadayoshi Kohno, John Viega, and Doug Whiting.<br />

NIST is currently considering CWC mode for standardization.<br />

The primary disadvantages of CWC are:<br />

• The required nonce must never be reused (this is easy to avoid).<br />

• It isn’t well suited for use with 64-bit block ciphers. It does work well with AES,<br />

of course.<br />

The primary advantages of CWC mode are:<br />

• CWC ensures message integrity in addition to performing encryption.<br />

• The additional functionality requires minimal message expansion. (You would<br />

need to send the same amount of data to perform integrity checking with any of<br />

the cipher modes described earlier.)<br />

• CWC is parallelizable (hardware implementations can achieve speeds above 10<br />

gigabits per second).<br />

• CWC has provable security properties while using only a single block cipher key.<br />

This means that under reasonable assumptions on the underlying block cipher,<br />

the mode provides excellent secrecy and message integrity if the nonce is always<br />

unique.<br />

• CWC leverages all the good properties of CTR mode, such as being able to handle<br />

messages without padding and being slow to leak information.<br />

• For ciphers where raw encryption and decryption operations require separate<br />

algorithms (particularly AES), only a single algorithm is necessary. In such a<br />

168 | Chapter 5: Symmetric Encryption<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!