-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.SKI.SecretStream.Constructor
Andrew Lambert edited this page Nov 26, 2022
·
7 revisions
libsodium.SKI.SecretStream.Constructor
Sub Constructor(Buffer As MemoryBlock, Key As libsodium.SKI.SecretKey, DecryptHeader As MemoryBlock = Nil, HeaderPassword As libsodium.Password = Nil)
Sub Constructor(Buffer As MemoryBlock, Key As libsodium.PKI.SharedSecret, DecryptHeader As MemoryBlock = Nil, HeaderPassword As libsodium.Password = Nil)
Name | Type | Comment |
---|---|---|
Buffer | MemoryBlock | The buffer containing encrypted data, or to which encrypted data should be written. |
Key | SecretKey or SharedSecret | A secret or shared key. |
DecryptHeader | MemoryBlock | The decryption header (decryption only.) |
HeaderPassword | Password | Optional. The password to decrypt the exported DecryptHeader (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 used to encrypt the stream.
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-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