mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user