Skip to main content

Module pairing

Module pairing 

Source
Expand description

Pairing primitives shared by clients and servers.

The pairing token is the operator-facing half: one string that carries a client’s identity and pairing secret, or a dynamic pairing code, from the client into the server. It is text, so it lives here unconditionally.

Code-based pairing additionally authenticates with CPace, a PAKE that turns a short pairing code into a shared key, and seals the two values that cross the wire under its output. Both are pure functions of bytes, so they live in this crate rather than in syncspin-client, which owns the pairing attempt state machine. They are behind the pairing-code feature: the default build has no PAKE, no Elligator 2, no AEAD of its own and no dependency on the map.

Modules§

code
The dynamic pairing code: its commitment and the derivation both sides repeat.
pake
CPace over X25519 with SHA-512, as Sendspin’s code-based pairing uses it.
token
The pairing token: the single string an operator carries from a client into a server.
wrap
Wrapping a pairing payload under the CPace output.