5.1 DES: Key

The respective keys Ki , 1 <= i <= 16, are all derived from K. K consists of 56 bits, whereas the single keys are Ki  48 bit long.

The calculation is done in the following steps:

1. K is extended with eigth parity bits on every 8th position to 64 bits and then passed to PC-1.

2. The permutation PC-1 (PC = permuted choice) exchanges these bits in the following scheme to 56 bits, in which process the parity bits are removed again: 5749413325179
1585042342618
1025951433527
1911360524436
63554739312315
7625446383022
1466153453729
211352820124

3.

The result (PC-1)(K) is divided up in C0  and D0  of 28 bits each.

4.Ci  and Di  with i = 1,...,16 are then calculated with
Ci = LSi (Ci-1)  or   Di = LSi (Di-1) ,
where LSi  is a circular left-shift by the number of positions from the following table:
     Iteration i  1 2 3 4 5 6 7 8 910111213141516
# Shifts 1 1 2 2 2 2 2 2 1 2 22 2 2 2 1

5. The keys Ki  with i = 1,...,16 are then determied by
Ki  = (PC-2)(Ci ,Di ),
where the permutation PC-2 is depicted in the table on the right:
14171124157
3281562110
2319124268
1672720132
415231374755
304051453348
444939563453
464250362932


Start applet in new window


AES