diff --git a/xep-0384.xml b/xep-0384.xml index 66fd881d..39c473c1 100644 --- a/xep-0384.xml +++ b/xep-0384.xml @@ -370,14 +370,14 @@ - BASE64ENCODED - BASE64ENCODED - BASE64ENCODED + b64/encoded/data + b64/encoded/data + b64/encoded/data - BASE64ENCODED - BASE64ENCODED + b64/encoded/data + b64/encoded/data - BASE64ENCODED + b64/encoded/data @@ -489,7 +489,7 @@

An OMEMO encrypted message is specified to include an the <encrypted> element in the 'urn:xmpp:omomo:1' namespace. It always contains two child nodes, the <header> and the &payload; element. The <header> element has an attribute named 'sid' referencing the device id of the sending device and contains one or multiple <keys> elements, each with an attribute 'jid' of one recipient JID as well as one or multiple <key> elements. - A <key> element has an attribute named 'rid' referencing the device id of the recipient device. The ciphertext that is the key and HMAC encrypted using the long-standing OMEMO session for that recipient device is encoded using base64 and places as text content into the <key> element. + A <key> element has an attribute named 'rid' referencing the device id of the recipient device, and an attribute named 'kex' which defaults to 'false' and indicates if the enclosed encrypted message includes a key exchange. The ciphertext that is the key and HMAC encrypted using the long-standing OMEMO session for that recipient device is encoded using base64 and places as text content into the <key> element. The ciphertext that is the encrypted &content; element is encoded using base64 and placed as text content into the &payload; element.

- BASE64ENCODED... + b64/encoded/data - BASE64ENCODED... - BASE64ENCODED... + b64/encoded/data + b64/encoded/data
- -- MESSAGE-KEY-ENCRYPTED CONTENT ELEMENT -- + base64/encoded/message/key/encrypted/content/element @@ -567,17 +567,17 @@
- BASE64ENCODED... + b64/encoded/data - BASE64ENCODED... + b64/encoded/data - BASE64ENCODED... + b64/encoded/data
- -- MESSAGE-KEY-ENCRYPTED CONTENT ELEMENT -- + base64/encoded/message/key/encrypted/content/element
@@ -627,57 +627,107 @@ + + targetNamespace="urn:xmpp:omemo:1" + xmlns="urn:xmpp:omemo:1"> - - - - - - - - - - - + + + + + + + - - - - - - - - - - - + - - - - - - - - - - - - - - + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]>