-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error after installing setup.py #1
Comments
Hi, it is difficult to reproduce the error you got. I am not sure what is the problem.
Please note that we do not offer support for that tool for some time already so it also maybe does not work well with latest python versions.
Best,
Stjepan
From: Kartik Nayak ***@***.***>
Sent: Thursday, September 2, 2021 3:53 PM
To: AISyLab/side-channel-analysis-toolbox ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [AISyLab/side-channel-analysis-toolbox] Error after installing setup.py (#1)
Hello,
I am trying to use the side-channel toolbox on my Ubuntu virtualbox. However, I have some issues.
I have run the command
sudo python3 setup.py install
export PYTHONPATH=$(pwd)
these steps work fine.
but when I try to run
python3 sca mia --traces 2000
I get the following error:
The needed files are being loaded...
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/kartik/sidechannel/side-channel-analysis-toolbox/sca/main.py", line 895, in
cli()
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/kartik/sidechannel/side-channel-analysis-toolbox/sca/main.py", line 367, in mia
traces, keys, plain = FileLoader.main(traces_file, keys_file, plain_file)
File "/usr/local/lib/python3.8/dist-packages/sca-0.0.0-py3.8.egg/sca/util/file_loader.py", line 69, in main
File "/usr/local/lib/python3.8/dist-packages/sca-0.0.0-py3.8.egg/sca/util/file_loader.py", line 16, in load_traces
File "/usr/local/lib/python3.8/dist-packages/numpy-1.21.2-py3.8-linux-x86_64.egg/numpy/lib/npyio.py", line 445, in load
raise ValueError("Cannot load file containing pickled data "
ValueError: Cannot load file containing pickled data when allow_pickle=False
I am running python 3.8 on the machine.
Thanks in advance,
Kartik
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_AISyLab_side-2Dchannel-2Danalysis-2Dtoolbox_issues_1&d=DwMCaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=Rusl6NbwLaj_dRiNREPd6vcVkO0pFwo7i1xXfL28tEI&m=XFwG0UWKOvAlx81VlWpmx82xd9RM_Yvl-DHAfdQw3EQ&s=_GLUqknUBiaH94yY1y-INsUxTbkR_q9Rl5KD_CEj3iA&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_APDG755GSZRK3VCWAIQU27TT756UZANCNFSM5DJFOT4A&d=DwMCaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=Rusl6NbwLaj_dRiNREPd6vcVkO0pFwo7i1xXfL28tEI&m=XFwG0UWKOvAlx81VlWpmx82xd9RM_Yvl-DHAfdQw3EQ&s=sQog_Oz6eX1NIf8YWu2jQVN_fmcypJ-AGPBJIugyXE0&e=>.
Triage notifications on the go with GitHub Mobile for iOS<https://urldefense.proofpoint.com/v2/url?u=https-3A__apps.apple.com_app_apple-2Dstore_id1477376905-3Fct-3Dnotification-2Demail-26mt-3D8-26pt-3D524675&d=DwMCaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=Rusl6NbwLaj_dRiNREPd6vcVkO0pFwo7i1xXfL28tEI&m=XFwG0UWKOvAlx81VlWpmx82xd9RM_Yvl-DHAfdQw3EQ&s=Z4GFmz-9WW42731UMcfgBdGFo7ryVW2de3w08nXzD2E&e=> or Android<https://urldefense.proofpoint.com/v2/url?u=https-3A__play.google.com_store_apps_details-3Fid-3Dcom.github.android-26referrer-3Dutm-5Fcampaign-253Dnotification-2Demail-2526utm-5Fmedium-253Demail-2526utm-5Fsource-253Dgithub&d=DwMCaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=Rusl6NbwLaj_dRiNREPd6vcVkO0pFwo7i1xXfL28tEI&m=XFwG0UWKOvAlx81VlWpmx82xd9RM_Yvl-DHAfdQw3EQ&s=iFQ-je5SsTg5sZF0JXPcVqAmnqgkPvzEvK5SjUKWp6Y&e=>.
|
Hi, unfortunately, I do not know how to help as it does not seem to be the issue with the code but with your setup or something doing on your side.
Best,
Stjepan
From: Liaoyuan Li ***@***.***>
Sent: Tuesday, 30 May 2023 10:46
To: AISyLab/side-channel-analysis-toolbox ***@***.***>
Cc: AISyLab @ TU Delft ***@***.***>; Comment ***@***.***>
Subject: Re: [AISyLab/side-channel-analysis-toolbox] Error after installing setup.py (#1)
Hi there,
I come across a issue when install setup.py
it seems due to Processing sca-0.0.0-py3.11.egg
Removing d:\python3.11\lib\site-packages\sca-0.0.0-py3.11.egg
get error:The process cannot access the file because it is being used by another process: 'd:\python3.11\lib\site-packages\sca-0.0.0-py3.11.egg'
verison:
python 3.11.3
windows 10.12
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/AISyLab/side-channel-analysis-toolbox/issues/1*issuecomment-1568020581__;Iw!!PAKc-5URQlI!-2wTPI7juaxmU0obZ1NTasmQDR-eHjgQ4hRf4ecKcL8XBMWza6Z2AJvtu8_G0euRI0xR2zS1e0lrxGB0Qg6zhx7VEA$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/APDG7534EQTSHXJ6C3S55ETXIWXTFANCNFSM5DJFOT4A__;!!PAKc-5URQlI!-2wTPI7juaxmU0obZ1NTasmQDR-eHjgQ4hRf4ecKcL8XBMWza6Z2AJvtu8_G0euRI0xR2zS1e0lrxGB0Qg4KL7WK6w$>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Thanks.This worked. BTW I am working with your dataset AES HD link here https://github.com/AISyLab/AES_HD/issues For the data:Does that refer to the plaintext or something? cause the shape of that is like to 50000 * 48, actually 48bytes I guess it is AES 256? Could you please help me with that? |
So, it works now? All clear?
Stjepan
From: Liaoyuan Li ***@***.***>
Sent: Tuesday, 1 August 2023 08:00
To: AISyLab/side-channel-analysis-toolbox ***@***.***>
Cc: AISyLab @ TU Delft ***@***.***>; Comment ***@***.***>
Subject: Re: [AISyLab/side-channel-analysis-toolbox] Error after installing setup.py (#1)
Thanks.This worked.
BTW I am working with your dataset AES HD link here https://github.com/AISyLab/AES_HD/issues<https://urldefense.com/v3/__https:/github.com/AISyLab/AES_HD/issues__;!!PAKc-5URQlI!98uZLbRhf7MgOsOkdaaqjnski1HqL16IXejTDJ2Gc9nyTACmJxhtm-c_gFfRFSKDIrDdpFgefdVz-a58wgh8TBC41w$>
Got confused about some conceptions
For the data:Does that refer to the plaintext or something? cause the shape of that is like to 50000 * 48, actually 48bytes I guess it is AES 256?
So data in "data" was the plaintext or ciphertext? I have to have the defination for caculating the Hamming weight value.
Could you please help me with that?
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/AISyLab/side-channel-analysis-toolbox/issues/1*issuecomment-1659618875__;Iw!!PAKc-5URQlI!98uZLbRhf7MgOsOkdaaqjnski1HqL16IXejTDJ2Gc9nyTACmJxhtm-c_gFfRFSKDIrDdpFgefdVz-a58wghG-cOVVA$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/APDG757VJDRYS7XWWVMR54TXTCLNDANCNFSM5DJFOT4A__;!!PAKc-5URQlI!98uZLbRhf7MgOsOkdaaqjnski1HqL16IXejTDJ2Gc9nyTACmJxhtm-c_gFfRFSKDIrDdpFgefdVz-a58wgiLWzX4GQ$>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Yep. And Before this was close. Can you help me understand the usage of another repo of you. Source is attached here https://github.com/AISyLab/AES_HD/issues It seems the dataset was link to a paper, However I can not find it so that I have no idea the trace given. |
Hi, I asked my colleague to respond to you. Did you receive the answer?
Stjepan
From: Liaoyuan Li ***@***.***>
Sent: Wednesday, August 2, 2023 8:07 AM
To: AISyLab/side-channel-analysis-toolbox ***@***.***>
Cc: AISyLab @ TU Delft ***@***.***>; Comment ***@***.***>
Subject: Re: [AISyLab/side-channel-analysis-toolbox] Error after installing setup.py (#1)
Yep.
And Before this was close.
Can you help me understand the usage of another repo of you. Source is attached here https://github.com/AISyLab/AES_HD/issues<https://urldefense.com/v3/__https:/github.com/AISyLab/AES_HD/issues__;!!PAKc-5URQlI!7BEEi4wAK_YD_C6_Wes5M47mJaEVnqwOb9MVDbteTya9nJgUa-KT4m9SC530vwm8tNDL8Wjr075am8chwK98QHMnIA$>
It seems the dataset was link to a paper, However I can not find it so that I have no idea the trace given.
Was it a implentment of AES256 and the key is 16bytes with another 16BYTES is 0?
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/AISyLab/side-channel-analysis-toolbox/issues/1*issuecomment-1661549120__;Iw!!PAKc-5URQlI!7BEEi4wAK_YD_C6_Wes5M47mJaEVnqwOb9MVDbteTya9nJgUa-KT4m9SC530vwm8tNDL8Wjr075am8chwK9S3AMkoQ$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/APDG75YNOQZF5QKIH6P4MI3XTHVBLANCNFSM5DJFOT4A__;!!PAKc-5URQlI!7BEEi4wAK_YD_C6_Wes5M47mJaEVnqwOb9MVDbteTya9nJgUa-KT4m9SC530vwm8tNDL8Wjr075am8chwK_MIjeA-Q$>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hello,
I am trying to use the side-channel toolbox on my Ubuntu virtualbox. However, I have some issues.
I have run the command
sudo python3 setup.py install
export PYTHONPATH=$(pwd)
these steps work fine.
but when I try to run
python3 sca mia --traces 2000
I get the following error:
The needed files are being loaded...
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/kartik/sidechannel/side-channel-analysis-toolbox/sca/main.py", line 895, in
cli()
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/kartik/sidechannel/side-channel-analysis-toolbox/sca/main.py", line 367, in mia
traces, keys, plain = FileLoader.main(traces_file, keys_file, plain_file)
File "/usr/local/lib/python3.8/dist-packages/sca-0.0.0-py3.8.egg/sca/util/file_loader.py", line 69, in main
File "/usr/local/lib/python3.8/dist-packages/sca-0.0.0-py3.8.egg/sca/util/file_loader.py", line 16, in load_traces
File "/usr/local/lib/python3.8/dist-packages/numpy-1.21.2-py3.8-linux-x86_64.egg/numpy/lib/npyio.py", line 445, in load
raise ValueError("Cannot load file containing pickled data "
ValueError: Cannot load file containing pickled data when allow_pickle=False
I am running python 3.8 on the machine.
Thanks in advance,
Kartik
The text was updated successfully, but these errors were encountered: