you need to do something like ```return output.sin...
# squarelibraries
j
you need to do something like
Copy code
return output.sink().buffer().let {
  // write into the BufferedSink's buffer
  it.buffer.writeInt(cipher.iv.size)
  it.buffer.write(cipher.iv)
  // return a CipherSink around the BufferedSink
  it.cipherSink(cipher)
}