mupq / pqm4

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

Fix inlining of Kyber re-encryption #339

Closed mkannwischer closed 5 months ago

mkannwischer commented 6 months ago

Unfortunately, I have forgotten to include the inlining of the re-encryption in the kem.c when I updated to the NIST draft version in https://github.com/mupq/pqm4/pull/332.

I fixed it here. This reduces the stack usage of decaps by 1 ciphertext size. There was also a bug in the inlined re-encryption that resulted in the re-encryption always failing (but that was dead code).