
i
i
“main-v1” — 2012/4/28 — 9:15
i
i
i
i
i
i
Design of Block Ciphers, Hash Functions, and MAC 153
where x · w =
P
i
x
i
w
i
, the inner product of x = (x
0
, ··· , x
n−1
) and w =
(w
0
, ··· , w
n−1
).
An S-box in DES can be considered as a map from 6-bits to 4-bits. We
write S-box 3 as S
3
(x) where x = (x
0
, ··· , x
5
). Thus
S
3
(x) = (f
3,0(x)
, f
3,1
(x), f
3,2
(x), f
3,3
(x))
where f
ij
is a boolean function in 6 variables. In the following table, we list
the distributions of Hadamard transform (corresponding to nonlinearity of
the function) and Avalanche transform of S-box 4. The entries in the first
row are the different values that
ˆ
f
3,j
or A
f
4,j
takes and the entries in the rest
of the ...