Skip to content

libsodium.SKI.SecretStream.Constructor

Andrew Lambert edited this page Dec 28, 2018 · 7 revisions

Method Signature

 Sub Constructor(Buffer As MemoryBlock, Key As libsodium.SKI.KeyContainer, DecryptHeader As MemoryBlock = Nil)

Parameters

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.)

Remarks

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.

Clone this wiki locally