Added jvm implementation, fixed seal invalid return
This commit is contained in:
5 files changed
+295
-51
No files matched your search
+2
-3
@@ -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 {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user