[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #25365 [Core Tor/Tor]: Use uint64_t for Tor's hash tables, even if int is 32 bits



#25365: Use uint64_t for Tor's hash tables, even if int is 32 bits
------------------------------+--------------------------------
     Reporter:  teor          |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.4.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  security-low
Actual Points:                |  Parent ID:
       Points:  1             |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 64-bit macOS and BSD are LP64, which means that their ints are 32 bits.
 This makes Tor's hash tables 32 bits, reducing their security.

 This issue also occurs on 32-bit systems, where using uint64_t might be
 slower. I don't know if speed matters, as siphash is 64 bit anyway.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25365>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs