Added jvm implementation, fixed seal invalid return

This commit is contained in:
Ugljesa Jovanovic committed 2020-09-10 18:30:06 +02:00
1 parent 9cb2701715
commit 7a8640638c
5 files changed
+295 -51

No files matched your search

@@ -1,6 +1,5 @@
package com.ionspin.kotlin.crypto.box
import com.ionspin.kotlin.crypto.util.toHexString
import com.ionspin.kotlin.crypto.util.toPtr
import kotlinx.cinterop.convert
import kotlinx.cinterop.pin
@@ -326,7 +325,7 @@ actual object Box {
messagePinned.unpin()
recipientsPublicKeyPinned.unpin()
return message
return ciphertextWithPublicKey
}
@@ -361,4 +360,4 @@ actual object Box {
}
}
}