Commit Graph

26 Commits

Author SHA1 Message Date
Sergey Matveev ab15322ad1 Use faster BLAKE2s implementation from golang.org/x/crypto
This implementation contains SSE* related assembler code.

Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
2017-01-09 11:35:45 -05: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 bc8ae75ea2 Use optimized BLAKE2b implementation
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-14 12:55:09 -04:00
Jonathan Rudenberg 9d48b3b0f8 Add PeerStatic method to HandshakeState
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-13 19:53:24 -04:00
Jonathan Rudenberg b16acbb322 Add method to get channel binding
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-13 15:28:03 -04:00
Jonathan Rudenberg ad132441f7 Update package import in vectorgen
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-12 22:58:03 -04:00
Jonathan Rudenberg f63da97e27 Hide cipher functions from docs
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-12 22:56:22 -04:00
Jonathan Rudenberg 9d237a2bfc Fix docs typos
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-12 22:45:32 -04:00
Jonathan Rudenberg ca5f81ebf0 Improve Config docs
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-12 22:44:26 -04:00
Jonathan Rudenberg 7f7abf1289 Add travis config
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-12 22:23:58 -04:00
Jonathan Rudenberg 01ee159114 Add README and CONTRIBUTING docs
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-12 22:22:06 -04:00
Jonathan Rudenberg 8035b36042 Add docs
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-12 22:20:06 -04:00
Jonathan Rudenberg d4248be25d Add method to get Cipher from CipherState
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-12 21:32:38 -04:00
Jonathan Rudenberg 9a626dbd0b Unexport SymmetricState
This struct is only used internally.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2016-07-12 21:25:40 -04:00
Jonathan Rudenberg c0dae35557 Implement XR pattern 2016-04-03 11:35:23 -04:00
Jonathan Rudenberg 3512ab15d1 Purge _E handshake patterns 2016-04-03 11:27:42 -04:00
Jonathan Rudenberg 77186df246 Add encryption messages to vectors and vectors from cacophony 2015-11-16 22:08:16 -05:00
Jonathan Rudenberg 82839267d3 Copy PeerEphemeral to avoid buffer corruption 2015-11-16 22:07:11 -05:00
Jonathan Rudenberg 3881dc9640 Add test vector generator and tester 2015-11-16 20:57:02 -05: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 f7b9b28336 Add checks from revision 18 2015-11-15 12:56:24 -05:00
Jonathan Rudenberg 14af5e1fc8 Initial implementation 2015-11-15 12:50:34 -05:00