cloudflare / circl

CIRCL: Cloudflare Interoperable Reusable Cryptographic Library
http://blog.cloudflare.com/introducing-circl
Other
1.26k stars 138 forks source link

Performs modular reduction for all scalars. #315

Closed armfazh closed 2 years ago

armfazh commented 2 years ago

Scalars are reduced only when its size in bytes is bigger that the order=N. There are, however, scalars of such size but larger than N that escaped to be reduced. With this change, now scalars are fully reduced.

Fixes #312

chris-wood commented 2 years ago

The change looks good! I wonder if we can expand on the tests, though.