ZenGo-X / curv

Rust language general purpose elliptic curve cryptography.
MIT License
264 stars 110 forks source link

constant time comparisons #38

Open omershlo opened 5 years ago

omershlo commented 5 years ago

can be done using https://github.com/dalek-cryptography/subtle as one option. Thanks to Jeremy Rubin.

omershlo commented 5 years ago

I started to do it in multi-party-ecdsa: https://github.com/KZen-networks/multi-party-ecdsa/blob/master/src/protocols/two_party_ecdsa/lindell_2017/party_one.rs#L562

JeremyRubin commented 5 years ago

That line in particular doesn't matter as the functions arguments are all public data :)

omershlo commented 5 years ago

You are right of course, I was just excited to to test the subtle crate. I will leave it there for now to be a code reference . Cheers!