DES (Data Encryption Standard)
DES (Data Encryption Standard)
This means, for example, C3 and D3 are obtained from C2 and D2,
respectively, by two left shifts, and C16 and D16 are obtained from C15 and
D15, respectively, by one left shift
DES(Data Encryption Standard)/subkey
C0 = D8 =
1111000011001100101010101111 1001111000111101010101011001
D0 = C9 =
0101010101100110011110001111 0101010101111111100001100110
C1 = D9 =
1110000110011001010101011111 0011110001111010101010110011
D1 =
C10 =
1010101011001100111100011110
0101010111111110000110011001
C2 D10 =
=1100001100110010101010111111
1111000111101010101011001100
D2 =
0101010110011001111000111101 C11 =
C3 = 0101011111111000011001100101
0000110011001010101011111111 D11 =
D3 = 1100011110101010101100110011
0101011001100111100011110101 C12 =
C4 = 0101111111100001100110010101
0011001100101010101111111100 D12 =
DES(Data Encryption Standard)
Compression Permutation
We now form the keys Kn, for 1<=n<=16, by applying the
following permutation table to each of the concatenated
pairs CnDn. Each pair has 56 bits, but PC-2 only uses 48 of
these.
14 17 11 24 1 5
3 28 15 6 21 10
23 19 12 4 26 8
16 7 27 20 13 2
41 52 31 37 47 55
30 40 51 45 33 48
44 49 39 56 34 53
46 42 50 36 29 32
DES(Data Encryption Standard)
Therefore, the first bit of Kn is the 14th bit of CnDn, the
second bit the 17th, and so on, ending with the 48th bit of
Kn being the 32th bit of CnDn.
Example:
For the first key we have C1D1 = 1110000 1100110 0101010
1011111 1010101 0110011 0011110 0011110
which, after we apply the permutation PC-2, becomes
K1 = 000110 110000 001011 101111 111111 000111 000001
110010
DES(Data Encryption Standard)
Step 2: Encode each 64-bit block of data.
There is an initial permutation IP of the 64 bits of the
message data M. This rearranges the bits according to the
following table
DES(Data Encryption Standard)
Example:
Applying the initial permutation to the block of text M,
given previously, we get
M = 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110
1111
IP = 1100 1100 0000 0000 1100 1100 1111 1111 1111 0000 1010 1010 1111 0000 1010
1010
Next divide the permuted block IP into a left half L0 of 32
bits, and a right half R0 of 32 bits.
Example: From IP, we get L0 and R0
L0 = 1100 1100 0000 0000 1100 1100 1111 1111
R0 = 1111 0000 1010 1010 1111 0000 1010 1010
Then for n going from 1 to 16 we calculate
Ln = Rn-1
DES(Data Encryption Standard)/function
Expansion permutation
DES(Data Encryption Standard)/whitener(XOR)