0
$\begingroup$

I Have used Sage command

sage: S = SBox(14,4,13,1,2,15,11,8,3,10,6,12,5,9,0,7) sage: S.difference_distribution_table() the output is [16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [ 0 0 0 2 0 0 0 2 0 2 4 0 4 2 0 0] [ 0 0 0 2 0 6 2 2 0 2 0 0 0 0 2 0] [ 0 0 2 0 2 0 0 0 0 4 2 0 2 0 0 4] [ 0 0 0 2 0 0 6 0 0 2 0 4 2 0 0 0] [ 0 4 0 0 0 2 2 0 0 0 4 0 2 0 0 2] [ 0 0 0 4 0 4 0 0 0 0 0 0 2 2 2 2] [ 0 0 2 2 2 0 2 0 0 2 2 0 0 0 0 4] [ 0 0 0 0 0 0 2 2 0 0 0 4 0 4 2 2] [ 0 2 0 0 2 0 0 4 2 0 2 2 2 0 0 0] [ 0 2 2 0 0 0 0 0 6 0 0 2 0 0 4 0] [ 0 0 8 0 0 2 0 2 0 0 0 0 0 2 0 2] [ 0 2 0 0 2 2 2 0 0 0 0 2 0 6 0 0] [ 0 4 0 0 0 0 0 4 2 0 2 0 2 0 2 0] [ 0 0 2 4 2 0 0 0 6 0 0 0 0 0 2 0] [ 0 2 0 0 6 0 0 0 0 4 0 2 0 0 2 0] 

This output is produced from one first line of S box. How to find the difference table of the whole S box

$\endgroup$
2
  • 1
    $\begingroup$ The module only works square sboxes. You can benefit this answers or ask at ask.sagemath.org $\endgroup$ Commented May 2, 2021 at 20:24
  • $\begingroup$ I wanted to know the method for rectangular S boxes like DES. Has anyone gone through this type of problem before. Thank in advance $\endgroup$ Commented May 3, 2021 at 4:18

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.