ECDHRendezvousChannel

class ECDHRendezvousChannel(    var transport: RendezvousTransport,     algorithm: SecureRendezvousChannelAlgorithm,     theirPublicKeyBase64: String?) : RendezvousChannel

Implements X25519 ECDH key agreement and AES-256-GCM encryption channel as per MSC3903: https://github.com/matrix-org/matrix-spec-proposals/pull/3903

Constructors

Link copied to clipboard
fun ECDHRendezvousChannel(    transport: RendezvousTransport,     algorithm: SecureRendezvousChannelAlgorithm,     theirPublicKeyBase64: String?)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun close()

Closes the channel and cleans up.

Link copied to clipboard
open suspend override fun connect(): String
Link copied to clipboard
fun decodeBase64(input: String?): ByteArray
Link copied to clipboard
fun encodeBase64(input: ByteArray?): String?
Link copied to clipboard
open suspend override fun receive(): ByteArray?

Receive a payload from the channel.

Link copied to clipboard
open suspend override fun send(data: ByteArray)

Send a payload via the channel.

Properties

Link copied to clipboard
open override var transport: RendezvousTransport