rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
97.63k stars 12.63k forks source link

Implement SHA-3 Contest winner, Keccak, for extra::digest #8105

Closed MarkJr94 closed 10 years ago

MarkJr94 commented 11 years ago

We just need some more hash functions.

I'll be working on this myself.

bluss commented 11 years ago

FYI, SHA-3 has not been standardized yet, so while we know Keccak is going to be used, the full design of the hashing scheme has not been released, and for example the cap/rate parameters may change.

http://csrc.nist.gov/groups/ST/hash/sha-3/sha-3_standardization.html

Go ahead and implement it as Keccak, but we can only implement sha-3 when it is standardized.

MarkJr94 commented 11 years ago

I understand. I'm implementing it as Keccak for know, as I expected this.

alexcrichton commented 11 years ago

The general consensus is currently that we don't want to be rolling our own crypto in libextra/libstd. That being said, being a digest this may not be as critical, but it sounds like this certainly doesn't need to be a top priority.

thestinger commented 10 years ago

It doesn't look like we're going to be including cryptography primitives like this in the standard library at this point.