encryptingSource

open override fun encryptingSource(plaintext: RawSource): RawSource(source)

Returns a RawSource that encrypts data as it is read from the given plaintext source without associated data.

Use encryptingSink to wrap a sink instead.


abstract fun encryptingSource(plaintext: RawSource, associatedData: ByteArray?): RawSource(source)
open fun encryptingSource(plaintext: RawSource, associatedData: ByteString?): RawSource(source)

Returns a RawSource that encrypts data as it is read from the given plaintext source with optional associatedData.

Use encryptingSink to wrap a sink instead.