I found a few problems when experimenting with Salty that are fixed by this PR:
Salty.Box.Curve25519xsalsa20poly1305.seal/2 was calling the wrong NIF primitive
the NIF function for box_curve25519xsalsa20poly1305_seal_open was returning the original ciphertext, not the decrypted plaintext, and
Compiling salty was deleting other dependencies.
3 is a bit weird: don't know if its an elixir/mix bug but having the compile alias call ["compile", &make/1] in that order was deleting other compiled dependencies in my project, i.e. the directories under _build/dev/lib were being deleted. This is on Elixir 1.5.2, OTP 20.
Switching the order of the compile commands fixed it (luckily).
Thanks for the library.
I found a few problems when experimenting with Salty that are fixed by this PR:
Salty.Box.Curve25519xsalsa20poly1305.seal/2
was calling the wrong NIF primitivebox_curve25519xsalsa20poly1305_seal_open
was returning the original ciphertext, not the decrypted plaintext, and3 is a bit weird: don't know if its an elixir/mix bug but having the compile alias call
["compile", &make/1]
in that order was deleting other compiled dependencies in my project, i.e. the directories under_build/dev/lib
were being deleted. This is on Elixir 1.5.2, OTP 20.Switching the order of the compile commands fixed it (luckily).