mupq / pqm4

Post-quantum crypto library for the ARM Cortex-M4
284 stars 72 forks source link

Add PERK #306

Closed mkannwischer closed 10 months ago

mkannwischer commented 11 months ago

https://github.com/mupq/pqm4/issues/284

This adds the implementations from https://pqc-perk.org/assets/downloads/perk_2023_05_31.zip.

perk-128-fast-{3,5} should be able to run on the 640 KB RAM board. The perk-{192,256}-short-* are out of reach even with 4 MB RAM in qemu, so I did not include those. The remaining ones run in 4 MB RAM, but won't run on the board.

I have tested that testvectors, tests, benchmarks run fine on qemu and the nucleo-l476rg.

There is a newer package available at https://pqc-perk.org/assets/downloads/perk_2023_10_16.zip (with a change in testvectors), but that one relies on GMP....