BabyMelvin / mkm4

This is the repository for the first-order masked Kyber on ARM Cortex-M4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First-Order Masked Kyber on ARM Cortex-M4

This is the repository for the first-order masked Kyber on ARM Cortex-M4 ePrint

Setup/Installation

First setup the same tools (STLink, ARM Toolchain, OpenOCD) as in the pqm4 project with the STM32F4 Discovery board.

# Build the firmware if you haven't already
make clean
make IMPLEMENTATION_PATH=crypto_kem/kyber768/m4 "$target"

Using Visual Studio Code

  • Install the Corte-Debug extension (marus25.cortex-debug).
  • Build the firmware
  • Run the "OpenOCD" debug config

Doing it manually

target="elf/crypto_kem_kyber768_m4_test.elf"

make clean
make IMPLEMENTATION_PATH=crypto_kem/kyber768/m4 "$target"

# In a separate terminal, start openocd using:
openocd --file stm32f4discovery.cfg

# Start GDB
arm-none-eabi-gdb -q -x openocd.gdb "$target"

About

This is the repository for the first-order masked Kyber on ARM Cortex-M4

License:Other


Languages

Language:C 71.5%Language:Assembly 23.9%Language:Python 2.2%Language:Makefile 2.0%Language:GDB 0.4%