
i
i
“main-v1” — 2012/4/28 — 9:15
i
i
i
i
i
i
Design of Block Ciphers, Hash Functions, and MAC 173
4.6.2 CBC-MAC
Let m = m
1
, m
2
, ··· , m
l
where m
i
∈ F
n
2
, i.e., an n-bit vector. A CBC-MAC
of message m is generated by the following procedure.
t
i
= f
k
(t
i−1
+ m
i
), i = 1, ··· , l, where
t
0
=
(
0 for fixed length of message, i.e., l is fixed.
l for variable length of message, i.e., l is variable.
(4.3)
(Note. 0 represents a vector or the value zero depending on the context. Here
t
0
= 0 means that t
0
is an n-bit zero vector.) Thus
T ag = t
l
or M AC
k
(m) = t
l
. (4.4)
When a sender sends (m, T ag), we assume that the verifier receives
( ˆm,
ˆ
T ag). Then it computes t
i
in (4.3) and T ag