1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| +----------------+ +-----------------+
| plaintext[0:n] | | plaintext[n:2n] |
+--------+-------+ +--------+--------+
| |
v v
iv----------------->xor +-------------------->xor
| | |
v | v
+-------------------------+ | +-------------------------+
key---->| block cipher encryption | | key---->| block cipher encryption |
+------------|------------+ | +------------|------------+
| | |
v | v
+-----------------+ | +------------------+
| ciphertext[0:n] -----+ | ciphertext[n:2n] |
+-----------------+ +------------------+
|