Skip to content

libsodium.SKI.SecretStream.Create

Andrew Lambert edited this page Nov 26, 2022 · 4 revisions

Method Signatures

 Shared Function Create(Key As libsodium.SKI.KeyContainer, OutputStream As Writeable) As libsodium.SKI.SecretStream
 Shared Function Create(Key As libsodium.PKI.SharedSecret, OutputStream As Writeable) As libsodium.SKI.SecretStream

Parameters

Name Type Comment
Key SecretKey or SharedSecret A secret or shared key.
OutputStream Writeable The output stream to which encrypted data will be written.

Return value

An instance of SecretStream, or Nil on error.

Remarks

Creates a SecretStream in encryption mode.

Clone this wiki locally