11 Commits

Author SHA1 Message Date
David Stainton
39e9953cb9 Add the Rekey feature as described in spec
Signed-off-by: David Stainton <dstainton415@gmail.com>
2017-07-11 17:07:19 +00:00
Jason A. Donenfeld
167d176148 noise_test: update psk tests
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-05-15 13:27:28 +02:00
Jason A. Donenfeld
1dc278ed6c noise_test: use 32-byte psk
The noise spec mandates 256-bit preshared keys.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-05-15 13:24:16 +02:00
Sergey Matveev
c01f33c418 Nicely formatted long structs, for reading easiness
Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
2017-01-03 10:35:34 -05:00
Jonathan Rudenberg
7e06e15681 Ensure that the handshake state doesn’t get lost if decryption fails
This allows decoding potentially malicious messages under certain
circumstances.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-14 21:27:05 -04:00
Jonathan Rudenberg
3512ab15d1 Purge _E handshake patterns 2016-04-03 11:27:42 -04:00
Jonathan Rudenberg
4db302538c Update vectors from screech 2015-11-16 16:40:09 -05:00
Jonathan Rudenberg
b11a33c4ae Add handshake Config struct
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2015-11-16 13:09:47 -05:00
Jonathan Rudenberg
d760bc3534 MixPresharedKey and new vectors 2015-11-16 11:37:33 -05:00
Jonathan Rudenberg
0e9c47ad19 Implement NoisePSK revision 2 2015-11-15 17:18:33 -05:00
Jonathan Rudenberg
14af5e1fc8 Initial implementation 2015-11-15 12:50:34 -05:00