YahooArchive / end-to-end

Use OpenPGP-based encryption in Yahoo mail.
http://yahoo.tumblr.com/post/113708033335/user-focused-security-end-to-end-encryption
Apache License 2.0
223 stars 40 forks source link

Improve fromBytesBaseGroup (or, validate vrf public key) #59

Open adon-at-work opened 8 years ago

adon-at-work commented 8 years ago

from @andres-erbsen referring to https://github.com/yahoo/end-to-end/pull/58/files#diff-a0c7c92381b7dc233e58a7f3139fe63cR36

We actually want better tests for this; even just code coverage is better than nothing here. My code does not seem to have any either, sorry about that. I do not have time to implement this right now and I am not sure when I will. So I am just writing something here with no well-thought intent. Some things that are probably true, and if they are, would be useful to check:

There is an additional complication that a normal elliptic curve library might not even care to support the "bad" points, so using them for testing might end up being awkward. In particular, multiplication y*S does clear the low bits of y in some libraries, which would not work here.