diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-12-20 15:15:11 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-12-29 09:47:04 -0500 |
commit | 488cdee5e7e9b23cf7bfee78e47e070489c6ca20 (patch) | |
tree | 15d18223df34e1bc3e5d65b55ad0cb4e0e35c39f /changes | |
parent | bb19799a49cf43feff46da1a445e8d80273ca0a3 (diff) | |
download | tor-488cdee5e7e9b23cf7bfee78e47e070489c6ca20.tar.gz tor-488cdee5e7e9b23cf7bfee78e47e070489c6ca20.zip |
When allocating a crypto_digest_t, allocate no more bytes than needed
Previously we would allocate as many bytes as we'd need for a
keccak--even when we were only calculating SHA1.
Closes ticket 17796.
Diffstat (limited to 'changes')
-rw-r--r-- | changes/feature17796 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/changes/feature17796 b/changes/feature17796 new file mode 100644 index 0000000000..d96daed262 --- /dev/null +++ b/changes/feature17796 @@ -0,0 +1,6 @@ + o Minor features (crypto): + - When allocating a digest state object, allocate no more space than we + actually need. Previously, we were allocating as much space as the + state for the largest algorithm would need. This change saves up to + 672 bytes per circuit. Closes ticket 17796. + |