-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.PKI.SignData
Andrew Lambert edited this page Mar 20, 2017
·
11 revisions
Protected Function SignData(Message As MemoryBlock, SenderKey As libsodium.PKI.SigningKey, Detached As Boolean = False, Exportable As Boolean = False) As MemoryBlock
Name | Type | Comment |
---|---|---|
Message | MemoryBlock | The data to be decrypted. |
SenderKey | SigningKey | The signer's key pair. |
Detached | Boolean | Optional. if True then only the signature is returned. The default is False which returns the Message and the signature concatenated. |
Exportable | Boolean | Optional. If True then the return value is encoded in a text-based export format; otherwise the raw binary data is returned. |
The Message
and signature concatenated, or (if Detatched=True
) the signature only. On error returns Nil
.
Digitally signs the Message
using the private half of the specified Ed25519 key pair. By default, the message and signature are returned concatenated. To get the signature only specify the Detatched
parameter.
If Exportable=True
then the return value is the signed message encoded in a plain text format. Both the raw binary and plain text format are understood by the VerifyData
method.
- VerifyData
- Public key signatures in the libsodium documentation.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.