-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Reconsider distribution of cryptographic hash functions #9300
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
Comments
For completeness, the two pieces in libstd's public API:
These two are clearly useful. |
So, I clearly disagree with the path that's been decided upon. If the goal of Rust is to create a safer language, I don't see why we'd want to avoid implementing security algorithms in that language and instead delegate them to more unsafe languages. However, since that is the decision, I don't think it makes any sense to implement a tiny subset of algorithms and ignore all the rest. I'll submit a patch to remove everything crypto related, but it might take me a few weeks to get together. |
@brson: I think we should move this stuff out to a |
I for one think this is bad news. I hope this hypothetical rust-crypto at least makes it back into a rust-core-blessed repo somewhere. I wouldn't want such an important piece of code to be controlled by some random guy. This may save some rust-core maintenance hassle (although these algos are pretty much written in stone so I'm not sure what the burden really is once the language stabilizes) but it makes everyone less secure. |
I, too, would like to see crypto algorithms implemented in pure Rust. I suppose it is up to someone to create a repo and put some source code there and ask for review. ☺ |
@DaGenix has done a lot of excellent work in this area and you can find it all at https://github.com/DaGenix/rust-crypto. The fate of libextra is still to be decided, but when we dissolve it into smaller packages, there may be a place for code like this, so hope isn't completely lost just yet! |
Sorry for bumping old thread, but I absolutely agree with @DaGenix. I realize rust-crypto is his work, but in security questions 100% trust can exist only to "builtin" functions. |
Per my own comment in #8989 we are shying away from rolling our own crypto. We already have SHA1, SHA2 and MD5 in libextra, but maybe we should not. If we want to completely eliminate these then SHA1 would need to move into librustc.
The text was updated successfully, but these errors were encountered: