3 Commits

Author SHA1 Message Date
Jason A. Donenfeld
6a0d1cad82 psk mode: update for redesign
The PSK mode has been redesigned in the latest revision of Noise, which
WireGuard is using. This patch updates the library to use this new
construction. It adds a outputs parameter to HKDF, a
PresharedKeyPlacement config parameter, as well as a PSK token. This has
been tested against the latest WireGuard git master, and the two are
compatible.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-05-15 13:21:07 +02:00
Jonathan Rudenberg
8035b36042 Add docs
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-12 22:20:06 -04:00
Jonathan Rudenberg
14af5e1fc8 Initial implementation 2015-11-15 12:50:34 -05:00