Missing libsodiumjni APIs (Android) #7
Comments
I tested the sodium_version_string method, it returns a byte[] and not a string. This worked for me:
|
Added to following methods in a pull request: joshjdevl/libsodium-jni#115
|
I've tried using
The stacktrace suggests an issue in SodiumJNI. How did you manage to get this working? |
I've removed |
Yes your right.. When trying I tested using libsodium-jni directly in java and not on an android device. Added the issue here: joshjdevl/libsodium-jni#117 |
Looks like my pull request was approved: joshjdevl/libsodium-jni#115 Feel free to update your libsodium-jni version from their git master and add the missing crypto_aead* and crypto_box_curve25519xchacha20poly1305 methods for android :) |
Very cool. Working on it |
Full crypto_aead_* support is now available in flutter_sodium 0.0.7 |
Looks very promising! When could we expect secretbox to be implemented? |
@ralkan SecretBox has already been implemented. There is just the one method |
Correct, secretbox functions are available in both the core API ( |
@jeprojects Cool, this is great! Thanks. |
is the list up-to-date.. I was wondering if the |
The list is up-to-date, |
@kozw did you have a look at Google's tink library.. they support android with Java.. and support for iOS with obj-c will be in future according to the roadmap.. |
crypto_sign_ed25519_sk_to_curve25519 seems to be implemented but crypto_sign_ed25519_pk_to_curve25519 is not? |
This issue is now obsolete with the current FFI implementation. |
IMPORTANT NOTE
I'm currently porting flutter_sodium to FFI. The goal is to achieve 100% API coverage with FFI. The platform channel implementation is still maintained, but there are no plans to fix the missing APIs.
Several APIs are not available on Android. This is the complete list of libsodiumjni APIs that are missing or malfunctioning:
crypto_aead_chacha20poly1305_encrypt_detachedcrypto_aead_chacha20poly1305_decrypt_detachedcrypto_aead_chacha20poly1305_keygencrypto_aead_chacha20poly1305_ietf_encrypt_detachedcrypto_aead_chacha20poly1305_ietf_decrypt_detachedcrypto_aead_chacha20poly1305_ietf_keygencrypto_aead_xchacha20poly1305_ietf_encryptcrypto_aead_xchacha20poly1305_ietf_decryptcrypto_aead_xchacha20poly1305_ietf_encrypt_detachedcrypto_aead_xchacha20poly1305_ietf_decrypt_detachedcrypto_aead_xchacha20poly1305_ietf_keygenThe text was updated successfully, but these errors were encountered: