jlouis / curve_tun

TCP tunnels secured by Curve25519
MIT License
18 stars 3 forks source link

Removed resetting of counter after successful handshake #4

Closed jstampe closed 9 years ago

jstampe commented 9 years ago

This changes the short time nonces (usages of st_nonce) to use the c/rn counters, i.e. Hello always has nonce=0, vouch/cookie always 1, and thus messages start from n=2. Thus, every time a short time nonce is used, it is simply incremented by 1, and likewise this is validated on the remote end.

Make's curve_tun work with @krestenkrab's C implementation.

krestenkrab commented 9 years ago

:+1:

jlouis commented 9 years ago

Awesome! I buy this is a good thing to do. It is also way more consistent.