[tor-bugs] #17944 [- Select a component]: [PATCH] support timingsafe_memcmp() on Operating Systems that support it

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Dec 28 19:37:14 UTC 2015


#17944: [PATCH] support timingsafe_memcmp() on Operating Systems that support it
--------------------------------------+-----------------
     Reporter:  logan                 |      Owner:
         Type:  enhancement           |     Status:  new
     Priority:  Medium                |  Milestone:
    Component:  - Select a component  |    Version:
     Severity:  Normal                |   Keywords:
Actual Points:                        |  Parent ID:
       Points:                        |    Sponsor:
--------------------------------------+-----------------
 Hi guys,

 Tor has its own hand-rolled timing-safe memcmp() which is nice, but
 Operating Systems like OpenBSD, NetBSD, and possibly others soon are
 starting to ship with a timing safe memcmp().

 On OpenBSD, it's called timingsafe_memcmp().

 Below is a patch that checks for it, and uses it if the host platform has
 a timingsafe_memcmp().

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


More information about the tor-bugs mailing list