31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

corresponding block in the plaintext and one bit in the next block. And in CFB mode<br />

the corresponding bit in the plaintext is affected as well as the complete next block. As<br />

to security ECB is clearly the worst because patterns in the plaintext are not hidden.<br />

<strong>The</strong> other three modes hide these patterns and they are almost comparable in terms of<br />

security. CBC has some small advantages (cf. [80, Chapter 9.11]). So if your are in doubt<br />

use CBC as stream-cipher.<br />

<strong>The</strong> following table summarizes some facts about the stream-ciphers in <strong>LEDA</strong>:<br />

mode encryption decryption IV security<br />

ECB C i = E K (P i ) P i = D K (C i ) none −<br />

CBC C i = E K (P i ⊕ C i−1 ) P i = D K (C i ) ⊕ C i−1 unique +(+)<br />

CFB C i = P i ⊕ E K (C i−1 ) P i = C i ⊕ E K (C i−1 ) unique! +<br />

OFB C i = P i ⊕ S i , S i = E K (S i−1 ) P i = C i ⊕ S i unique +<br />

As stated above a block-cipher is needed to make the stream-ciphers work. <strong>The</strong> following<br />

block-ciphers are part of <strong>LEDA</strong>:<br />

block-cipher block size / bits key-size / bits<br />

Blowfish 64 32 – 448<br />

Twofish 128 128 – 256<br />

Rijndael (AES) 128 128 – 256<br />

Comparing the ciphers in terms of performance Blowfish comes out worst (probably because<br />

of the smaller block size). Our implementation of Twofish is slightly faster than<br />

that of Rijndael. In terms of security it is hard to rank the three ciphers. All of them have<br />

been intensively cryptoanalyzed and no weaknesses have been found so far. Blowfish is<br />

used in the ssh command of Unix, Rijndael won the contest for the Advanced Encryption<br />

Standard (AES), and Twofish reached the final round of that contest.

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

Saved successfully!

Ooh no, something went wrong!