[tor-bugs] #28837 [Core Tor/Tor]: Use openssl's SHA3 implementations when they are faster.

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Dec 13 16:02:05 UTC 2018


#28837: Use openssl's SHA3 implementations when they are faster.
-------------------------+-------------------------------------------------
     Reporter:  nickm    |      Owner:  (none)
         Type:           |     Status:  new
  enhancement            |
     Priority:  Medium   |  Milestone:  Tor: 0.4.0.x-final
    Component:  Core     |    Version:  Tor: 0.3.4.9
  Tor/Tor                |   Keywords:  android startup performance
     Severity:  Normal   |  controller
Actual Points:           |  Parent ID:  #28481
       Points:  .3       |   Reviewer:
      Sponsor:           |
  Sponsor8-can           |
-------------------------+-------------------------------------------------
 OpenSSL now has sha3 support.  At least some versions have assembly
 implementations of the keccak core function.  That's our signal to update
 crypto_digest.c to use openssl for sha3.

 This matters for startup, since `keccakf()` is about 10% of our startup
 time when we have a cached directory.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28837>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list