summaryrefslogtreecommitdiff
path: root/framing/framing_test.go
AgeCommit message (Collapse)Author
2014-08-17Massive cleanup/code reorg.Yawning Angel
* Changed obfs4proxy to be more like obfsproxy in terms of design, including being an easy framework for developing new TCP/IP style pluggable transports. * Added support for also acting as an obfs2/obfs3 client or bridge as a transition measure (and because the code itself is trivial). * Massively cleaned up the obfs4 and related code to be easier to read, and more idiomatic Go-like in style. * To ease deployment, obfs4proxy will now autogenerate the node-id, curve25519 keypair, and drbg seed if none are specified, and save them to a JSON file in the pt_state directory (Fixes Tor bug #12605).
2014-05-24Randomize length when the decoder receives an out-of-bound value.Yawning Angel
This makes the length error and MAC error indistinguishable to an external attacker.
2014-05-14Change the framing Encoder/Decoder to take the destination slice.Yawning Angel
In theory this is easier on the garbage collector. Probably could reuse more of the intermediary buffers by stashing them in the connection state, but that makes the code kind of messy. This should be an improvement.
2014-05-09Initial import.Yawning Angel