Skip to content

Commit 2c30fce

Browse files
author
Palmer Cox
committed
Clarify that the SipHash implementation has not be validated for cryptographic purposes.
1 parent 16b8a41 commit 2c30fce

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/libstd/hash.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@
1515
*
1616
* Consider this as a main "general-purpose" hash for all hashtables: it
1717
* runs at good speed (competitive with spooky and city) and permits
18-
* cryptographically strong _keyed_ hashing. Key your hashtables from a
19-
* CPRNG like rand::rng.
18+
* strong _keyed_ hashing. Key your hashtables from a strong RNG,
19+
* such as rand::rng.
20+
*
21+
* Although the SipHash algorithm is considered to be cryptographically
22+
* strong, this implementation has not been reviewed for such purposes.
23+
* As such, all cryptographic uses of this implementation are strongly
24+
* discouraged.
2025
*/
2126

2227
#[allow(missing_doc)];

0 commit comments

Comments
 (0)