read
fun read(message: ByteArray): Triple<HandshakeStateWriter, ByteArray, Triple<CipherState, CipherState, ByteArray>?>
Content copied to clipboard
Return
a (writer, payload, Option(cipherstate, cipherstate) tuple. The payload contains the original payload used by the sender and a writer that will be used to create the next message. When the handshake is over (i.e. there are no more handshake patterns to process) the last item will contain 2 cipherstates than can be used to encrypt/decrypt further communication
Parameters
message
input message