Amend hash::SipHasher docs to more strongly discourage cryptographic uses
This commit is contained in:
@@ -27,10 +27,9 @@ use super::Hasher;
|
|||||||
/// hashing. This lets you key your hashtables from a strong RNG, such
|
/// 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).
|
/// as [`rand::Rng`](https://doc.rust-lang.org/rand/rand/trait.Rng.html).
|
||||||
///
|
///
|
||||||
/// Although the SipHash algorithm is considered to be cryptographically
|
/// Although the SipHash algorithm is considered to be generally strong,
|
||||||
/// strong, this implementation has not been reviewed for such purposes.
|
/// it is not intended for cryptographic purposes. As such, all
|
||||||
/// As such, all cryptographic uses of this implementation are _strongly
|
/// cryptographic uses of this implementation are _strongly discouraged_.
|
||||||
/// discouraged_.
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub struct SipHasher {
|
pub struct SipHasher {
|
||||||
k0: u64,
|
k0: u64,
|
||||||
|
|||||||
Reference in New Issue
Block a user