]> git.ipfire.org Git - thirdparty/tor.git/commit
Use SHA256 in the replaycache, rather than SHA1
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Mon, 23 Nov 2015 22:08:53 +0000 (09:08 +1100)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Mon, 23 Nov 2015 22:08:53 +0000 (09:08 +1100)
commit2e9779e5d84db3e0d7b51ea34e73828253a298c2
treeafb7e5a642d143175cdc89c340c33ec6b45a580c
parentcbc1b8a4f75d449a0843451954568e0c8498821e
Use SHA256 in the replaycache, rather than SHA1

This migrates away from SHA1, and provides further hash flooding
protection on top of the randomised siphash implementation.

Add unit tests to make sure that different inputs don't have the
same hash.
changes/feature8961-replaycache-sha256 [new file with mode: 0644]
src/or/replaycache.c
src/or/replaycache.h
src/test/test_replay.c