SecureSession

data class SecureSession(val remote: DeviceAddress, val state: ByteArray)

Persisted state of one end-to-end session with remote.

state is opaque and owned by the ProtocolEngine. It contains secret ratchet keys, so store it only in protected storage. Every encrypt/decrypt returns a new SecureSession. Replace the stored one with it. Reusing an older state breaks forward secrecy and causes decryption failures.

Constructors

Link copied to clipboard
constructor(remote: DeviceAddress, state: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard