]> git.ipfire.org Git - thirdparty/tor.git/commit
Siphash-2-4 is now our hash in nearly all cases.
authorNick Mathewson <nickm@torproject.org>
Fri, 7 Feb 2014 22:38:16 +0000 (17:38 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 12 Feb 2014 16:32:10 +0000 (11:32 -0500)
commit0e97c8e23e2572c14dd0f4f4fbfca77ee8a48be2
treea9d0e1914c9bf8e136486ca02658029273e86be5
parentf05820531a1e4bc5935609900f0067b2643f0529
Siphash-2-4 is now our hash in nearly all cases.

I've made an exception for cases where I'm sure that users can't
influence the inputs.  This is likely to cause a slowdown somewhere,
but it's safer to siphash everything and *then* look for cases to
optimize.

This patch doesn't actually get us any _benefit_ from siphash yet,
since we don't really randomize the key at any point.
12 files changed:
src/common/address.c
src/common/address.h
src/common/container.c
src/common/container.h
src/ext/siphash.h
src/or/channel.c
src/or/dns.c
src/or/fp_pair.c
src/or/geoip.c
src/or/microdesc.c
src/or/nodelist.c
src/or/policies.c