-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.PKI.SignData
Andrew Lambert edited this page Mar 15, 2017
·
11 revisions
Protected Function SignData(Message As MemoryBlock, SenderKey As libsodium.PKI.SigningKey, Detached 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. |
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.
- 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.
- libsodium module
- FAQ
-
Examples
- Secure memory
- Password hashing
- Generic hashing
- Encrypting streams or files
- PKI
- Encryption
- Digital signatures
- SKI
- Encryption
- Message authentication