XEP-0218: Bootstrapping Implementation of Encrypted Sessions

This document provides guidelines to client and library developers for bootstrapping implementation of the encrypted sessions technology.


WARNING: Consideration of this document has been Deferred by the XMPP Standards Foundation. Implementation of the protocol described herein is not recommended.


Document Information

Series: XEP
Number: 0218
Publisher: XMPP Standards Foundation
Status: Deferred
Type: Informational
Version: 0.1
Last Updated: 2007-05-30
Approving Body: XMPP Council
Dependencies: XMPP Core, XEP-0116, XEP-0155, XEP-0200, XEP-0201
Supersedes: None
Superseded By: None
Short Name: N/A
Wiki Page: <http://wiki.jabber.org/index.php/Bootstrapping Implementation of Encrypted Sessions (XEP-0218)>


Author Information

Peter Saint-Andre

JabberID: stpeter@jabber.org
URI: https://stpeter.im/

Ian Paterson

Email: ian.paterson@clientside.co.uk
JabberID: ian@zoofy.com


Legal Notices

Copyright

This XMPP Extension Protocol is copyright (c) 1999 - 2008 by the XMPP Standards Foundation (XSF).

Permissions

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.

Disclaimer of Warranty

## 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. ##

Limitation of Liability

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.

IPR Conformance

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://www.xmpp.org/extensions/ipr-policy.shtml> or obtained by writing to XSF, P.O. Box 1641, Denver, CO 80201 USA).

Discussion Venue

The preferred venue for discussion of this document is the Standards discussion list: <http://mail.jabber.org/mailman/listinfo/standards>.

Errata may be sent to <editor@xmpp.org>.

Relation to XMPP

The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.

Conformance Terms

The following keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".


Table of Contents


1. Introduction
2. Approach
3. Optional Add-Ons
4. Security Considerations
5. IANA Considerations
6. XMPP Registrar Considerations
Notes
Revision History


1. Introduction

The XMPP Standards Foundation (XSF) [1] has defined a technology for end-to-end encryption of XMPP communications, called "Encrypted Sessions" (ESessions). This document describes ways for client and library developers to approach the task of implementing ESessions.

In essence, implementation of ESessions proceeds in two directions:

  1. From the client/interface level down.
  2. From the library/API level up.

If client developers implement the "frontend" specifications, they should be able to integrate the "backend" code developed by library developers, enabling the two sets of developers to "meet in the middle" and offer complete implementations.

2. Approach

When working from the client/interface level down to the library/API level, it makes sense to implement the relevant specifications in the following order:

  1. Best Practices for Message Threads [2]

    This document describes what a "stanza session" is, i.e., it is defined by the life of a message thread. Clients that implement this specification are well on their way to implementing encrypted sessions, since it is necessary to have a clear session "object" in a client before implementing an encrypted version of such a session.

  2. Stanza Session Negotiation [3]

    Because this document describes how to negotiate a stanza session, it is a building block for developing how to negotiate an encrypted stanza session.

  3. Stanza Encryption [4]

    By hardcoding the initial parameters during an early phase of development, implementors can use this specification as a starting point for testing of encrypted sessions. A later phase would address rekeying (Section 9) and negotiation of the initial parameters (see below).

  4. Simplified Encrypted Session Negotiation [5]

    This specification (to be published concurrently) defines a simple subset of the process for negotiating the initial parameters used in an encrypted session.

  5. Encrypted Session Negotiation [6]

    This specification defines the "heavy lifting" involved in going from a cleartext state to an encrypted state, i.e., it specifies how to the initial parameters for an encrypted session.

  6. Cryptographic Design of Encrypted Sessions [7]

    Strictly speaking, a developer does not implement this specification, since it describes the theory behind the process of upgrading from cleartext to encryption that is defined in XEP-0116. However it is useful background knowledge for developers who implement XEP-0116.

Naturally, when developing from the library/API level up to the client/interface level, the order should be (roughly) reversed.

3. Optional Add-Ons

Once a library or client has implemented the specifications listed above, it may choose to implement the following additional specifications, which supplemented the core encrypted sessions specifications.

  1. Public Key Publishing [8]

    This specification defines a precondition for implementation of the specifications that follow.

  2. Offline Encrypted Sessions [9]

    We should be able to encrypt so-called "offline messages" (see Best Practices for Handling Offline Messages [10]) using the same basic principles used to encrypted messages sent while online.

  3. Message Archiving [11]

    This specification enables secure archiving of the messages sent and received in an encrypted session.

4. Security Considerations

Incomplete implementations of the Encrypted Sessions technology will not have the same security properties as complete implementations.

5. IANA Considerations

This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [12].

6. XMPP Registrar Considerations

This document requires no interaction with the XMPP Registrar [13].


Notes

1. The XMPP Standards Foundation (XSF) is an independent, non-profit membership organization that develops open extensions to the IETF's Extensible Messaging and Presence Protocol (XMPP). For further information, see <http://www.xmpp.org/xsf/>.

2. XEP-0201: Best Practices for Message Threads <http://www.xmpp.org/extensions/xep-0201.html>.

3. XEP-0155: Stanza Session Negotiation <http://www.xmpp.org/extensions/xep-0155.html>.

4. XEP-0200: Stanza Encryption <http://www.xmpp.org/extensions/xep-0200.html>.

5. XEP-0217: Simplified Encrypted Session Negotiation <http://www.xmpp.org/extensions/xep-0217.html>.

6. XEP-0116: Encrypted Session Negotiation <http://www.xmpp.org/extensions/xep-0116.html>.

7. XEP-0188: Cryptographic Design of Encrypted Sessions <http://www.xmpp.org/extensions/xep-0188.html>.

8. XEP-0189: Public Key Publishing <http://www.xmpp.org/extensions/xep-0189.html>.

9. XEP-0187: Offline Encrypted Sessions <http://www.xmpp.org/extensions/xep-0187.html>.

10. XEP-0160: Best Practices for Handling Offline Messages <http://www.xmpp.org/extensions/xep-0160.html>.

11. XEP-0136: Message Archiving <http://www.xmpp.org/extensions/xep-0136.html>.

12. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <http://www.iana.org/>.

13. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see <http://www.xmpp.org/registrar/>.


Revision History

Version 0.1 (2007-05-30)

Initial published version.

(psa)

Version 0.0.1 (2007-05-29)

First draft.

(psa/ip)

END