
i
i
“main-v1” — 2012/4/28 — 9:15
i
i
i
i
i
i
168 Communication System Security
computing the message digest. Let 512m + l, 0 ≤ t < 512 be the length of the
message. The padding is only applied to the last segment which has the length
l < 512. If the length of the message is a multiple of 512, then no padding is
needed.
The padding process is as follows. Let x = (x
0
, x
1
, ··· , x
l−1
) be the last
l < 512 bit massage. We also refer l to as the length of x.
1. Append “1” after x
l−1
.
2. Append 512−64−(l +1) zeroes after the “1” which is the bit appended.
After this step, we have 512 − 64 bits.
3. The last 64 bits is the binary representation of the length of the original ...