Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some questions in running codes #9

Open
ali13711992 opened this issue Aug 8, 2020 · 0 comments
Open

some questions in running codes #9

ali13711992 opened this issue Aug 8, 2020 · 0 comments

Comments

@ali13711992
Copy link

Hi dear PEIGEN developer.
I have closed previous Issue accidently (#8)
Finally I did it.
code is running successfully now. The problem coused by computer hardware performance. I have just learned by experience that code not running correctly on AMD CPU architecture. code not running correctly on virtual machine (I have used Oracle VirtualBox). code is running correctly on this system config:

Ubuntu 18.04.4 LTS
CPU: Intel® Core™ i5-8400 CPU @ 2.80GHz × 6
Memory: 16GB

Now, there are 3 question i have:
1- i have run the code to check Affine Equivalence between two sboxes and result was like this:
----------------------Affine Equivent Check Result----------------------
RS: dec0_7b30_6cac_bd0a, 000102030406080a050c0b0f0d070e09
S1_L1: 9696_cccc_ff00_55aa, 00090c050801040d030a0f060b02070e
S1_L2: 33cc_6996_9966_0ff0, 00060e0805030b0d0f0901070a0c0402
S1_c: 9
S2_L1: 6996_3c3c_cccc_ff00, 00080e060c04020a0901070f050d0b03
S2_L2: 3c3c_9966_0ff0_5a5a, 00050c090b0e070206030a0f0d080104
S2_c: 9

may you clearify what is RS, S1_L1, S1_L2, S1_c, S2_L1, S2_L2, S2_c?
2:
I have run the command "make gen_n4" then "./gen_n4 -v -c 6 -l 6 -p 4 -r 160 --not1 --and2 --andn2 --or2 --xor2 -f software.conf -s criteria.conf" results is provided as 2.txt in results.zip attachment. when i run the command computation will be done but results .csv file is empty and only have headers. please tell me how to solve the problem.
3:
I want to save evaluation results for n-bit sboxes in seperate folders for example i want to put results of this code in a Folder named "4bits_ Sboxes_eva":
t0 = clock();
Peigen::weight::lighter<4> sbox4_Eva;
sbox4_Eva.omp_nb_threads = 1;
sbox4_Eva.evaluate("sboxes4.txt", "properties_sboxes4.csv");
sbox4_Eva.evaluate_verbose("sboxes4.txt", "properties");
t1 = clock() - t0;
cout << "Total time (mins): " << (((double)t1) / (CLOCKS_PER_SEC * 60.0)) << endl;

thank you for your great program and i praise your afforts
results.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant