18 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
Ulf Wiger
91916908a0 Revert "Update enacl dep and fix some minor details (#1)"
This reverts commit 479ec7087031b3b69ca2dd9b5c8e471d0a1125cd.
2025-03-29 20:57:45 +01:00
479ec70870 Update enacl dep and fix some minor details (#1)
Co-authored-by: Ulf Wiger <ulf@wiger.net>
Reviewed-on: #1
2025-03-08 00:28:12 +09:00
Luis Rascao
ffde489e53 Fix rekey, improve coverage
ChaChaPoly key is expected to be 256 bits long. It's safe to disregard
the MAC portion.
2021-04-27 15:40:58 +01:00
Hans Svensson
98d18bcaa5 Use cacaphony test vectors 2020-09-24 21:52:14 +02:00
Hans Svensson
6de4d0bf71 Add (and refactor) tests for bad data in handshake 2018-12-21 09:37:52 +01:00
Ulf Wiger
cff15e0bfb Move monitor of owner into the connection process. Add test case. 2018-08-17 12:53:00 +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
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
e705df03a4 Disable local client test 2018-03-09 11:06:02 +01:00
Hans Svensson
a11887393f Refactor keypair into separate module enoise_keypair 2018-03-08 11:22:00 +01:00
Hans Svensson
866b4421b3 Add tests at gen_tcp-level
Move data structure tests to enoise_hs_state_tests
2018-03-07 14:29:37 +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
4414c0d7a2 More tests 2018-03-02 14:25:18 +01:00
Hans Svensson
d0723eb247 Symmetric state layer 2018-03-01 21:49:22 +01:00
Hans Svensson
0d563884eb Some tests for cipher_state 2018-03-01 20:37:57 +01:00