Skip to content
forked from mupq/pqm4

Project using the post-quantum crypto library for the ARM Cortex-M4 pqm4 to reproduce the Kyber CPA in https://eprint.iacr.org/2021/1311

Notifications You must be signed in to change notification settings

Chaman-veteran/KyberCPA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • C 73.9%
  • Assembly 24.9%
  • Other 1.2%