Chapter 3-1
Chapter 3-1
P8
k1 k1
fk fk
Shift SW
SW
P8
fk k2 k2 fk
IP-1 IP
Key : K1 P8(shift(P10(key)))
K 2 P8(shift(shift(P10(key))))
Permute P 10 K3 K5 K2 K7 K4 K10 K1 K9 K8 K6
P 10
3 5 2 7 4 10 1 9 8 6
1 2 3 4 5 6 7 8 9 10
10-bit key 1 0 1 0 0 0 0 0 1 0
Permute P 10 1 0 0 0 0 0 1 1 0 0
3 5 2 7 4 10 1 9 8 6
S-DES key generation
10-bit key
10
P 10
5 5
LS-1 LS-1
5 P8 5
8
K1
LS-2 LS-2
5 5
P8
K2
Index 1 2 3 4 5 6 7 8 9 10
10-bit key 1 0 1 0 0 0 0 0 1 0 Input
P 10 3 5 2 7 4 10 1 9 8 6
P 10 1 0 0 0 0 0 1 1 0 0
LS -1 0 0 0 0 1 1 1 0 0 0
P8 6 3 7 4 8 5 10 9
P 8 (K1) 1 0 1 0 0 1 0 0 Output 1
LS -2 0 0 1 0 0 0 0 0 1 1
P 8 (K2) 0 1 0 0 0 0 1 1 Output 2