cipherSink

fun Sink.cipherSink(cipher: Cipher): CipherSink

Returns a sink that uses cipher to encrypt or decrypt this.

Throws

if cipher isn't a block cipher.