encryptingSink

open override fun encryptingSink(ciphertext: RawSink): RawSink(source)

Returns a RawSink that encrypts data as it is written, sending the resulting ciphertext to ciphertext, without associated data.

Use encryptingSource to wrap a source instead.


abstract fun encryptingSink(ciphertext: RawSink, associatedData: ByteArray?): RawSink(source)
open fun encryptingSink(ciphertext: RawSink, associatedData: ByteString?): RawSink(source)

Returns a RawSink that encrypts data as it is written, sending the resulting ciphertext to ciphertext, with optional associatedData.

Use encryptingSource to wrap a source instead.