mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-06 16:03:42 +01:00
1.3 KiB
1.3 KiB
SAS verification, v2
Proposal
A new key_agreement_protocol, curve25519-hkdf-sha256 is introduced. It is
the same as curve25519 except that the info parameter for the HKDF is the
concatenation of:
- The string
MATRIX_KEY_VERIFICATION_SAS|. - The Matrix ID of the user who sent the
m.key.verification.startmessage, followed by|. - The Device ID of the device which sent the
m.key.verification.startmessage, followed by|. - The public key from the
m.key.verification.keymessage sent by the device which sent them.key.verification.startmessage, followed by|. - The Matrix ID of the user who sent the
m.key.verification.acceptmessage, followed by|. - The Device ID of the device which sent the
m.key.verification.acceptmessage, followed by|. - The public key from the
m.key.verification.keymessage sent by the device which sent them.key.verification.acceptmessage, followed by|. - The
transaction_idbeing used.
The differences from curve25519 are the addition of the public keys, and the
addition of | as delimiter between the fields.
The key_agreement_protocol curve25519 is deprecated and may be removed in
the future.