CentralHandshake

class CentralHandshake(staticKey: KeyPair, peerStatic: ByteArray, token: ByteArray?, ephemeral: KeyPair = P256.generate(), nonce: ByteArray = ByteArray(16).also { SecureRandom().nextBytes(it) })(source)

Central side; used by tests and the Mac-side tooling.

Constructors

Link copied to clipboard
constructor(staticKey: KeyPair, peerStatic: ByteArray, token: ByteArray?, ephemeral: KeyPair = P256.generate(), nonce: ByteArray = ByteArray(16).also { SecureRandom().nextBytes(it) })

Properties

Link copied to clipboard
lateinit var helloBody: ByteArray
Link copied to clipboard

Functions

Link copied to clipboard
fun hello(): Record
Link copied to clipboard
Link copied to clipboard