hadipourh / sboxanalyzer

An easy-to-use and open-source tool for differential, linear, differential-linear, and integral analysis of S-boxes
MIT License
25 stars 2 forks source link

Sagemath9.3 couldn't find the sboxanalyzer #2

Closed mtori-e closed 2 years ago

mtori-e commented 2 years ago

Hi every one :)

I have been trying to import sboxanalyzer in to sagemath , but sagemath couldn't find the model. I am using windows 10 ,and I have sagemath 9.3 , also i download Espresso and make it . Espresso , sboxanalyzer in the same directory of sagemath. I don't know what wrong ? I will attach a printscreen of the working directory folder of sage and printscreen of sagemath console.

thanks in Advance , [Meaad] image

image

hadipourh commented 2 years ago

Hi,

S-box Analyzer is originally developed in Linux. So, Linux users do not have this issue. However, it is also possible to use S-box Analyzer in windows. To do so, please follow the below steps and make sure if you have performed each step correctly:

Please let me know if this solution does not work for you.

mtori-e commented 2 years ago

Hi Hossain , 🙂

Now I copy the folder in the write directory

image

is there a way to navigate in sagmath other than cd ? I tried it, but it didn't work image

I use 'help() ' in sagemath console and couldn't find cd between the commands ! There is a load and attach command. Is this necessary to load the tool?

I try to use load and print the same path of the folder but it also did not work ! image

mtori-e commented 2 years ago

Now I found that its start to import when i change copy the files in to c:\users[myusername ]

now I am facing another problem !!

image

do you have any idea?

hadipourh commented 2 years ago

I guess there is something wrong with the binary version of ESPRESSO on your computer. I am not sure if you have successfully compiled it. However, you can download the binary version of ESPRESSO from here (please put it inside the bin folder afterward).

Some comments regarding the images you have already attached:

Hope that it helps :-)

Please let me know if this solution works.

mtori-e commented 2 years ago

I reinstall sagemath and this time I don't choose the directory, I use same the installer setting and follow the instruction from the previous comment . Also , it seems that my system didn't make espresso correctly so I download the binary version of ESPRESSO from the previous reply and paste it in bin folder that belongs to espresso .. and it works :

a print screen of the binary version path of espresso image

a print screen of sboxanalyzer folder path image

a print screen of the result :

image

Thank you so much Hossain , Meaad

hadipourh commented 2 years ago

Happy that it worked and hope this tool will be useful for you.