path: root/siphash.h
diff options
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-20 06:01:23 (GMT)
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-20 06:01:23 (GMT)
commit04c94f95d1a1c6a12f5412228a2bcdc00f5de3b2 (patch)
tree8e11bfd8fef3f67d53e54c76d6c74899930918b8 /siphash.h
parentf81c1c24b86ecb7c275518f3ae8ee73535255afd (diff)
switch SipHash from SipHash24 to SipHash13 variant
SipHash13 is secure enough to be used in hash-tables, and SipHash's author confirms that. Rust already considered switch to SipHash13: Jean-Philippe Aumasson confirmation: Merged pull request: From: Sokolov Yura aka funny_falcon <> Date: Thu, 8 Dec 2016 20:31:29 +0300 Signed-off-by: Urabe, Shyouhei <> Fixes: [Feature #13017] git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'siphash.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/siphash.h b/siphash.h
index 3f39884..2e7553f 100644
--- a/siphash.h
+++ b/siphash.h
@@ -43,6 +43,6 @@ int sip_hash_digest_integer(sip_hash *h, const uint8_t *data, size_t data_len, u
void sip_hash_free(sip_hash *h);
void sip_hash_dump(sip_hash *h);
-uint64_t sip_hash24(const uint8_t key[16], const uint8_t *data, size_t len);
+uint64_t sip_hash13(const uint8_t key[16], const uint8_t *data, size_t len);