summaryrefslogtreecommitdiff
path: root/obfs4proxy/obfs4proxy.go
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2014-06-01 05:22:07 +0000
committerYawning Angel <yawning@schwanenlied.me>2014-06-01 05:22:07 +0000
commit36228437c43bf3fa67a4d5b8da8ddf123645e530 (patch)
treeb4772fe6a9162c543a46961dc8af053be5b1405c /obfs4proxy/obfs4proxy.go
parent2001f0b698183b998dbf8e52f5d40a0d82aeef09 (diff)
Move the server keypair generation to right after Accept().
Instead of threading the code, move the keypair generation to right after Accept() is called. This should mask the timing differential due to the rejection sampling with the noise from the variablity in how long it takes for the server to get around to pulling a connection out of the backlog, and the time taken for the client to send it's portion of the handshake. The downside is that anyone connecting to the obfs4 port does force us to do a bunch of math, but the obfs4 math is relatively cheap compared to it's precursors. Fixes #9.
Diffstat (limited to 'obfs4proxy/obfs4proxy.go')
0 files changed, 0 insertions, 0 deletions