Appearance
Key exchange between two computers
This page specifies one ML-KEM-768 (FIPS 203) key encapsulation exchange between two hosts that run Veloce Desktop. On completion, both hosts hold an identical 32-byte shared secret.
Version
The description applies to Veloce Desktop 1.3.
Protocol
Two parties participate: the initiator and the responder. Two messages are transferred between the hosts over an arbitrary channel (chat, email, shared directory, removable storage).
| Step | Party | Operation | Output |
|---|---|---|---|
| 1 | Initiator | (pk, sk) ← KeyGen() | Public-key message containing pk (1184 bytes) |
| 2 | Responder | (c, K) ← Encaps(pk) | Ciphertext message containing c (1088 bytes) |
| 3 | Initiator | K ← Decaps(sk, c) | Shared secret K (32 bytes) |
| 4 | Both | code ← SHA-256("veloce-kex-confirm/1" ‖ K), first 48 bits | Confirmation code |
Message encoding. VELOCE-KEX1.<kind>.<payload>.<check>, where kind is PK or CT, payload is the base64url encoding of the value, and check is the first 32 bits of the SHA-256 digest of the value.
Confirmation. Identical confirmation codes on both hosts establish that both parties derived the same secret K. Differing codes indicate a failed exchange, which is to be repeated.
Procedure
The Key exchange page is opened on both hosts.
| Step | Host | Action |
|---|---|---|
| 1 | Initiator | Select Start, then Create key pair. |
| 2 | Initiator | Transfer the public-key message: Copy, or Save file (veloce-public-key.txt). |
| 3 | Responder | Select Respond. Enter the message in field 1 (paste, or Open file). Select Create reply. |
| 4 | Responder | Transfer the ciphertext message: Copy, or Save file (veloce-ciphertext.txt). |
| 5 | Initiator | Enter the message in field 2 (paste, or Open file). Select Derive secret. |
| 6 | Both | Compare the confirmation codes, for example B69B-996A-B8D3. |
Each key pair serves one exchange.
Error conditions
| Message | Cause | Resolution |
|---|---|---|
The message is incomplete or was altered; copy it again. | The check value does not match the payload. | Transfer the complete message again. |
A ciphertext message is expected here. | A public-key message was entered in field 2. | Enter the responder's message. |
This text is not a Veloce key-exchange message. | The input does not conform to the message encoding. | Enter a message with the prefix VELOCE-KEX1. |
The agent no longer holds this key pair. Create a new one. | The key pair of step 1 has been released. | Repeat the procedure from step 1. |
Related pages
- Veloce Desktop: specification of the three pages.
- SDK & CLI reference: the
kex-commands.

