Hans Svensson
be39bbc464
Bump version to 1.2.0
2021-10-28 15:35:00 +02:00
Hans Svensson
dd94b371e6
Merge pull request #12 from aeternity/support-otp-24
...
Use new crypto:block_encrypt api
2021-10-28 15:05:56 +02:00
Hans Svensson
11ca32c72f
Merge pull request #11 from lrascao/fix-rekey
...
Fix rekey, improve coverage
2021-10-28 15:00:58 +02:00
Sean Hinde
71300ba5b6
Use new crypto:block_encrypt api
2021-10-28 14:54:41 +02: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
991d7390ea
Merge pull request #10 from aeternity/prepare_1.1
...
Prepare version 1.1.0
v1.1.0
2020-09-24 22:25:27 +02:00
Hans Svensson
83fa0d5a00
Bump version to 1.1.0
2020-09-24 22:21:47 +02:00
Hans Svensson
336b331b8a
Introduce CHANGELOG.md
2020-09-24 22:21:25 +02:00
Hans Svensson
fc4a41f13d
Merge pull request #9 from aeternity/misc_improvements
...
Include cacaphony test vectors
2020-09-24 22:05:38 +02:00
Hans Svensson
3819ba5c0f
Merge pull request #8 from helium/madninja/upgrade_enacl
...
Upgrade enacl to 1.1.1
2020-09-24 21:59:23 +02:00
Hans Svensson
98d18bcaa5
Use cacaphony test vectors
2020-09-24 21:52:14 +02:00
Marc Nijdam
a3e803fc1a
Upgrade enacl to 1.1.1
2020-09-22 17:44:54 -06:00
Hans Svensson
1e6ee6703f
More improved typespecs
2019-01-29 09:08:17 +01:00
Hans Svensson
7c7ad54a6a
Improve type specs
2019-01-28 15:05:21 +01:00
Hans Svensson
c06bbae07d
Bump version to 1.0.1
v1.0.1
2018-12-21 13:27:23 +01:00
Hans Svensson
29420d6d63
Merge pull request #6 from aeternity/fix_bad_data_handshake
...
Fix bad data handshake
2018-12-21 11:00:41 +01:00
Hans Svensson
1ac27a035a
Make read_message/read_token more robust
2018-12-21 09:37:52 +01:00
Hans Svensson
6de4d0bf71
Add (and refactor) tests for bad data in handshake
2018-12-21 09:37:52 +01:00
Hans Svensson
49b8047772
Merge pull request #4 from aeternity/make_v_1.0
...
Prepare for version 1.0.0
v1.0.0
2018-10-09 16:41:50 +02:00
Hans Svensson
dc60c46fff
Prepare for version 1.0.0
2018-10-09 16:15:24 +02:00
Hans Svensson
71aac15db7
Merge pull request #2 from aeternity/uw-monitor-owner
...
Move monitor of owner into the connection process. Add test case.
2018-08-19 20:40:30 +02: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
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
7347906f29
Monitor owner process and handle normal termination
2018-05-08 16:00:10 +02:00
Hans Svensson
0436704327
Report decrypt error upstream (instead of crashing)
2018-05-08 16:00:10 +02:00
Hans Svensson
738b123164
Report send result to caller
2018-05-08 16:00:10 +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
a484d14c41
setopts is in inet, not gen_tcp
2018-04-25 09:37:00 +02:00
Hans Svensson
babd0cc11f
Pleasing dialyzer
2018-04-25 09:36:38 +02:00
Hans Svensson
9639e08a4f
Don't forget to close the gen_server upon tcp_closed
2018-04-18 10:15:46 +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
e705df03a4
Disable local client test
2018-03-09 11:06:02 +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
7805b983b2
Add xref configuration to rebar.config
...
Skip unused exports - that is expected from a library API…
2018-03-09 09:42:14 +01:00
Hans Svensson
8d47669d68
More documentation and some cleanup
2018-03-08 12:07:00 +01:00
Hans Svensson
9a9d9f47b8
Add docs to gitignore
2018-03-08 11:22:58 +01:00
Hans Svensson
ae1572bf93
Fix a bad type specification
2018-03-08 11:22:19 +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
14fe5c7e8e
Implement enoise_connection:controlling_process/2
2018-03-08 11:19:46 +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
955e5c2f32
Handle recv(NoiseSock, 0) correctly
...
This is a bit subtle since the underlying data is inherently chunked into Noise messages. Need to keep the right data around.
2018-03-07 14:28:56 +01:00