News for hackers. Stuff that matters.
Re:End-To-End – OpenPGP Chrome extension from Google by indutny on Tuesday June 03, 2014 @09:55PM (#7843641)
Have you guys took a look at https://github.com/indutny/elliptic ?
Re:End-To-End – OpenPGP Chrome extension from Google by cryptbe on Wednesday June 04, 2014 @12:36AM (#7844067)
Oh we haven't. Looks like it's a nice library. One question: it seems that you use the message directly, instead of its hash, in ECDSA? [1].

[1] https://github.com/indutny/elliptic/blob/master/lib/elliptic...

PS: were you the guy that won the CloudFlare's HeartBleed challenge? great work :-).

Re:End-To-End – OpenPGP Chrome extension from Google by indutny on Wednesday June 04, 2014 @09:13AM (#7845329)
I do expect users to hash the message before passing it to ECDSA, this way you could use any hashing library with it. Though, elliptic.js does actually depends on hash.js to seed it's PRNG.

Thank you!

Re:End-To-End – OpenPGP Chrome extension from Google by cryptbe on Wednesday June 04, 2014 @12:07PM (#7846383)
> I do expect users to hash the message before passing it to ECDSA, this way you could use any hashing library with it. Though, elliptic.js does actually depends on hash.js to seed it's PRNG.

I think this isn't a good design because most people won't know that they must hash the message before passing it to the ECDSA. People will misuse it, and open themselves to attacks.

What you can do instead is to pick the right hash based on the curve, like what we did in End-To-End: https://code.google.com/p/end-to-end/source/browse/javascrip....

Re:End-To-End – OpenPGP Chrome extension from Google by indutny on Thursday June 05, 2014 @01:48AM (#7850420)
Anyway, it would be interesting to compare speeds of our implementations. I'm really obsessed with try to reach 1ms verification, but so far only got to 4ms.
Re:End-To-End – OpenPGP Chrome extension from Google by indutny on Thursday June 05, 2014 @01:47AM (#7850418)
I actually already have a hash in `elliptic.curves` presets, but thanks for the idea!