relic-toolkit / relic

Code
Other
458 stars 179 forks source link

Add hacl (with lazy reduction) as an arithmetic backend. #218

Closed dfaranha closed 1 year ago

dfaranha commented 2 years ago

This PR changes the library to accept implementations of prime field arithmetic that produce unreduced results at the end of computation. The support was implemented to accommodate a backend taken from the hacl* cryptographic library implementing arithmetic modulo 2^255-19.