mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Previously we would allocate as many bytes as we'd need for a keccak--even when we were only calculating SHA1. Closes ticket 17796.
6 lines
306 B
Text
6 lines
306 B
Text
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.
|
|
|