9.8 DES IN THE OUTPUT-FEEDBACK MODE (OFB)

DES may be used to generate a key stream to be XORed to plaintext. DES is the output feedback mode (OFB) (Fig. 9.7) and starts with

  1. A nonsecret initial seed image
  2. A key image and
  3. A feedback parameter m with 1 ≤ m ≤ 64.

The key stream {z(i): 1 ≤ i < ∞} is defined by

image

where Rightm and Leftm take the rightmost and leftmost m bits of w:

image

is XORed to plaintext to create the ciphertext.

When m = 64, the output-feedback mode mapping depicted in Fig. 9.7 is a one-to-one mapping of image onto itself. The average cycle length is 263.

image

Figure 9.7 Output feedback mode.

When m < 64, the OFB mapping is not one to one and its cycle length is O(232), an observation first made by Davies and Parkin [1982]. This means that in a large ciphertext file with m = 1, we are likely to see the same key bit used to encipher different bits of the plaintext. And why should any value of ...

Get Computer Security and Cryptography now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.