SecureSession

class SecureSession(sendKey: ByteArray, recvKey: ByteArray)(source)

AES-256-GCM record layer with strict per-direction counters (protocol §4). Thread-safe.

Constructors

Link copied to clipboard
constructor(sendKey: ByteArray, recvKey: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns (channel, payload). Throws on any counter mismatch or auth failure.

Link copied to clipboard
fun seal(channel: Int, payload: ByteArray): Record