Added jvm _sign_ implementation
This commit is contained in:
3 files changed
+253
No files matched your search
+7
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user