-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.SKI.SecretStream.Read
Andrew Lambert edited this page Nov 26, 2022
·
4 revisions
libsodium.SKI.SecretStream.Read
Function Read(Count As Integer, encoding As TextEncoding = Nil) As String Implements Readable.Read
Function Read(Count As Integer, AdditionalData As MemoryBlock) As String
Name | Type | Comment |
---|---|---|
Count | Integer | The number of encrypted bytes to read. |
Encoding | TextEncoding | Optional. If specified, the encoding of the decrypted data. |
Name | Type | Comment |
---|---|---|
Count | Integer | The number of encrypted bytes to read. |
AdditionalData | MemoryBlock | Additional data that was used to compute the authentication code. |
The decrypted bytes, or an empty string on error.
This method reads an encrypted message, decrypts it, and verifies the included message authentication code.
If AdditionalData
was used by the encryptor when generating the authentication code then the AdditionalData
must be supplied to this method (See: AEAD).
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.