[JoGu]

Cryptology

II.3 Modes of Operation of Block Ciphers

a7Hzq .#5r<
kÜ\as TâÆK$
ûj(Ö2 ñw%h:
Úk{4R f~`z8
¤˜Æ+Ô „&¢Dø

Contents

  1. ECB = Electronic Code Book [PDF].
  2. CBC = Cipher Block Chaining [PDF].
  3. Variants of CBC [PDF].
  4. CFB = Cipher Feedback [PDF].
  5. OFB = Output Feedback (and CTR = Counter Mode) [PDF].

The complete Section II.3 as an PDF file.


Introduction

A bitblock encryption function f : F2nF2n is primarily defined on blocks of fixed length n. To encrypt longer (or shorter) bit sequences the sender must

  1. split the sequence into n-bit blocks,
  2. pad the last block if necessary with

Then each block is encrypted by f, but in general one uses some sort of »chaining«. Four chaining procedures, called »modes of operation« were standardized together with DES:

These chaining procedures apply to each block cipher. The standardization in the context of AES added two more modes:

The official web site for these standards is

https://csrc.nist.gov/projects/block-cipher-techniques

For a description of the modes a suitable general framework is a »block alphabet« Σ, with F2n as most important example, equipped with a group composition *.

Furthermore we fix an encryption function

f : Σ → Σ.

The dependence on the key doesn't matter in this context and therefore is dropped in the notation.


Author: Klaus Pommerening, 2000-Mar-24; last change: 2021-Jan-20.