RFC 3629 RFC 3629: UTF-8, a transformation format of ISO 10646 <http://tools.ietf.org/html/rfc3629>." > %ents; ]>
OpenPGP for XMPP Instant Messaging Specifies a OpenPGP for XMPP (XEP-0373) profile for the Instant Messaging (IM) use case. This XMPP Extension Protocol is copyright (c) 1999 - 2016 by the XMPP Standards Foundation (XSF). Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the "Specification"), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation. ## NOTE WELL: This Specification is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. In no event shall the XMPP Standards Foundation or the authors of this Specification be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification. ## In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising out of the use or inability to use the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages. This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which may be found at <http://xmpp.org/extensions/ipr-policy.shtml> or obtained by writing to XSF, P.O. Box 1641, Denver, CO 80201 USA). 0374 Experimental Standards Track Standards Council XMPP Core XEP-0030 XEP-0373 oxim &flow; Dominik Schürmann dominik@dominikschuermann.de dominik@dominikschuermann.de Vincent Breitmoser look@my.amazin.horse valodim@stratum0.org 0.1.1 2016-06-04 fs

Minior editorial fixes.

0.1 2016-05-10 XEP Editor (ssw)

Initial published version approved by the XMPP Council.

0.0.1 2016-03-25 fs

First draft.

This XMPP extension protocol specifies a profile of &xep0373; for OpenPGP secured Instant Messaging (IM).

Unlike similar XEPs, e.g., OMEMO, this XEP does not provide Forward Secrecy (FS), but as an advantage in return, allows users to read their archived conversations (respectively their encrypted data) later on. Of course, only as long as they still possess the according secret key. FS and being able to decrypt archived messages are mutually exclusive, i.e., one can not have both. The authors therefore consider this XEP complementary to similar ones which also provide end-to-end encryption but with a different feature set.

If an entity supports exchanging OpenPGP encrypted and signed instant messages over XMPP, i.e., what is specified herein, it MUST advertise that fact by announcing a &xep0030; feature of 'urn:xmpp:openpgp:im:0'. It thus includes this feature in response to a service discovery request.

]]> ... ... ]]>

Because of possible downgrade attacks, users should be given an option to force the usage of the protocol defined herein no matter if the remote announces support or not.

In order to establish a OpenPGP secured IM communication, IM clients first need to determine the public key of their interlocutor(s). OpenPGP historically provides public keyservers which can be used for key retrieval. Additional there are methods to store OpenPGP key information in the Domain Name System (DNS). This specification does not restrict the mechanism of key discovery and retrieval, but compliant clients MUST support the public key announcement as described in XEP-0373 § 4.

After the required public keys have been discovered, XMPP clients engage in an OpenPGP secured IM conversation by exchanging &openpgp; extension elements. They MUST use the &signcrypt; OpenPGP content element specified in XEP-0373 § 3.1.

The child elements of the OpenPGP content element's &payload; can be seen as stanza extension elements which are encrypted and signed. After the &openpgp; element and the including &signcrypt;, element was verified, they SHOULD be processed similar as if they had been direct extension elements of the stanza. For example, direct child elements found in &payload; in the context of IM could be:

  • Message bodies (&rfc6121; § 5.2.3): <body xmlns='jabber:client'/>
  • &xep0085;: <active xmlns='http://jabber.org/protocol/chatstates'/>
  • &xep0071;: <html xmlns='http://jabber.org/protocol/xhtml-im'/>

But just as with stanza extension elements, child elements of &payload; can be any extension element. The example above uses the <body/> element as defined in RFC 6121. Note that it uses 'jabber:client' as namespace, but since the same <body/> element is also defined in the 'jabber:server' namespace, recipients MUST accept both.

Clients MUST expect multiple public keys to be announced for a single remote entity. In this case all keys MUST be used for encryption.

Clients MAY want to use the mechanism in XEP-0373 § 5 to synchronize their secret key(s) over multiple devices. Thus, they should query the user's PEP service for an eventually stored encrypted secret key.

Only &signcrypt; MUST be used for the IM use case. Encrypted but unsigned messages (&crypt;) do not provide an advantage over unencrypted ones since the sender can not be verified. As result of this rule, the user interface of IM clients implementing the protocol defined herein MUST NOT provide an option for the user to select between sign+crypt, sign or crypt. This also increases the usability.

In the IM use case every &MESSAGE; equipped with &openpgp; SHOULD include an unencrypted <body/> explaining that the actual message is encrypted. Furthermore the message SHOULD contain a 'store' hint as defined in &xep0334; § 4.4

This message is encrypted using OpenPGP. BASE64_OPENPGP_MESSAGE_CONTAINING__CONTENT_ELEMENT ]]>

This document requires no interaction with &IANA;.

The ®ISTRAR; includes 'urn:xmpp:openpgp:0' in its registry of protocol namespaces (see &NAMESPACES;).

This XEP does not define a Schema, since it exclusively uses elements from XEP-0373 and other XEPs.

Please refer to the Acknowledgements section of XEP-0373, since the two XEPs where designed together.