Commit Graph
15 Commits
Author SHA1 Message Date
David Fifield 706c66544e Change noise.GenerateKeypair to noise.GeneratePrivkey. 2021-08-01 22:31:15 -06:00
David Fifield 6b3e1a32ae Make noise.NewServer take only the private key. 2021-08-01 22:30:49 -06:00
David Fifield 3bb75782f6 Move Initiator out of noise.NewConfig. 2021-08-01 22:21:41 -06:00
David Fifield 79bda51425 Tests for unexpected payloads in Noise handshake messages. 2021-07-03 11:32:28 -06:00
David Fifield 17de4c099b Fix an error message. 2021-07-03 10:56:57 -06:00
David Fifield 0269f6f5ed Use a more robust method for noise.PubkeyFromPrivkey. 2021-06-23 22:49:46 -06:00
David Fifield 326771cb95 Upgrade flynn/noise to v1.0.0.
This upgrade takes care of issues UCB-02-003, UCB-02-004, and UCB-02-006
from the 2021 security audit of Turbo Tunnel by Cure53.

https://github.com/flynn/noise/security/advisories/GHSA-g9mp-8g3h-3c5c

UCB-02-004
https://github.com/flynn/noise/pull/43

UCB-02-003, UCB-02-006:
https://github.com/flynn/noise/pull/44
2021-04-22 16:48:22 -06:00
David Fifield 75a0aa6142 Fix a comment copy-and-paste error. 2021-03-16 16:57:06 -06:00
David Fifield d14deab12b Documentation and light refactoring. 2020-04-19 17:16:27 -06:00
David Fifield 83a67e3874 Fix a bug in noise.readMessage.
Was returning nil in case of an error from io.ReadFull, and even then it
should have been io.ErrUnexpectedEOF, not io.EOF.
2020-04-19 16:52:48 -06:00
David Fifield b1bf9164a7 -privkey-file and -pubkey-file options. 2020-04-18 17:56:45 -06:00
David Fifield 505db3ec23 Server -privkey option and client -pubkey option. 2020-04-18 17:35:32 -06:00
David Fifield 7dc344713c Add a noise.PubkeyFromPrivkey function. 2020-04-18 16:02:14 -06:00
David Fifield 0f65c5077c Use a global CipherSuite. 2020-04-18 14:34:10 -06:00
David Fifield f2423f959a noise socket abstraction 2020-04-18 14:34:10 -06:00