Expand description
The transfer’s cryptography: SPAKE2 over the code, the commitment that stops either side picking its message after seeing the other’s, the transcript every key is bound to, the sealed messages that follow, and the ML-KEM-1024 exchange whose secret joins SPAKE2’s before the identity is sealed, so a recording is safe from a future quantum computer too.
Structs§
- KemSeed
- The receiver’s ML-KEM-1024 key, held as its 64-byte FIPS 203 seed: the expanded private key is rebuilt only to decapsulate, then wiped.
- Pake
- One side’s SPAKE2 run over the code.
- Session
Keys
Enums§
- Dir
- Which way a sealed message travels; each direction has its own key.
- Sealed
- The sealed message kinds. Each is sent at most once per direction, so the kind is the nonce.
Constants§
- KEM_
CIPHERTEXT_ LEN - An ML-KEM-1024 ciphertext’s size.
- KEM_
PUBLIC_ LEN - An ML-KEM-1024 encapsulation key’s size.
- PAKE_
MSG_ LEN - A SPAKE2 message: the symmetric side byte and a compressed Edwards point.
- SAS_
DIGITS - Digits in the number the user carries from the new device to the old one.
Functions§
- commitment
- What the joiner publishes before it sees the shower’s message, so it can’t choose its own later.
- kem_
encapsulate - Encapsulate to the receiver’s key, once it passes FIPS 203’s encapsulation key check.
- kem_
public_ ok - Whether
public_keyis a well-formed ML-KEM-1024 encapsulation key (FIPS 203’s check). - room
- The meeting room for a nameplate. Derived from the nameplate alone and public by design: a room derived from the words would let anyone watching the relays search for the code offline.
- transcript
- Everything both devices agreed on, in a fixed order with fixed lengths.