Hans Svensson
7c7ad54a6a
Improve type specs
2019-01-28 15:05:21 +01:00
Hans Svensson
1ac27a035a
Make read_message/read_token more robust
2018-12-21 09:37:52 +01:00
Hans Svensson
a024fc4dc9
Handle failed decrypts in handshake
2018-04-25 09:37:26 +02:00
Hans Svensson
babd0cc11f
Pleasing dialyzer
2018-04-25 09:36:38 +02:00
Hans Svensson
6d793b7118
On successful accept/connect - also return the final Handshake state
2018-03-15 14:03:41 +01:00
Hans Svensson
8f3aff4d8b
Support {active, true} and {active, once} in gen_tcp-wrapper
...
In the implemented TCP-wrapper (enoise_connection) we now properly support {active, true}
and {active, once} and switching between them (previously no switching was supported).
2018-03-13 23:22:42 +01:00
Hans Svensson
8d47669d68
More documentation and some cleanup
2018-03-08 12:07:00 +01:00
Hans Svensson
a11887393f
Refactor keypair into separate module enoise_keypair
2018-03-08 11:22:00 +01:00
Hans Svensson
d81f1eb32e
Introduce enoise_connection
...
This will put the control into a (gen_server) process that wraps the functionality in much the same way as ssl does for gen_tcp, etc.
Some features are still missing (like setopts)
2018-03-06 16:19:25 +01:00
Hans Svensson
b1d63ad3b9
Refactored + added some test vector support
2018-03-06 10:06:03 +01:00
Hans Svensson
bc8ebc7ec6
Refactor handshake flow control
2018-03-02 15:42:43 +01:00
Hans Svensson
4d2af24250
All crypto and top level in place
...
Limited support for protocols, virtually no error handling
2018-03-02 14:24:59 +01:00