
i
i
“main-v1” — 2012/4/28 — 9:15
i
i
i
i
i
i
Design of Block Ciphers, Hash Functions, and MAC 163
Cipher Block Chaining (CBC) Mode: For plaintext M
0
, ··· , M
N−1
,
each is a 128-bit vector, the encryption and decryption processes are given by
Encryption C
0
= E
K
(IV + M
0
), and
C
i
= E
K
(C
i−1
+ M
i
), i = 1, ··· , N − 1.
Decryption M
0
= D
K
(C
0
) + IV, and
M
i
= D
K
(C
i
) + C
i−1
, i = 1, ··· , N − 1.
Those processes are shown below, where the block which holds the IV in
encryption is a delayed operator, i.e., the input is C
i
and the output is C
i−1
,
while in decryption, it is a forward operator, i.e., the input is C
i
and the
output is C
i+1
.
IV
E
+
M
i
C
i
K
CBC Encryption
IV
D
+
C
i
M
i
K
CBC Decryption ...