peigen-sboxes / PEIGEN

An open source project for study S-boxes
GNU General Public License v3.0
37 stars 19 forks source link

some questions in running codes #9

Open ali13711992 opened 4 years ago

ali13711992 commented 4 years ago

Hi dear PEIGEN developer. I have closed previous Issue accidently (https://github.com/peigen-sboxes/PEIGEN/issues/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 "./genn4 -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