encryptingSink

abstract fun encryptingSink(ciphertext: RawSink): RawSink(source)

Returns a RawSink that encrypts data as it is written, sending the resulting ciphertext to ciphertext. Write plaintext to the returned sink, and ciphertext will be forwarded to ciphertext.

Use encryptingSource to wrap a source instead.