Understanding Cryptography by Christof Paar and Jan Pelzl - Chapter 3 Solutions - Ex3.4

- 1 min

Exercise 3.4

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

Solution

I haven’t yet verified this solution independently. If you spot any mistakes, please leave a comment in the Disqus box at the bottom of the page.

Because all inputs are 1s and , , 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 function calculation by inverting the S-box input (since where denotes a bitwise NOT operation). We can also discount the expansion since it’s guaranteed to produce all 1s.

is calculated as follows:

Because the input to the S-boxes is the all-1s output inverted by the all-1s key, calculating the function is the same as for Ex3.3:

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

To finish calculating we need to apply and then invert the result:

Therefore:

Note: The output for is the same as for Ex3.3, but inverted.


Thomas Busby

Thomas Busby

I write about computing stuff

comments powered by Disqus
rss facebook twitter github youtube mail spotify instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora