Ask Your Question
0

How to find difference table of DES S box in sage math?

asked 2021-05-03 06:38:18 +0100

sadi gravatar image

I have tried to find difference table of an Sbox in sage but it supports square Sboxes. Is there a way to find the difference table of an Sboxes like DES. Below is the code and the output when I tried to enter two rows of Sbox.

sage: S = SBox(14,4,13,1,2,15,11,8,3,10,6,12,5,9,0,7,0,15,7,4,14,2,13,1,10,6,12,11,9,5,3,8) sage: S.difference_distribution_table() The out put is

32 x 16 dense matrix over Integer Ring (use the '.str()' method to see the entries)

I donot know what is .str() method. Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-05-03 20:11:50 +0100

Max Alekseyev gravatar image

Try:

S.difference_distribution_table().str()
edit flag offensive delete link more

Comments

It works Thanks

sadi gravatar imagesadi ( 2021-05-06 23:52:04 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2021-05-03 06:38:18 +0100

Seen: 172 times

Last updated: May 03 '21