summaryrefslogtreecommitdiff
path: root/src/or/replaycache.h
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-11-24 09:08:53 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-11-24 09:08:53 +1100
commit2e9779e5d84db3e0d7b51ea34e73828253a298c2 (patch)
treeafb7e5a642d143175cdc89c340c33ec6b45a580c /src/or/replaycache.h
parentcbc1b8a4f75d449a0843451954568e0c8498821e (diff)
downloadtor-2e9779e5d84db3e0d7b51ea34e73828253a298c2.tar.gz
tor-2e9779e5d84db3e0d7b51ea34e73828253a298c2.zip
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.
Diffstat (limited to 'src/or/replaycache.h')
-rw-r--r--src/or/replaycache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/replaycache.h b/src/or/replaycache.h
index 9b9daf3831..9c409f2fd7 100644
--- a/src/or/replaycache.h
+++ b/src/or/replaycache.h
@@ -26,7 +26,7 @@ struct replaycache_s {
/*
* Digest map: keys are digests, values are times the digest was last seen
*/
- digestmap_t *digests_seen;
+ digest256map_t *digests_seen;
};
#endif /* REPLAYCACHE_PRIVATE */