mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -05:00
Protobuf structures improved
This commit is contained in:
parent
f60fdbec98
commit
94c8f01e53
22
xep-0384.xml
22
xep-0384.xml
@ -564,23 +564,23 @@
|
|||||||
<section1 topic='Protobuf Schema' anchor='protobuf-schema'>
|
<section1 topic='Protobuf Schema' anchor='protobuf-schema'>
|
||||||
<code><![CDATA[
|
<code><![CDATA[
|
||||||
message OMEMOMessage {
|
message OMEMOMessage {
|
||||||
bytes dh_pub;
|
required uint32 n = 1;
|
||||||
uint32 n;
|
required uint32 pn = 2;
|
||||||
uint32 pn;
|
required bytes dh_pub = 3;
|
||||||
optional bytes ciphertext;
|
optional bytes ciphertext = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message OMEMOAuthenticatedMessage {
|
message OMEMOAuthenticatedMessage {
|
||||||
bytes mac;
|
required bytes mac = 1;
|
||||||
bytes omemo_message;
|
required OMEMOMessage message = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message OMEMOKeyExchange {
|
message OMEMOKeyExchange {
|
||||||
uint32 pk_id;
|
required uint32 pk_id = 1;
|
||||||
uint32 spk_id;
|
required uint32 spk_id = 2;
|
||||||
bytes ik;
|
required bytes ik = 3;
|
||||||
bytes ek;
|
required bytes ek = 4;
|
||||||
bytes omemo_authenticated_message;
|
required OMEMOAuthenticatedMessage message = 5;
|
||||||
}
|
}
|
||||||
]]></code>
|
]]></code>
|
||||||
</section1>
|
</section1>
|
||||||
|
Loading…
Reference in New Issue
Block a user