Jesper Louis Andersen
bdb4719f6d
Fix AEAD parameter order / naming.
...
The order of parameters were in the wrong order. Make them equal
to the official order of libsodium.
While here, rename NONCEBYTES to NPUBBYTES so it reflects the
underlying names as well.
2020-01-21 13:57:39 +01:00
Jesper Louis Andersen
92b91bd806
Rename "nacl_error_tuple" -> "enacl_error_tuple"
...
The new name is consistent where the old name was not.
2020-01-21 13:40:35 +01:00
Jesper Louis Andersen
fec24995d1
Clean up aead construction, plug mem-leak
2020-01-21 13:39:08 +01:00
Jesper Louis Andersen
fe478ea253
Header file fixupUse <erl_nif.h> since it is a system header.Also rearrange headers to be consistent.
2020-01-20 14:57:42 +01:00
Jesper Louis Andersen
4eaef57a76
Rename AEAD routines from enif_* to enacl_*
2020-01-19 13:32:15 +01:00
Jesper Louis Andersen
3ee5a94caf
Split off AEAD functions to a separate file
2020-01-19 13:29:32 +01:00