Question #278466

What is the output of first round of DES algorithm when plain text and key both are all ones


1
Expert's answer
2021-12-11T10:00:54-0500

Because all inputs are 1s and IP, PC−1, PC−2 and the subkey rotations are all simple permutations, we can discount them knowing that they will output all 1s.

Because the subkeys consist of all 1s, we can discount them from the f

function calculation by inverting the S-box input (since a⊕1=a1^{-1} where a1^{-1}

denotes a bitwise NOT operation). We can also discount the E expansion since it’s guaranteed to produce all 1s.


L0=FFFFFFFF16L_0=FFFFFFFF_{16}

L1=R0=FFFFFFFF16L_1=R_0=FFFFFFFF_{16}

R1R_1 is calculated as follows:

R1=L0f(R0)R_1=L_0 \oplus f(R_0) =FFFFFFFF16f(FFFFFF16)=(f(FFFFFFFF16))1=FFFFFFFF_{16} \oplus f(FFFFFF_{16})=(f(FFFFFFFF_{16}))^{-1}

The input to the S-boxes is the all-1s E output inverted by the all-1s key, the f function is calculated as shown;

f(FFFFFFFF16)=P(S1(0),S2(0),S3(0),S4(0),S5(0),S6(0),S7(0),S8(0)f(FFFFFFFF_{16})=P(S_1(0),S_2(0),S_3(0),S_4(0),S_5(0),S_6(0),S_7(0),S_8(0)

We will call the intermediate value before P is applied R1_1 and after applying all the S-boxes, it is as follows:

11101111101001110010110001001101111101111101001110010110001001101_1

To finish calculating R1_1 we need to apply P(R1_1 ) and then invert the result:

P(R1)=110110001101100011011011101111002P(R^{'}_1)=11011000110110001101101110111100_2

(P(R1))1=001001110010011100100100010000112(P(R^{'}_1))^{-1}=00100111001001110010010001000011_2

Therefore: L1=FFFFFFFF16L_1=FFFFFFFF_{16}

R1=2727244316R_1=27272443_{16}


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS