nucypher / DarkIntegers.jl

A modulo arithmetic toolbox for integers and polynomials
https://nucypher.github.io/DarkIntegers.jl
GNU General Public License v3.0
7 stars 2 forks source link

Implement constant time functions? #14

Open fjarri opened 4 years ago

fjarri commented 4 years ago

Those would be useful to have, but one needs to check first if Julia provides any constant-time guarantees for its functions on builtin types. If not, this may be achieved by linking a C library, but that would defeat the purpose of easily-modifiable all-Julia implementation.

fjarri commented 4 years ago

For example, see constant-time add/sub (and the required add/sub with carry) for MLUInt in https://www.bearssl.org/bigint.html.