[xmpp] XMPP stanza encryption + EXI compression

Peter Waher <Peter.Waher@clayster.com> Thu, 14 March 2013 15:26 UTC

Return-Path: <Peter.Waher@clayster.com>
X-Original-To: xmpp@ietfa.amsl.com
Delivered-To: xmpp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4331B11E82A9 for <xmpp@ietfa.amsl.com>; Thu, 14 Mar 2013 08:26:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.448
X-Spam-Level:
X-Spam-Status: No, score=-0.448 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_SE=0.35, HTML_MESSAGE=0.001, J_CHICKENPOX_31=0.6, J_CHICKENPOX_73=0.6, J_CHICKENPOX_83=0.6]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QQsTG4zjqs-K for <xmpp@ietfa.amsl.com>; Thu, 14 Mar 2013 08:25:56 -0700 (PDT)
Received: from mail1.ktc.se (mail1.ktc.se [83.241.183.120]) by ietfa.amsl.com (Postfix) with ESMTP id 0908911E8290 for <xmpp@ietf.org>; Thu, 14 Mar 2013 08:25:48 -0700 (PDT)
Received: from EX3.YODA.UTOPIA.LOCAL ([::1]) by EX3.YODA.UTOPIA.LOCAL ([fe80::134:ce58:2ec3:b37c%10]) with mapi id 14.02.0247.003; Thu, 14 Mar 2013 16:25:46 +0100
From: Peter Waher <Peter.Waher@clayster.com>
To: Matt Miller <mamille2@cisco.com>
Thread-Topic: XMPP stanza encryption + EXI compression
Thread-Index: Ac4gyBcvMCCuPnNJTUmrNa7AuYQtYA==
Date: Thu, 14 Mar 2013 15:25:45 +0000
Message-ID: <1693EFE1FD641C42A0D542FCBC732DE698E53473@EX3.YODA.UTOPIA.LOCAL>
Accept-Language: sv-SE, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [192.168.222.16]
Content-Type: multipart/mixed; boundary="_004_1693EFE1FD641C42A0D542FCBC732DE698E53473EX3YODAUTOPIALO_"
MIME-Version: 1.0
X-Mailman-Approved-At: Thu, 14 Mar 2013 09:07:56 -0700
Cc: Stephen Williams <sdw@lig.net>, XMPP Standards <standards@xmpp.org>, "public-exi@w3.org" <public-exi@w3.org>, "Joachim Lindborg (joachim.lindborg@sust.se)" <joachim.lindborg@sust.se>, "xmpp@ietf.org" <xmpp@ietf.org>, "mact-usa@att.net" <mact-usa@att.net>, FABLET Youenn <Youenn.Fablet@crf.canon.fr>
Subject: [xmpp] XMPP stanza encryption + EXI compression
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Mar 2013 15:27:10 -0000

Dear Matt

I just became aware of your  IETF draft for XMPP end-to-end encryption. It looks very promising.
http://tools.ietf.org/html/draft-miller-xmpp-e2e-05

We work with sensor network architecture over XMPP, and some (but not all) applications require end-to-end encryption, so we want to look at this extension.

At the same time, compression is a vital issue, since many sensors have limited memory. Therefore, we are working with an effort to include the use of EXI in XMPP. (See attached documents.) One important aspect to know, when including EXI into XMPP, is that packets cannot be binary copied when the server relays the information. The packets have to be decompressed, and re-compressed if both peers have EXI-compressed channels. This requires EXI to be applied after any message encryption transformation: Exi1(Encrypt(Xml)). Server then relays Exi2(DeExi1(Exi1(Encrypt(Xml)))) = Exi2(Encrypt(Xml)) to the second peer.

The problem with this is that EXI does not do very well with base64-encoded binary data. Size(Exi(Base64(Bin))) would approximately be equal to Size(Bin). EXI would be able to cut the added length imposed by the base64 encoding, due to its limited character set.

It would be nice with an end-to-end encryption method over XMPP that would also be able to take into account EXI compression of XML stanzas.

If you have time, any comments would be appreciated,

Sincerely,
Peter Waher


-----Original Message-----
From: Peter Saint-Andre [mailto:stpeter@stpeter.im] 
Sent: den 14 mars 2013 11:57
To: Peter Waher
Cc: Joachim Lindborg (joachim.lindborg@sust.se); Matt Miller
Subject: Re: XMPP stanza encryption

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/14/13 10:53 AM, Peter Waher wrote:
> Hello Peter
> 
> Do you participate in this work? 
> http://tools.ietf.org/html/draft-miller-xmpp-e2e-05

Only indirectly, by chatting once in a while with Matt Miller (cc'd).

Peter

- -- 
Peter Saint-Andre
https://stpeter.im/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRQeU7AAoJEOoGpJErxa2p6y8P/jHGYyu4DxkpgjIlxIyP/ROF
KfHkaOQ9kzVqEP+fWzajYK9MW8NzaGkF8w8L43o6sXbbFxtmIIZgiUpG2G9uMg8w
6yBrR+JbDHTSpq9bEjrA55jKjVHAQjXUpEvT71zvpqpMa8GU4mM8oLad/ETkg0QI
YJsfGal66rSA9ZXdr78U8C7pOIFNhgV6SdLHUq1TF9jpXghXAN7bvRtGgPJk1jea
QN45YW//Zq9NMK0KK+MmgmK+JPsb3/MM7uFSp90FTUQY7/iF1ngjoA/3tqOiaQMW
E8Q40DIRXjzXHiiKMTwle7Q1zLP1Jm86aJp8iScsRy0OxNSH9s5NQ7AaD5ZTl/BL
64oiA9dLpcc/RZf/7kWDp7D7zEHli2yJG+tO0gagJHqfOt8R/WCeJR10hrBQ76rj
JbwBqWwJRMrY1SnqlntBfhMklC7ZzkuXMn75QtqkQlflJ//6v53AcCglZBLpIurT
xaHHO6IUvsjOvoRov1m65HTtOb9qwepPOJ4mo78bRure2HgBKBCNZRyRZPy6s8lU
OuXqciZjDmKxMlO/A4nGMu2OP7ZcrWo58t1p7sckbC4q4YDoVBTPvA3KlcQB1kPm
YlIGtme+MEVHVm6LvJq+Gm5C8cvXM1nB2lmHvcEWJfcSVkT03EGRKLNZm4aWchMN
4s30FwvW1t9EukM+RGy6
=EN9u
-----END PGP SIGNATURE-----