diff options
| author | Palmer Cox <p@lmercox.com> | 2013-10-05 16:30:36 -0400 |
|---|---|---|
| committer | Palmer Cox <p@lmercox.com> | 2013-10-27 19:51:19 -0400 |
| commit | 2c30fcea82f51271c9e93e27d9442da41cd55c5e (patch) | |
| tree | a3d016c44406191bcb40a515b37c52bbad198c8b /src/libstd | |
| parent | 16b8a41531bb0054f05be7a19e0867b8174c83b1 (diff) | |
| download | rust-2c30fcea82f51271c9e93e27d9442da41cd55c5e.tar.gz rust-2c30fcea82f51271c9e93e27d9442da41cd55c5e.zip | |
Clarify that the SipHash implementation has not be validated for cryptographic purposes.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/hash.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libstd/hash.rs b/src/libstd/hash.rs index ed7fc9eb1d9..6f6e847f569 100644 --- a/src/libstd/hash.rs +++ b/src/libstd/hash.rs @@ -15,8 +15,13 @@ * * Consider this as a main "general-purpose" hash for all hashtables: it * runs at good speed (competitive with spooky and city) and permits - * cryptographically strong _keyed_ hashing. Key your hashtables from a - * CPRNG like rand::rng. + * strong _keyed_ hashing. Key your hashtables from a strong RNG, + * such as rand::rng. + * + * 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. */ #[allow(missing_doc)]; |
