mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 11:34:09 +01:00
Clarify key encoding algorithm
This commit is contained in:
parent
9b07a92329
commit
24916ecf73
|
|
@ -948,7 +948,8 @@ interface.
|
||||||
When this happens, the key SHOULD be presented as a string formatted as
|
When this happens, the key SHOULD be presented as a string formatted as
|
||||||
follows:
|
follows:
|
||||||
|
|
||||||
1. The raw key is prepended by the two bytes `0x8B` and `0x01`.
|
1. A byte array is created, consisting of two bytes `0x8B` and `0x01`,
|
||||||
|
followed by the raw key.
|
||||||
2. All the bytes in the array above, including the two header bytes,
|
2. All the bytes in the array above, including the two header bytes,
|
||||||
are XORed together to form a parity byte. This parity byte is
|
are XORed together to form a parity byte. This parity byte is
|
||||||
appended to the byte array.
|
appended to the byte array.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue