-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this library constant time? #30
Comments
If nacl is (which I think it is), and emscripten preserves that property (which I think it should), then this library will be. But I don't know for sure one way or the other. |
Isn't this something that should be investigated and tested? |
Yes please :-) |
What I meant by that is that the issue shouldn't be closed on a simple "I think it is/should" note. |
Ah, I see. I'll reopen it, as the question still stands. I'm afraid I don't have the bandwidth to look into it myself at the moment; if you can help, I'd appreciate it. |
The library should carry a prominent warning until this has been checked. It's a critical property, and usually requires special handling for a given compiler. |
When saying "constant time library", what do you mean?
Please notice that this is all due to C code, written by original authors. @tonyg close this issue. |
@3nsoft agreed that the C code takes particular care to ensure these properties -- however, because I haven't actually tested it yet, I can't be sure that emscripten (or, for that matter, the javascript JIT) doesn't take liberties. I'd be surprised if there was a problem, but until it has been tested, I can't be sure. If anyone feels able to contribute a test-case showing (with high probability) that we really do enjoy constant-time bytevector comparisons, I'd love to include it. |
Yes, please include a prominent warning in the README that says that this crypto has not been thoroughly audited; that's exactly what I came here to check because it's necessary for building systems that are secure! |
No description provided.
The text was updated successfully, but these errors were encountered: