Added jvm _sign_ implementation

This commit is contained in:
Ugljesa Jovanovic committed 2020-09-15 13:02:43 +02:00
1 parent b0ce2e10fc
commit 37a5cdb2d0
3 files changed
+253

No files matched your search

@@ -51,6 +51,10 @@ actual object Signature {
signaturePinned.toPtr(),
publicKeyPinned.toPtr()
)
signaturePinned.unpin()
publicKeyPinned.unpin()
if (verificationResult == -1) {
throw InvalidSignatureException()
}
@@ -136,6 +140,9 @@ actual object Signature {
signedMessage.size.convert(),
publicKeyPinned.toPtr()
)
messagePinned.unpin()
signedMessagePinned.unpin()
publicKeyPinned.unpin()
if (verificationResult == -1) {
throw InvalidSignatureException()
}