mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
309467c64e
For memeq and friends, "tor_" indicates constant-time and "fast_" indicates optimized. I'm fine with leaving the constant-time "safe_mem_is_zero" with its current name, but the "tor_" prefix on the current optimized version is misleading. Also, make the tor_digest*_is_zero() uniformly constant-time, and add a fast_digest*_is_zero() version to use as needed. A later commit in this branch will fix all the users of tor_mem_is_zero(). Closes ticket 30309.
4 lines
176 B
Plaintext
4 lines
176 B
Plaintext
o Code simplification and refactoring:
|
|
- Rename tor_mem_is_zero() to fast_mem_is_zero(), to emphasize that
|
|
it is not a constant-time function. Closes ticket 30309.
|