-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.SKI.SecretStream.Constructor
Andrew Lambert edited this page Dec 28, 2018
·
7 revisions
libsodium.SKI.SecretStream.Constructor
Sub Constructor(Buffer As MemoryBlock, Key As libsodium.SKI.KeyContainer, DecryptHeader As MemoryBlock = Nil)| Name | Type | Comment |
|---|---|---|
| Buffer | MemoryBlock | The buffer containing encrypted data, or to which encrypted data should be written. |
| Key | KeyContainer | A secret key, shared key, or encryption key. |
| DecryptHeader | MemoryBlock | The decryption header (decryption only.) |
Constructs an in-memory SecretStream. If the Buffer size is zero then an encryption stream is created, otherwise a decryption stream is
created. Decryption requires the original decryption header.
If libsodium is not available at runtime, a PlatformNotSupportedException will be raised.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-26 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