Skip to main content

Module kex

Module kex 

Source
Expand description

S2 key exchange (KEX) constants and the Curve25519 key pair.

The exchange itself is a conversation between the controller and the joining node and lives in the host stack; this module holds the pieces both sides compute identically.

Structs§

KeyPair
A Curve25519 key pair: the controller’s long-term pair, or a node’s.

Enums§

KexFail
Why a key exchange was aborted (the KEX Fail command’s payload).

Constants§

ECDH_CURVE25519
The Curve25519 ECDH profile, the bit in the “supported profiles” byte.
KEX_SCHEME_1
KEX scheme 1, the bit in the “supported schemes” byte.

Functions§

bootstrap_keys
The temporary keys both ends derive once public keys are exchanged.