Skip to content

Commit

Permalink
Amend hash::SipHasher docs to more strongly discourage cryptographi…
Browse files Browse the repository at this point in the history
…c uses
  • Loading branch information
dirk committed Mar 7, 2016
1 parent e36c7da commit 054196d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/libcore/hash/sip.rs
Expand Up @@ -27,10 +27,9 @@ use super::Hasher;
/// hashing. This lets you key your hashtables from a strong RNG, such
/// as [`rand::Rng`](https://doc.rust-lang.org/rand/rand/trait.Rng.html).
///
/// Although the SipHash algorithm is considered to be cryptographically
/// strong, this implementation has not been reviewed for such purposes.
/// As such, all cryptographic uses of this implementation are _strongly
/// discouraged_.
/// Although the SipHash algorithm is considered to be generally strong,
/// it is not intended for cryptographic purposes. As such, all
/// cryptographic uses of this implementation are _strongly discouraged_.
#[stable(feature = "rust1", since = "1.0.0")]
pub struct SipHasher {
k0: u64,
Expand Down

0 comments on commit 054196d

Please sign in to comment.