CS#3 - 2
CS#3 - 2
Initial
Permutation 32b R0 f(R0, K1)
K2 48b
32b L0
L1 = R 0 R1 f(R1, K2)
Index
1234 1234
Ro= 1000 0000 1000 0000 1100 0000 1110 0000
• Re = 0 1000 0 0 0000 1
Then,
We have Expanded Ro (32b) to Re (48b). Let say,
Re = 100000001000000011000000111000001111001010100100
Now, XOR K1 with Re:
K1 = 011010010000111110011111010101111110000001111110
XOR
Re=100000001000000011000000111000001111001010100100
---------------------------------------------------------------------------------------
Rx = 101001101000010011000000111000001101101010100101
Rx is an XORed result.
Next? S-box (Confusion), S-box rules
• 8 S-boxes, each one takes 6 bit and produce 4bit.
Rx = 101001 101000 010011 000000 111000 001101 101010 100101
S1 S2 S3 S4 S5 S6 S7 S8
• From the previous slide pick entry at row (2) & column(4), that is 10.
• Then What? Just convert number 10 into binary, 1010. Cool!
Next Part of F-function is: Straight permutation
• Let us have;
Rc = 1011 1000 0111 0000 1100 0001 1010 1101 (32bit)
• The last operation in the DES function is a permutation with a 32-bit input and a 32-bit
output.
Congratulations!
DES ANALYSIS
• Critics have used a strong magnifier to analyze DES. Tests have been done to measure the
strength of some desired properties in a block cipher.
• The elements of DES have gone through scrutinizes to see if they have met the established
criteria.
Properties
Two desired properties of a block cipher are the avalanche effect and the completeness.
• Avalanche Effect Avalanche effect means a small change in the plaintext (or key) should create a
significant change in the ciphertext. DES has been proved to be strong with regard to this
property.
Completeness Effect Completeness effect means that each bit
of the ciphertext needs to depend on many bits on the
plaintext.
• The diffusion and confusion produced by D-boxes and S-
boxes in DES, show a very strong completeness effect.
Thank You