Skip to content

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).

StepPartyOperationOutput
1Initiator(pk, sk) ← KeyGen()Public-key message containing pk (1184 bytes)
2Responder(c, K) ← Encaps(pk)Ciphertext message containing c (1088 bytes)
3InitiatorK ← Decaps(sk, c)Shared secret K (32 bytes)
4Bothcode ← SHA-256("veloce-kex-confirm/1" ‖ K), first 48 bitsConfirmation 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.

StepHostAction
1InitiatorSelect Start, then Create key pair.
2InitiatorTransfer the public-key message: Copy, or Save file (veloce-public-key.txt).
3ResponderSelect Respond. Enter the message in field 1 (paste, or Open file). Select Create reply.
4ResponderTransfer the ciphertext message: Copy, or Save file (veloce-ciphertext.txt).
5InitiatorEnter the message in field 2 (paste, or Open file). Select Derive secret.
6BothCompare the confirmation codes, for example B69B-996A-B8D3.

Each key pair serves one exchange.

Error conditions ​

MessageCauseResolution
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.