ArteMisc / libsalty

Elixir bindings for libsodium (NIF)
Apache License 2.0
21 stars 25 forks source link

Reasoning behind only detached decrypting? #11

Closed Ianleeclark closed 6 years ago

Ianleeclark commented 6 years ago

Hi,

I'm currently using this library and would like to use a non-detached decrypt (specificaly xchacha20poly1305). Is there any reasoning behind why detached decrypting was only implemented and would you accept a PR to implement libsodium's crypto_aead_xchacha20poly1305_ietf_decrypt?

Thanks!

Ianleeclark commented 6 years ago

https://github.com/ArteMisc/libsalty/blob/master/lib/salty/aead.ex#L7

Guess I should have done some more digging :) Sorry for the bother