Closed yishais closed 5 years ago
Hi @yishais,
Nice catch! I've fixed the problem on master
. A formal release will be upcoming shortly with this change in.
Thank you for reporting.
These changes are now incorporated in release 4.1.0
. Thank you so much for improving Lazysodium 😄
In LazySodium,
public boolean cryptoBoxOpenDetached(byte[] message, byte[] cipherText, byte[] mac, byte[] cipherTextLen, byte[] nonce, byte[] publicKey, byte[] secretKey)
seems to be wrong with definingbyte[] cipherTextLen
instead of long. This goes all the way down in the interface, and eventually ends with a crash as byte[] in java is passed by reference, so converting a long to a byte[4] will not work.