Make a python venv (for example named venv), for example with:
mkdir venv
python -m venv .
source venv/bin/activate
Fetch mupq
and pqclean
git submodules with the command git submodule update --init <name_submodule>
.
Compile needed implementations with python build_everything.py --platform=cw308t-stm32f3 --only=kyber512
The binary we're using in this test is the crypto_kem_kyber512_m4fspeed_test
hex.
To plot the first power trace, just do:
python get_traces.py
To append traces to the traces.log
and the ciphertexts
file, you can do:
python get_traces.py --save-traces y >> ciphertexts