mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
041e9235c1
The point of this function is to make sure that the ed25519-based implementation of curve25519_basepoint() actually works when we start tor, and use the regular fallback implementation if it doesn't. But it accounts for 9% of our startup time in the case when we have directory information, and I think it's safe to make the test shorter. After all, it has yet to find any actual bugs in curved25519_scalarmult_basepoint_donna() on any platforms. Closes ticket 28838.
9 lines
483 B
Plaintext
9 lines
483 B
Plaintext
o Minor features (performance):
|
|
- Remove about 96% of the work from the function that we run at
|
|
startup to test our curve25519_basepoint implementation. Since
|
|
this function has yet to find an actual failure, we'll only
|
|
run it for 8 iterations instead of 200. Based on our profile
|
|
information, this change should save around 8% of our startup
|
|
time on typical desktops, and may have a similar effect on
|
|
other platforms. Closes ticket 28838.
|