Peripheral Handshake
class PeripheralHandshake(staticKey: PrivateKey, ephemeral: KeyPair = P256.generate(), nonce: ByteArray = ByteArray(16).also { SecureRandom().nextBytes(it) })(source)
Peripheral (Android) side of the handshake. staticKey may be an AndroidKeyStore key. staticPublic is its X9.63 encoding.
Constructors
Link copied to clipboard
constructor(staticKey: PrivateKey, ephemeral: KeyPair = P256.generate(), nonce: ByteArray = ByteArray(16).also { SecureRandom().nextBytes(it) })
Properties
Functions
Link copied to clipboard
Verifies the central's FIN; returns the session and our FIN.
Link copied to clipboard