Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Assume that in Round4 of DES, L4=4de5635d,

R4=3412a90e and k4=be11427e6ac2. Find R5 and L5

Given,
L4=4de5635d
R4=3412a90e
k4=be11427e6ac2

Formulae:
𝑳𝒊 = 𝑹𝒊−𝟏
𝑹𝒊 = 𝑳𝒊−𝟏 ⨁𝑭(𝑹𝒊−𝟏 , 𝒌𝒊 )

L5=R4=3412a90e
𝑹𝟓 = 𝑳𝟒 ⨁𝑭(𝑹𝟒 , 𝒌𝟒 )
Function F() Steps:
1. Out of 52 bits of 𝒌𝒊 , function F() choses 48 bits
2. 𝐑 𝐢−𝟏 of 32 bits expanded to 48 bits (divide into 8
chunks of 32 and perform copy)
3. Function F() also partitions 𝒌𝒊 , into 8 chunks of 6
bits
4. Perform XOR bitwise of Step 3 and Step 4
R4=3412a90e
In binary:
0011 0100 0001 0010 1010 1001 0000 1110
Expansion to 48 bits:
000110 001001 000010 000100 010101 110010 100000 011100

Key k4= be11427e6ac2 in binary:


1011 1110 0001 0001 0100 0010 0111 1110 0110 1010 1100 0010

XOR of R4 and K4:


000110001001000010000100010101110010100000011100
101111100001000101000010011111100110101011000010
101001101000000111000110001010010100001011011110

Hence, R4=101001101000000111000110001010010100001011011110

Further its used as address to S-Box and reduced to 32 bits

You might also like