Commit 716649d1 authored by Alexander Schaub's avatar Alexander Schaub

Corrected scripts for jupyter lab.

parent f534d6ec
......@@ -12,13 +12,13 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "2184d1a5360141309ef62fdedbd1d07f",
"model_id": "eb0182d00d28466e9bfd97d323ec7b43",
"version_major": 2,
"version_minor": 0
},
......@@ -48,223 +48,6 @@
"source": [
"df = display_analysis(\"\")\n"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"./OKCN_AKCN_CNKE/Reference_Implementation/kem/OKCN-MLWE/ref/report_raw_1525794161.csv\n",
"./OKCN_AKCN_CNKE/Reference_Implementation/kem/OKCN-SEC/ref/report_raw_1525794172.csv\n",
"./OKCN_AKCN_CNKE/Reference_Implementation/kem/AKCN-MLWE/ref/report_raw_1525794186.csv\n",
"./OKCN_AKCN_CNKE/Reference_Implementation/kem/AKCN-SEC/ref/report_raw_1525794196.csv\n",
"./EMBLEM_R_EMBLEM/Reference_Implementation/R_EMBLEM_REF/report_raw_1525794220.csv\n",
"./EMBLEM_R_EMBLEM/Reference_Implementation/EMBLEM_REF/report_raw_1525794230.csv\n",
"./SPHINCSPlus/Reference_Implementation/crypto_sign/sphincs-sha256-256s/report_raw_1525794236.csv\n",
"./SPHINCSPlus/Reference_Implementation/crypto_sign/sphincs-haraka-192f/report_raw_1525794247.csv\n",
"./SPHINCSPlus/Reference_Implementation/crypto_sign/sphincs-shake256-128s/report_raw_1525794256.csv\n",
"./SPHINCSPlus/Reference_Implementation/crypto_sign/sphincs-haraka-128s/report_raw_1525794268.csv\n",
"./SPHINCSPlus/Reference_Implementation/crypto_sign/sphincs-haraka-256f/report_raw_1525794279.csv\n",
"./SPHINCSPlus/Reference_Implementation/crypto_sign/sphincs-shake256-192s/report_raw_1525794288.csv\n",
"./SPHINCSPlus/Reference_Implementation/crypto_sign/sphincs-shake256-256f/report_raw_1525794296.csv\n",
"./SPHINCSPlus/Reference_Implementation/crypto_sign/sphincs-shake256-192f/report_raw_1525794304.csv\n",
"./QC-MDPC KEM - Atsushi Yamada/Reference_Implementation/kem/mdpc/report_raw_1525794309.csv\n",
"./CFPKM/Reference_Implementation/kem/CFPKM182/report_raw_1525794313.csv\n",
"./CFPKM/Reference_Implementation/kem/CFPKM128/report_raw_1525794317.csv\n",
"./Gui/Reference_Implementation/report_raw_1525803174.csv\n",
"./Titanium/Reference_Implementation/Titanium_CCA_med/report_raw_1525794331.csv\n",
"./Titanium/Reference_Implementation/Titanium_CPA_std/report_raw_1525794346.csv\n",
"./Titanium/Reference_Implementation/Titanium_CCA_std/report_raw_1525794358.csv\n",
"./Titanium/Reference_Implementation/Titanium_CPA_toy/report_raw_1525794371.csv\n",
"./Titanium/Reference_Implementation/Titanium_CPA_hi/report_raw_1525794384.csv\n",
"./Titanium/Reference_Implementation/Titanium_CCA_lite/report_raw_1525794395.csv\n",
"./Titanium/Reference_Implementation/Titanium_CPA_med/report_raw_1525794408.csv\n",
"./NTRUEncrypt/Reference_Implementation/ntru-kem-443/report_raw_1525794427.csv\n",
"./NTRUEncrypt/Reference_Implementation/ntru-pke-443/report_raw_1525794449.csv\n",
"./NTRUEncrypt/Reference_Implementation/ntru-pke-743/report_raw_1525794470.csv\n",
"./NTRUEncrypt/Reference_Implementation/ntru-pke-1024/report_raw_1525794487.csv\n",
"./NTRUEncrypt/Reference_Implementation/ntru-kem-743/report_raw_1525794506.csv\n",
"./NTRUEncrypt/Reference_Implementation/ntru-kem-1024/report_raw_1525794522.csv\n",
"./McNie/Reference_Implementation/encrypt/3Q_192_2/report_raw_1525794576.csv\n",
"./McNie/Reference_Implementation/encrypt/3Q_256_2/report_raw_1525794627.csv\n",
"./McNie/Reference_Implementation/encrypt/3Q_192_1/report_raw_1525794673.csv\n",
"./McNie/Reference_Implementation/encrypt/4Q_256_2/report_raw_1525794737.csv\n",
"./McNie/Reference_Implementation/encrypt/4Q_256_1/report_raw_1525794795.csv\n",
"./McNie/Reference_Implementation/encrypt/3Q_128_2/report_raw_1525794842.csv\n",
"./McNie/Reference_Implementation/encrypt/4Q_192_2/report_raw_1525794901.csv\n",
"./McNie/Reference_Implementation/encrypt/4Q_128_1/report_raw_1525794958.csv\n",
"./ntruprime-20171214/Reference_Implementation/kem/sntrup4591761/report_raw_1525794963.csv\n",
"./ntruprime-20171214/Reference_Implementation/kem/ntrulpr4591761/report_raw_1525794966.csv\n",
"./RLCE/Reference_Implementation/RLCE_KEM_192B/report_raw_1525795082.csv\n",
"./RLCE/Reference_Implementation/RLCE_KEM_256B/report_raw_1525795226.csv\n",
"./RLCE/Reference_Implementation/RLCE_KEM_192A/report_raw_1525795342.csv\n",
"./RLCE/Reference_Implementation/RLCE_KEM_128A/report_raw_1525795460.csv\n",
"./RLCE/Reference_Implementation/RLCE_KEM_128B/report_raw_1525795588.csv\n",
"./RLCE/Reference_Implementation/RLCE_KEM_256A/report_raw_1525795708.csv\n",
"./Giophantus_R/Reference_Implementation/encrypt/report_raw_1525795719.csv\n",
"./Lepton/Reference_Implementation/report_raw_1525795764.csv\n",
"./qTESLA/Reference_Implementation/qTesla_192/report_raw_1525795780.csv\n",
"./qTESLA/Reference_Implementation/qTesla_256/report_raw_1525795794.csv\n",
"./qTESLA/Reference_Implementation/qTesla_128/report_raw_1525795809.csv\n",
"./MQDSS/Reference_Implementation/crypto_sign/mqdss-64/report_raw_1525795816.csv\n",
"./MQDSS/Reference_Implementation/crypto_sign/mqdss-48/report_raw_1525795824.csv\n",
"./CRYSTALS-Kyber/Reference_Implementation/crypto_kem/kyber512/report_raw_1525795833.csv\n",
"./CRYSTALS-Kyber/Reference_Implementation/crypto_kem/kyber768/report_raw_1525795842.csv\n",
"./CRYSTALS-Kyber/Reference_Implementation/crypto_kem/kyber1024/report_raw_1525795851.csv\n",
"./BIG_QUAKE/Reference_Implementation/BIG_QUAKE_1/report_raw_1525795908.csv\n",
"./BIG_QUAKE/Reference_Implementation/BIG_QUAKE_3/report_raw_1525795965.csv\n",
"./BIG_QUAKE/Reference_Implementation/BIG_QUAKE_5/report_raw_1525796026.csv\n",
"./NewHope/Reference_Implementation/crypto_kem/newhope512cpa/report_raw_1525796034.csv\n",
"./NewHope/Reference_Implementation/crypto_kem/newhope512cca/report_raw_1525796042.csv\n",
"./NewHope/Reference_Implementation/crypto_kem/newhope1024cpa/report_raw_1525796050.csv\n",
"./NewHope/Reference_Implementation/crypto_kem/newhope1024cca/report_raw_1525796058.csv\n",
"./RaCoSS/Reference_Implementation/report_raw_1525803016.csv\n",
"./NISTLizardFinal/Reference_Implementation/RLizard.CCA/report_raw_1525796061.csv\n",
"./NISTLizardFinal/Reference_Implementation/Lizard.KEM/report_raw_1525796072.csv\n",
"./NISTLizardFinal/Reference_Implementation/RLizard.KEM/report_raw_1525796082.csv\n",
"./gravity-sphincs/Reference_Implementation/report_raw_1525796093.csv\n",
"./LEDApkc/Reference_Implementation/LEDApkc/report_raw_1525803106.csv\n",
"./DRS/Reference_Implementation/report_raw_1525796111.csv\n",
"./CRYSTALS-Dilithium/Reference_Implementation/Dilithium_very_high/report_raw_1525796130.csv\n",
"./CRYSTALS-Dilithium/Reference_Implementation/Dilithium_recommended/report_raw_1525796147.csv\n",
"./CRYSTALS-Dilithium/Reference_Implementation/Dilithium_weak/report_raw_1525796165.csv\n",
"./CRYSTALS-Dilithium/Reference_Implementation/Dilithium_medium/report_raw_1525796183.csv\n",
"./Mersenne_756839/Reference_Implementation/report_raw_1525803049.csv\n",
"./Classic_McEliece/Reference_Implementation/kem/mceliece6960119/report_raw_1525796189.csv\n",
"./Classic_McEliece/Reference_Implementation/kem/mceliece8192128/report_raw_1525796197.csv\n",
"./Frodo/Reference_Implementation/reference/FrodoKEM-640/report_raw_1525796206.csv\n",
"./Frodo/Reference_Implementation/reference/FrodoKEM-976/report_raw_1525796215.csv\n",
"./Odd_Manhattan/Reference_Implementation/report_raw_1525796389.csv\n",
"./LUOV/Reference_Implementation/luov-64-68-330/report_raw_1525796433.csv\n",
"./LUOV/Reference_Implementation/luov-80-86-399/report_raw_1525796474.csv\n",
"./LUOV/Reference_Implementation/luov-48-49-242/report_raw_1525796506.csv\n",
"./LUOV/Reference_Implementation/luov-8-90-351/report_raw_1525796540.csv\n",
"./LUOV/Reference_Implementation/luov-8-117-404/report_raw_1525796576.csv\n",
"./LUOV/Reference_Implementation/luov-8-63-256/report_raw_1525796602.csv\n",
"./SRTPI/Reference_Implementation/encrypt/report_raw_1525796627.csv\n",
"./DAGS/Reference_Implementation/kem/dags5/report_raw_1525796690.csv\n",
"./DAGS/Reference_Implementation/kem/dags3/report_raw_1525796754.csv\n",
"./pqNTRUsign/Reference_Implementation/Gaussian-1024/report_raw_1525796789.csv\n",
"./pqNTRUsign/Reference_Implementation/Uniform-1024/report_raw_1525796823.csv\n",
"./LEDAkem/Reference_Implementation/KEM/report_raw_1525803127.csv\n",
"./pqsigRM/Reference_Implementation/pqsigrm612/report_raw_1525803002.csv\n",
"./pqsigRM/Reference_Implementation/pqsigrm412/report_raw_1525802993.csv\n",
"./pqsigRM/Reference_Implementation/pqsigrm613/report_raw_1525803010.csv\n",
"./Lima/Reference_Implementation/report_raw_1525796895.csv\n",
"./GuessAgain/Reference_Implementation/report_raw_1525803055.csv\n",
"./falcon_final/Reference_Implementation/falcon1024/report_raw_1525797595.csv\n",
"./falcon_final/Reference_Implementation/falcon512/report_raw_1525798336.csv\n",
"./falcon_final/Reference_Implementation/falcon768/report_raw_1525799009.csv\n",
"./HiMQ-3/Reference_Implementation/HiMQ-3F/report_raw_1525799027.csv\n",
"./HiMQ-3/Reference_Implementation/HiMQ-3/report_raw_1525799041.csv\n",
"./LOTUS/Reference_Implementation/kem/lotus192/report_raw_1525803187.csv\n",
"./LOTUS/Reference_Implementation/kem/lotus256/report_raw_1525803194.csv\n",
"./LOTUS/Reference_Implementation/kem/lotus128/report_raw_1525803181.csv\n",
"./Rainbow/Reference_Implementation/report_raw_1525803204.csv\n",
"./LAC/Reference_Implementation/report_raw_1525799131.csv\n",
"./Round2/Reference_Implementation/kem/uround2_kem_nd_l5/report_raw_1525799144.csv\n",
"./Round2/Reference_Implementation/kem/uround2_kem_n1_fn2_l4/report_raw_1525799157.csv\n",
"./Round2/Reference_Implementation/kem/uround2_kem_n1_fn2_l1/report_raw_1525799171.csv\n",
"./Round2/Reference_Implementation/kem/uround2_kem_nd_l4/report_raw_1525799184.csv\n",
"./Round2/Reference_Implementation/kem/uround2_kem_n1_fn1_l2/report_raw_1525799218.csv\n",
"./Round2/Reference_Implementation/kem/uround2_kem_n1_fn1_l1/report_raw_1525799247.csv\n",
"./Round2/Reference_Implementation/kem/nround2_kem_nd_l3/report_raw_1525799261.csv\n",
"./Round2/Reference_Implementation/kem/uround2_kem_nd_l3/report_raw_1525799274.csv\n",
"./NIST-PQ-Submission-NTRU-HRSS-KEM-20171130/Reference_Implementation/crypto_kem/ntruhrss701/report_raw_1525799280.csv\n",
"./ramstake/Reference_Implementation/Ramstake_RS_216091/report_raw_1525799762.csv\n",
"./ramstake/Reference_Implementation/Ramstake_RS_756839/report_raw_1525800246.csv\n",
"./Hila5/Reference_Implementation/report_raw_1525800251.csv\n",
"./Hila5/Optimized_Implementation/report_raw_1522326207.csv\n",
"./Hila5/Optimized_Implementation/report_raw_1523524843.csv\n",
"./Picnic/Reference_Implementation/picnicl3ur/report_raw_1525800411.csv\n",
"./Picnic/Reference_Implementation/picnicl5fs/report_raw_1525800572.csv\n",
"./Picnic/Reference_Implementation/picnicl3fs/report_raw_1525800732.csv\n",
"./Picnic/Reference_Implementation/picnicl1fs/report_raw_1525800891.csv\n",
"./Picnic/Reference_Implementation/picnicl5ur/report_raw_1525801052.csv\n",
"./Picnic/Reference_Implementation/picnicl1ur/report_raw_1525801212.csv\n",
"./ThreeBears/Reference_Implementation/crypto_kem/BabyBearEphem/report_raw_1525801217.csv\n",
"./ThreeBears/Reference_Implementation/crypto_kem/PapaBearEphem/report_raw_1525801221.csv\n",
"./ThreeBears/Reference_Implementation/crypto_kem/BabyBear/report_raw_1525801226.csv\n",
"./ThreeBears/Reference_Implementation/crypto_kem/PapaBear/report_raw_1525801230.csv\n",
"./ThreeBears/Reference_Implementation/crypto_kem/MamaBear/report_raw_1525801235.csv\n",
"./ThreeBears/Reference_Implementation/crypto_kem/MamaBearEphem/report_raw_1525801239.csv\n",
"./KINDI/Reference_Implementation/kem/KINDI-256-3-4-2/report_raw_1525801255.csv\n",
"./KINDI/Reference_Implementation/kem/KINDI-512-3-2-1/report_raw_1525801272.csv\n",
"./KINDI/Reference_Implementation/kem/KINDI-256-5-2-2/report_raw_1525801289.csv\n",
"./KINDI/Reference_Implementation/kem/KINDI-512-2-4-1/report_raw_1525801306.csv\n",
"./KINDI/Reference_Implementation/kem/KINDI-512-2-2-2/report_raw_1525801324.csv\n",
"./KINDI/Reference_Implementation/encrypt/KINDI-256-3-4-2/report_raw_1525801341.csv\n",
"./KINDI/Reference_Implementation/encrypt/KINDI-512-3-2-1/report_raw_1525801360.csv\n",
"./KINDI/Reference_Implementation/encrypt/KINDI-256-5-2-2/report_raw_1525801378.csv\n",
"./HK17/Reference_Implementation/implementation-16bit/report_raw_1525801387.csv\n",
"./HK17/Reference_Implementation/implementation-8bit/report_raw_1525801396.csv\n",
"./DME/Reference_Implementation/report_raw_1525801411.csv\n",
"./SABER_KEM/Reference_Implementation_KEM/light_saber/report_raw_1525801418.csv\n",
"./SABER_KEM/Reference_Implementation_KEM/saber/report_raw_1525801425.csv\n",
"./SABER_KEM/Reference_Implementation_KEM/fire_saber/report_raw_1525801432.csv\n",
"./EdonK/Reference_Implementation/edonk192K32N128nu4L6/report_raw_1525801655.csv\n",
"./EdonK/Reference_Implementation/edonk192K16N112nu4L8/report_raw_1525801874.csv\n",
"./EdonK/Reference_Implementation/edonk128K08N72nu8L8/report_raw_1525802051.csv\n",
"./EdonK/Reference_Implementation/edonk192K48K144nu4L4/report_raw_1525802268.csv\n",
"./EdonK/Reference_Implementation/edonk128ref/report_raw_1525802447.csv\n",
"./EdonK/Reference_Implementation/edonk128K16N80nu4L6/report_raw_1525802626.csv\n",
"./EdonK/Reference_Implementation/edonk128K16N80nu8L6/report_raw_1525802805.csv\n",
"./EdonK/Reference_Implementation/edonk128K32N96nu4L4/report_raw_1525802983.csv\n"
]
}
],
"source": [
"import os\n",
"import shlex\n",
"import subprocess\n",
"\n",
"cwd = os.getcwd()\n",
"\n",
"os.chdir(os.path.join(cwd, \"submissions\"))\n",
"p = subprocess.run(\"find -name 'report_raw_*.csv' -size +4c\", shell=True, stdout=subprocess.PIPE)\n",
"res = p.stdout.decode(\"utf-8\")\n",
"for file in res.split(\"\\n\"):\n",
" if not file:\n",
" continue\n",
" print(file)\n",
" submission_folder = file.split(\"/\")[1]\n",
" file_name = \"-\".join(file.split(\"/\")[1:])\n",
" file_name = os.path.join(\"..\", \"reports\", file_name)\n",
" with open(file, \"r\") as f:\n",
" with open(file_name, \"w+\") as f2:\n",
" f2.write(f.read())\n",
" f2.flush()\n",
"\n",
"os.chdir(cwd)\n"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<a href='Untitled.ipynb' target='_blank'>Untitled.ipynb</a><br>"
],
"text/plain": [
"/home/alexander/Documents/Télécom/Thèse/sca-plugin/cache_eval/static_analysis/Untitled.ipynb"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from IPython.display import FileLink, FileLinks\n",
"a = FileLink('Untitled.ipynb')\n",
"display(a)"
]
}
],
"metadata": {
......
......@@ -19,7 +19,7 @@ class Controls(object):
leakage_type_labels = ["Other", "PointerDeref", "CondBranch"]
leakage_types_list = widgets.HBox(
[widgets.Checkbox(value=True, description=l_name) for l_name in leakage_type_labels])
max_depth = int(max(df["Max Depth"]))
max_depth = max(10, int(max(df["Max Depth"])))
leakage_depth_limit = widgets.IntSlider(value=10, min=1, max=max_depth, description="Max depth")
leakage_type_accordion = widgets.Accordion([leakage_types_list, leakage_depth_limit])
......@@ -83,7 +83,8 @@ class Controls(object):
leakage_variable_names = get_checkbox_set(variable_names)
# TODO corriger le lien vers les fichiers
leakage_file_names = get_checkbox_set(file_names)#, [widgets.HTML('<a href="files/%s">file</a>' % f) for f in self.file_names])
leakage_file_names = get_checkbox_set(file_names, [widgets.HTML(
'<a href="files/{fn}" data-commandlinker-command="docmanager:open" data-commandlinker-args="{{&quot;path&quot;:&quot;{fn}&quot;}}">file</a>'.format(fn=f)) for f in self.file_names])
leakage_location_accordion = widgets.Accordion(
[leakage_function_names, leakage_variable_names, leakage_file_names])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment