Commit Graph

20 Commits

Author SHA1 Message Date
Hans Svensson 2b5f08e156 Ditch enacl, support DH448 and Blake2s, and fix types (#14)
* Remove get_stacktrace (deprecated since OTP-24)

* Add DH448 support and switch to crypto:generate_key for DH25519

* Switch to crypto:hash/2 for Blake2b and support Blake2s

* Switch last enacl calls to crypto - no more enacl

* Eqwalizer fixes

Ewqalizer fix

Eqwalizer fix

Eqwalizer fix

Eqwalizer fix

Eqwalizer support

Eqwalizer fix

Fix tests to follow types (remote keys)

* More error handling on setup

* Dialyzer fix

* Write CHANGELOG

* Note about type-checking in README
2025-03-30 05:02:35 +09:00
Hans Svensson 7c7ad54a6a Improve type specs 2019-01-28 15:05:21 +01:00
Hans Svensson c3bdb02e53 Don't trust send message to succeed 2018-05-16 10:46:39 +02:00
Hans Svensson 4c436e395d Don't trust inet:getopts to succeed 2018-05-16 10:42:00 +02:00
Hans Svensson e3baa21bb0 Don't assume send is always ok 2018-04-26 08:38:46 +02:00
Hans Svensson 14b6f4624a Handle error from inet:getopts 2018-04-25 09:40:09 +02:00
Hans Svensson a024fc4dc9 Handle failed decrypts in handshake 2018-04-25 09:37:26 +02:00
Hans Svensson fc510c07a1 Handle errors in start_link (tcp_closed) 2018-04-17 09:00:22 +02:00
Hans Svensson 41b8efd201 Use the noise_split_state() type where appropriate 2018-03-15 14:10:59 +01:00
Hans Svensson 6d793b7118 On successful accept/connect - also return the final Handshake state 2018-03-15 14:03:41 +01:00
Hans Svensson d81f973bca More documentation and a more intuitive step_handshake 2018-03-14 10:38:50 +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 272dcde689 Add stepwise generic handshake 2018-03-09 13:57:14 +01:00
Hans Svensson 2f220d599c Introduce generic enoise:handshake and implement tcp in terms of it 2018-03-09 10:26:49 +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 dd5200d64f Some documentation in enoise.erl 2018-03-08 11:20:24 +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 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