encrypt

abstract suspend fun encrypt(source: Source, outputSink: Sink, authenticationData: AuthenticationData)

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

Return

a UByteArray containing the extra data that might be needed for decryption depending on the implementation.

See also