Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 735 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 735 Bytes

KyberCPA

Prerequisites

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>.

How to build firmware

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.

How to get the power consumption traces

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