mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
488cdee5e7
Previously we would allocate as many bytes as we'd need for a keccak--even when we were only calculating SHA1. Closes ticket 17796.
7 lines
306 B
Plaintext
7 lines
306 B
Plaintext
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.
|
|
|