rustpq / pqcrypto

Rust Post-Quantum cryptography
212 stars 38 forks source link

Move wrapper methods to macros #21

Closed RW-sec closed 3 years ago

RW-sec commented 3 years ago

Hi Thom, nice to see the update from PQClean and the Serde addition. This PR changes the different methods (keypair_xxx(), encapsulate_xxx(), ...) to a macro based approach. Therefore less code needs to be maintained and support for possible NEON implementations can be added easily in the future. All schemes are tested and no functionality change (API) should be visible.

Best regards, Robin

thomwiggers commented 3 years ago

Nice work, thanks!