Re: [jose] Reducing the size of JWS payloads

Dirkjan Ochtman <dirkjan@ochtman.nl> Wed, 19 December 2012 08:25 UTC

Return-Path: <djc.ochtman@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 05DAB21F8594 for <jose@ietfa.amsl.com>; Wed, 19 Dec 2012 00:25:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.977
X-Spam-Level:
X-Spam-Status: No, score=-2.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Gxy34y9nLQgt for <jose@ietfa.amsl.com>; Wed, 19 Dec 2012 00:25:03 -0800 (PST)
Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by ietfa.amsl.com (Postfix) with ESMTP id A9FC821F8A94 for <jose@ietf.org>; Wed, 19 Dec 2012 00:25:02 -0800 (PST)
Received: by mail-vb0-f53.google.com with SMTP id b23so1998838vbz.12 for <jose@ietf.org>; Wed, 19 Dec 2012 00:25:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=bUZ5lULWZyOOalXbz/tOcOOtwnd4ZZBJmWZQWHqjWNw=; b=j8/10DzYTuvbvi8AqPlmSvXs2p99j26IGDQX2FwFlCujoTQGlyjW96iN1fZQfBAfce 8jOsoGkycswA1ueB98PvR/nrtdRF3GsBq4+ZNmtVM8qMTFvZ5N43mV7IN+y3Uyz38Mpp A0Wd0lC2tA9XNVHFAlDL2e+3dPjKTAPUB95uDW389FNkT11liQbExIs7P30oiWu6Jfeu kHI5kpF7mQZrQPxDEbEfEb9MbRiIZhcCjc7LU+KITr2GtSleLNg0Ss/34CWr5LGmwBwG oG6FYvGI2JZpcO3FUhIZ0+GmIDh91oxJPGHYz+gOpvF9N4EZSUTpxXYB7mcKZno7zlUQ qeeg==
Received: by 10.52.35.4 with SMTP id d4mr6580954vdj.6.1355905502075; Wed, 19 Dec 2012 00:25:02 -0800 (PST)
MIME-Version: 1.0
Sender: djc.ochtman@gmail.com
Received: by 10.58.75.15 with HTTP; Wed, 19 Dec 2012 00:24:42 -0800 (PST)
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739436696B341@TK5EX14MBXC283.redmond.corp.microsoft.com>
References: <4E1F6AAD24975D4BA5B16804296739436696B341@TK5EX14MBXC283.redmond.corp.microsoft.com>
From: Dirkjan Ochtman <dirkjan@ochtman.nl>
Date: Wed, 19 Dec 2012 09:24:42 +0100
X-Google-Sender-Auth: fYqKehN4RdaW9LGgkZ_jxIKl3vk
Message-ID: <CAKmKYaDDSdvQrb1=qtWJy3xUWZ1ey0=JLK53y0M3JW9_4mvsbg@mail.gmail.com>
To: Mike Jones <Michael.Jones@microsoft.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Cc: "jose@ietf.org" <jose@ietf.org>, Dick Hardt <dick.hardt@gmail.com>
Subject: Re: [jose] Reducing the size of JWS payloads
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Dec 2012 08:25:04 -0000

On Wed, Dec 19, 2012 at 3:26 AM, Mike Jones <Michael.Jones@microsoft.com> wrote:
> QUESTION TO WORKING GROUP:  I'm curious whether people would like to see us enable avoiding double base64encoding of JWS payloads when they are already URL-safe.  The space savings are significant; they come at the cost of the JWS parsing becoming [part before first period . part between first and last period . part after last period] rather than the current [part before first period . part between first and second period . part after second period (with no other periods allowed)].  Opinions?

Personally, I think it would make sense to use a more orthogonal and
general encoding of possible strategies, by doing something like
HTTP's Transfer-Encoding. The transfer encoding could express any of
'deflate', 'non-b64u', 'b64u', 'deflate-b64u', and possibly other
compression algorithms (snappy?). This allows flexibility for specific
cases like a JWE value as JWS payload and larger payloads.

Cheers,

Dirkjan