diff options
author | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-11-24 09:08:53 +1100 |
---|---|---|
committer | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-11-24 09:08:53 +1100 |
commit | 2e9779e5d84db3e0d7b51ea34e73828253a298c2 (patch) | |
tree | afb7e5a642d143175cdc89c340c33ec6b45a580c /src/or/replaycache.h | |
parent | cbc1b8a4f75d449a0843451954568e0c8498821e (diff) | |
download | tor-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.h | 2 |
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 */ |