[tor-bugs] #10031 [Obfsproxy]: Use fast modular exponentiation for UniformDH
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Oct 26 17:26:20 UTC 2013
#10031: Use fast modular exponentiation for UniformDH
------------------------------+---------------------
Reporter: phw | Owner: asn
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Obfsproxy | Version:
Keywords: obfs3, uniformdh | Actual Points:
Parent ID: | Points:
------------------------------+---------------------
obfs3 currently uses Python's built-in `pow()` for modular exponentiation.
The computation can be made less expensive by using GMPY. Apart from
making UniformDH computationally less expensive, it creates less of a
timing signature. That's relevant for ScrambleSuit as its two
authentication methods should be indistinguishable.
I have patches for this improvement in my user repository in the branch
`use_gmp`: https://gitweb.torproject.org/user/phw/obfsproxy.git
Note that the patch requires the module `gmpy` which is '''not''' part of
Python's standard library. Debian knows the package as `python-gmpy`.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10031>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list