summaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2014-05-16 02:54:17 +0000
committerYawning Angel <yawning@schwanenlied.me>2014-05-16 02:54:17 +0000
commit1fee9678c68238f6e77d44020f8ee38c711d89bb (patch)
tree7bf0c6d5485ffeb531151fe5994a824048995952 /utils.go
parentf4877920f854b0b361e446d7a6ce91527c4f07ee (diff)
Change the length field obfscation.
Instead of including the previous secretbox in the input when calculating the SipHash-2-4 digest used to generate the obfuscation mask, use only the nonce. This is significantly faster, and if someone breaks obfs4 by exploiting the low amount of input entropy between each invocation (a counter incrementing by 1), I hope they publish the attack on the PRF. This breaks wire protocol compatibility.
Diffstat (limited to 'utils.go')
0 files changed, 0 insertions, 0 deletions