XChaCha20Poly1305

Implementation of EncryptedStream that relies on Libsodium's SecretStream. It will encrypt the whole Source into an output Sink in smaller messages of INDIVIDUAL_PLAINTEXT_MESSAGE_SIZE.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun decrypt(source: <Error class: unknown class>, outputSink: <Error class: unknown class>, authenticationData: XChaChaPoly1305AuthenticationData): DecryptionResult

Decrypts the source data using the provided authenticationData. The result is fed into the outputSink.

Link copied to clipboard
open suspend override fun encrypt(source: <Error class: unknown class>, outputSink: <Error class: unknown class>, authenticationData: XChaChaPoly1305AuthenticationData)

Encrypts the source data using the provided authenticationData. The result is fed into the outputSink.