sbox icon indicating copy to clipboard operation
sbox copied to clipboard

SAGE can't process component functions for huge SBOX list

Open smitadas95 opened this issue 2 years ago • 5 comments

Hi. Sage is unable to generate algebraic normal form(ANF) results for a huge SBOX list and it kills the terminal. How to overcome this issue?

smitadas95 avatar Sep 09 '22 11:09 smitadas95

Hi,

What is the size of your S-box? n? m?

okazymyrov avatar Sep 09 '22 11:09 okazymyrov

It's 5X5 bit

smitadas95 avatar Sep 09 '22 11:09 smitadas95

Hm... It should not be an issue. I have tested up to n=m=10. I cannot verify right now (will check on Monday), but you can test with:

sage: S=Sbox(n=5,m=5)
sage: S.generate_sbox(method='random_permutation')
sage: S.interpolation_polynomial()

However, if you are refering to the original ANF of SBOX (default in Sage), then ask the author of the library.

okazymyrov avatar Sep 09 '22 11:09 okazymyrov

Sure.

smitadas95 avatar Sep 09 '22 11:09 smitadas95

For S-Boxes 8x8 the library works fine.

okazymyrov avatar Sep 18 '22 18:09 okazymyrov