tether-core
Toggle table of contents
1.3.2
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
tether-core
tether-core
/
app.tether.core
/
CentralHandshake
Central
Handshake
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.
Members
Constructors
Central
Handshake
Link copied to clipboard
constructor
(
staticKey
:
KeyPair
,
peerStatic
:
ByteArray
,
token
:
ByteArray
?
,
ephemeral
:
KeyPair
=
P256.generate()
,
nonce
:
ByteArray
=
ByteArray(16).also { SecureRandom().nextBytes(it) }
)
Properties
hello
Body
Link copied to clipboard
lateinit
var
helloBody
:
ByteArray
keys
Link copied to clipboard
var
keys
:
SessionKeys
?
Functions
hello
Link copied to clipboard
fun
hello
(
)
:
Record
receive
Link copied to clipboard
fun
receive
(
r
:
Record
)
:
Pair
<
SecureSession
,
Record
>
verify
Finish
Link copied to clipboard
fun
verifyFinish
(
s
:
SecureSession
,
r
:
Record
)