mupq / pqm4

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

Add SPHINCS-alpha #312

Closed mkannwischer closed 8 months ago

mkannwischer commented 10 months ago

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

This adds the SPHINCS-alpha implementations from https://csrc.nist.gov/csrc/media/Projects/pqc-dig-sig/documents/round-1/submission-pkg/SPHINCS-ALPHA-submission.zip

Had to make some changes to the hash_sha2.c, hash_shake.c, thash_sha2_simple.c, thash_shake_simple.c to use the mupq APIs. There are some VLAs that one may want to eliminate later. Also these implementations are using insane amounts of RAM. Did not look into why.