firstfloorsoftware / flutter_sodium

Flutter bindings for libsodium
BSD 3-Clause "New" or "Revised" License
102 stars 46 forks source link

Add a xchacha version of crypto_box_seal #6

Closed jeprojects closed 5 years ago

jeprojects commented 5 years ago

Is it possible to add a version of Sodium.cryptoBox* to use XChaCha20 instead of XSalsa20?

libsodium already support this although undocumented: https://github.com/jedisct1/libsodium/commit/ccb842f4884aa8917dcbba79509a349f8c475b3c

jeprojects commented 5 years ago

I have added the necessary code to libsodium-jni in a pull request (if it gets approved).

https://github.com/joshjdevl/libsodium-jni/pull/115

kozw commented 5 years ago

That should not be a problem

jeprojects commented 5 years ago

Any chance you could get this one added soon?

kozw commented 5 years ago

Didn't notice it was already merged in libsodium-jni. I have a working Android version, iOS doesn't work yet. Hoping to have a new version soon.

kozw commented 5 years ago

Available in v0.0.8