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

Error after installing setup.py #1

Open
kgokarn opened this issue Sep 2, 2021 · 6 comments
Open

Error after installing setup.py #1

kgokarn opened this issue Sep 2, 2021 · 6 comments

Comments

@kgokarn
Copy link

kgokarn commented Sep 2, 2021

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

@AISyLab
Copy link
Owner

AISyLab commented Sep 2, 2021 via email

@AISyLab
Copy link
Owner

AISyLab commented May 30, 2023 via email

@liliaoyuan
Copy link

Thanks.This worked.

BTW I am working with your dataset AES HD link here https://github.com/AISyLab/AES_HD/issues
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?

@AISyLab
Copy link
Owner

AISyLab commented Aug 1, 2023 via email

@liliaoyuan
Copy link

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.
Was it a implentment of AES256 and the key is 16bytes with another 16BYTES is 0?

@AISyLab
Copy link
Owner

AISyLab commented Aug 9, 2023 via email

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

3 participants