
From turners@ieca.com  Mon Sep  3 15:02:34 2012
Return-Path: <turners@ieca.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 E442221F854B for <jose@ietfa.amsl.com>; Mon,  3 Sep 2012 15:02:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.134
X-Spam-Level: 
X-Spam-Status: No, score=-102.134 tagged_above=-999 required=5 tests=[AWL=0.131, BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334, USER_IN_WHITELIST=-100]
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 6wwWft0HO4yr for <jose@ietfa.amsl.com>; Mon,  3 Sep 2012 15:02:34 -0700 (PDT)
Received: from gateway03.websitewelcome.com (gateway03.websitewelcome.com [69.93.196.21]) by ietfa.amsl.com (Postfix) with ESMTP id 6D65E21F8546 for <jose@ietf.org>; Mon,  3 Sep 2012 15:02:34 -0700 (PDT)
Received: by gateway03.websitewelcome.com (Postfix, from userid 5007) id 54DDB2B93E67; Mon,  3 Sep 2012 17:02:35 -0500 (CDT)
Received: from gator1743.hostgator.com (gator1743.hostgator.com [184.173.253.227]) by gateway03.websitewelcome.com (Postfix) with ESMTP id 4A7892B93E46 for <jose@ietf.org>; Mon,  3 Sep 2012 17:02:35 -0500 (CDT)
Received: from [108.18.174.220] (port=56825 helo=thunderfish.local) by gator1743.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from <turners@ieca.com>) id 1T8ej3-0005Pt-Rd for jose@ietf.org; Mon, 03 Sep 2012 17:02:33 -0500
Message-ID: <504528F9.9010209@ieca.com>
Date: Mon, 03 Sep 2012 18:02:33 -0400
From: Sean Turner <turners@ieca.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120824 Thunderbird/15.0
MIME-Version: 1.0
To: jose@ietf.org
References: <000001cd7c46$c2ecb4a0$48c61de0$@augustcellars.com> <CE8995AB5D178F44A2154F5C9A97CAF402517E00B82A@HE111541.emea1.cds.t-internal.com> <CAGipQFkL6X3EebtV6bgVQ1GdteZBZ6GRoYm==rXnK9z5QiON6g@mail.gmail.com> <3F05CE94720C45679B743583BBE2EBD3@bbn.com> <503D0738.3050207@gmx.net>
In-Reply-To: <503D0738.3050207@gmx.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - gator1743.hostgator.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - ieca.com
X-BWhitelist: no
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Source-Sender: (thunderfish.local) [108.18.174.220]:56825
X-Source-Auth: sean.turner@ieca.com
X-Email-Count: 1
X-Source-Cap: ZG9tbWdyNDg7ZG9tbWdyNDg7Z2F0b3IxNzQzLmhvc3RnYXRvci5jb20=
Subject: Re: [jose] DISCUSS: Is KID sufficently defined
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: Mon, 03 Sep 2012 22:02:35 -0000

I've also got a question about the following:

  When used with a JWK, the "kid" value MAY be used to match a JWK
  "kid" parameter value.

Would you ever include a JWK and not use the kid value to do the match? 
  I was thinking maybe just r/MAY/is.

spt

On 8/28/12 2:00 PM, Hannes Tschofenig wrote:
> Richard has a point here. Here is the description from:
> http://tools.ietf.org/html/draft-ietf-jose-json-web-key-05#section-4.3
>
> The semantic of the kid is not defined.
>
> So the question is not so much whether it is sufficiently defined but
> more "does it matter that it is not defined?"
>
> The answer depends on what you want to use the key id for. If you ever
> have to assume a structure of the kid then you will have a problem. This
> could, for example, happen when you use it to make some authorization
> decisions and when you compare it against some existing other identities.
>
> I am not even sure what the kid references. Does it always reference a
> key that is included in the payload it self or does it reference a key
> that is external to the payload? Will you ever have the case that you
> need to use part of the identifier structure to find the key? (e.g., to
> discover the right server where the key is stored?)
>
> On 08/28/2012 11:02 AM, Richard Barnes wrote:
>> I voted "NO" on this in the room, because I don't understand it.
>> Could one of you "YES" voters explain it?
>>
>> What does "kid" mean in the context of a public-key wrapped key?  Is
>> it a public key?  If so, in what format?  How about in the context of
>> key agreement?
>>
>> Thanks,
>> --Richard
>>
>>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>

From ietf@augustcellars.com  Tue Sep  4 13:39:29 2012
Return-Path: <ietf@augustcellars.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 6B95D21F8496 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 13:39:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 nkuVgYkXoaSK for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 13:39:28 -0700 (PDT)
Received: from smtp1.pacifier.net (smtp1.pacifier.net [64.255.237.171]) by ietfa.amsl.com (Postfix) with ESMTP id A8C3221F8471 for <jose@ietf.org>; Tue,  4 Sep 2012 13:39:28 -0700 (PDT)
Received: from Tobias (173-160-230-153-Washington.hfc.comcastbusiness.net [173.160.230.153]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: schaad@nwlink.com) by smtp1.pacifier.net (Postfix) with ESMTPSA id 6036D2CA08 for <jose@ietf.org>; Tue,  4 Sep 2012 13:39:28 -0700 (PDT)
From: "Jim Schaad" <ietf@augustcellars.com>
To: <jose@ietf.org>
Date: Tue, 4 Sep 2012 13:38:06 -0700
Message-ID: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: Ac2K3E9QDPXwVte6TAeRHFm0JPSJ1g==
Content-Language: en-us
Subject: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 20:39:29 -0000

<personal>

I was struck by the questions of which base64 encoder should be used in the
different documents that the working group employed and I started going
through the different locations in the document to see where and how much it
mattered if the base64 or base64URL encoder was used.  This message
represents my conclusions and leads to some questions

1.  The simple dot encoding of the objects does require it as it will
possibly be sent as part of a URL
2.  If you are going to be in a space constrained environment then you MIGHT
want it as it will shrink the result, however doing a solution that deals
with binary data more generally would be a better solution.
3.  Joe might have an argument that only doing things one way is simpler,
however that argument can apply in both directions

The rest of the time I don't think it matters which of the encoding formats
is used.  If you are looking at the SHA-1 hash of a certificate, does it
matter if you use base64 or base64URL, not except for the minor size
increase.  The padding characters themselves are protected from the URL by
the outside base64URL encoding.

Except for the case of the dot encoding step, I think that the use of base64
URL can be dropped from a MUST to a SHOULD with the justifications being
explained.  It was stated at the F2F that the difference in the decoders is
minimal so there is no reason not to allow there and this would allow
different people to make different decisions on this issue.

Jim



From Michael.Jones@microsoft.com  Tue Sep  4 13:46:21 2012
Return-Path: <Michael.Jones@microsoft.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 9D95621F84B9 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 13:46:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 kWRwd764veZ2 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 13:46:21 -0700 (PDT)
Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe005.messaging.microsoft.com [216.32.181.185]) by ietfa.amsl.com (Postfix) with ESMTP id D45EF21F84CF for <jose@ietf.org>; Tue,  4 Sep 2012 13:46:20 -0700 (PDT)
Received: from mail88-ch1-R.bigfish.com (10.43.68.246) by CH1EHSOBE005.bigfish.com (10.43.70.55) with Microsoft SMTP Server id 14.1.225.23; Tue, 4 Sep 2012 20:46:19 +0000
Received: from mail88-ch1 (localhost [127.0.0.1])	by mail88-ch1-R.bigfish.com (Postfix) with ESMTP id 0BB223A00E1; Tue,  4 Sep 2012 20:46:20 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14MLTC104.redmond.corp.microsoft.com; RD:none; EFVD:NLI
X-SpamScore: -27
X-BigFish: VS-27(zz9371I542M1418Izz1202hzz1033IL8275dhz2fh2a8h668h839h944hd25hf0ah107ah1220h1155h)
Received-SPF: pass (mail88-ch1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=Michael.Jones@microsoft.com; helo=TK5EX14MLTC104.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail88-ch1 (localhost.localdomain [127.0.0.1]) by mail88-ch1 (MessageSwitch) id 1346791578180489_28162; Tue,  4 Sep 2012 20:46:18 +0000 (UTC)
Received: from CH1EHSMHS019.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.254])	by mail88-ch1.bigfish.com (Postfix) with ESMTP id 2832B30005D;	Tue,  4 Sep 2012 20:46:18 +0000 (UTC)
Received: from TK5EX14MLTC104.redmond.corp.microsoft.com (131.107.125.8) by CH1EHSMHS019.bigfish.com (10.43.70.19) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 4 Sep 2012 20:46:14 +0000
Received: from TK5EX14MBXC284.redmond.corp.microsoft.com ([169.254.1.176]) by TK5EX14MLTC104.redmond.corp.microsoft.com ([157.54.79.159]) with mapi id 14.02.0318.003; Tue, 4 Sep 2012 20:45:43 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Jim Schaad <ietf@augustcellars.com>, "jose@ietf.org" <jose@ietf.org>
Thread-Topic: [jose] Use of Base64 encoding
Thread-Index: Ac2K3E9QDPXwVte6TAeRHFm0JPSJ1gAAdnDA
Date: Tue, 4 Sep 2012 20:45:42 +0000
Message-ID: <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com>
In-Reply-To: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.74]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Subject: Re: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 20:46:21 -0000

Having multiple ways to do something never helps improve interop

-----Original Message-----
From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of Jim=
 Schaad
Sent: Tuesday, September 04, 2012 1:38 PM
To: jose@ietf.org
Subject: [jose] Use of Base64 encoding

<personal>

I was struck by the questions of which base64 encoder should be used in the=
 different documents that the working group employed and I started going th=
rough the different locations in the document to see where and how much it =
mattered if the base64 or base64URL encoder was used.  This message represe=
nts my conclusions and leads to some questions

1.  The simple dot encoding of the objects does require it as it will possi=
bly be sent as part of a URL 2.  If you are going to be in a space constrai=
ned environment then you MIGHT want it as it will shrink the result, howeve=
r doing a solution that deals with binary data more generally would be a be=
tter solution.
3.  Joe might have an argument that only doing things one way is simpler, h=
owever that argument can apply in both directions

The rest of the time I don't think it matters which of the encoding formats=
 is used.  If you are looking at the SHA-1 hash of a certificate, does it m=
atter if you use base64 or base64URL, not except for the minor size increas=
e.  The padding characters themselves are protected from the URL by the out=
side base64URL encoding.

Except for the case of the dot encoding step, I think that the use of base6=
4 URL can be dropped from a MUST to a SHOULD with the justifications being =
explained.  It was stated at the F2F that the difference in the decoders is=
 minimal so there is no reason not to allow there and this would allow diff=
erent people to make different decisions on this issue.

Jim


_______________________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose



From bobwyman@gmail.com  Tue Sep  4 14:06:33 2012
Return-Path: <bobwyman@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 6D61D11E809A for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:06:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.976
X-Spam-Level: 
X-Spam-Status: No, score=-2.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, 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 00zxopruy6uG for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:06:31 -0700 (PDT)
Received: from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172]) by ietfa.amsl.com (Postfix) with ESMTP id 8DA0121E8040 for <jose@ietf.org>; Tue,  4 Sep 2012 14:06:31 -0700 (PDT)
Received: by ieak13 with SMTP id k13so6768287iea.31 for <jose@ietf.org>; Tue, 04 Sep 2012 14:06:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Ft7oYThZInhdEjttdCyINPrsfFX+lVPnWr2kQpewrPw=; b=QEW7VkBvYpAhCsGCNPwnf5Mh83vOk7NEGRmGDn4J7xJUj5r8+a8HRZrAjmaV09va/G /5nyEoVgfuU4XFn7ZEenKOOLL4Jy2EVNfrqgOtb3W3ub6BUVvDrNVmBgO4rpBV7PHsVO InE1S9BsWg+GkRAR/TA6EVyJbDxi+3dedA5W/aTdoeRPg13IpqlF3VtnyzybnlkGsbsi RPwfShVlkwHzuNQcijuhGvLQm/HQPPGDI/mxiOjN35H+5/G6fhLSR5ftxa6Pg1dJGfQ/ 7rdStCQsJRJG9paKWbVlRaLhHBk35TZ6MFKBnNjoQ2gdS4WxaWysiLnqOdfKVkDzU+uO esJw==
MIME-Version: 1.0
Received: by 10.50.106.233 with SMTP id gx9mr15371792igb.49.1346792791064; Tue, 04 Sep 2012 14:06:31 -0700 (PDT)
Sender: bobwyman@gmail.com
Received: by 10.64.148.76 with HTTP; Tue, 4 Sep 2012 14:06:30 -0700 (PDT)
In-Reply-To: <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com>
Date: Tue, 4 Sep 2012 17:06:30 -0400
X-Google-Sender-Auth: TOvigG7Nd83bWKAEB_H2WryX2sc
Message-ID: <CAA1s49VC_Z8hyPKtNZBKN9feUk_-zxQnLDVZHmurOL2rpt_=hA@mail.gmail.com>
From: Bob Wyman <bob@wyman.us>
To: Mike Jones <Michael.Jones@microsoft.com>
Content-Type: multipart/alternative; boundary=e89a8f2343b3e5c0a104c8e6a1ce
Cc: Jim Schaad <ietf@augustcellars.com>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 21:06:33 -0000

--e89a8f2343b3e5c0a104c8e6a1ce
Content-Type: text/plain; charset=ISO-8859-1

It seems to me that if the difference in the decoders is minimal, then one
should feel comfortable in requiring one rather than the other since any
benefit from providing individual developers choice is likely to be minimal
compared to the cost of added complexity for all developers.

bob wyman

On Tue, Sep 4, 2012 at 4:45 PM, Mike Jones <Michael.Jones@microsoft.com>wrote:

> Having multiple ways to do something never helps improve interop
>
> -----Original Message-----
> From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of
> Jim Schaad
> Sent: Tuesday, September 04, 2012 1:38 PM
> To: jose@ietf.org
> Subject: [jose] Use of Base64 encoding
>
> <personal>
>
> I was struck by the questions of which base64 encoder should be used in
> the different documents that the working group employed and I started going
> through the different locations in the document to see where and how much
> it mattered if the base64 or base64URL encoder was used.  This message
> represents my conclusions and leads to some questions
>
> 1.  The simple dot encoding of the objects does require it as it will
> possibly be sent as part of a URL 2.  If you are going to be in a space
> constrained environment then you MIGHT want it as it will shrink the
> result, however doing a solution that deals with binary data more generally
> would be a better solution.
> 3.  Joe might have an argument that only doing things one way is simpler,
> however that argument can apply in both directions
>
> The rest of the time I don't think it matters which of the encoding
> formats is used.  If you are looking at the SHA-1 hash of a certificate,
> does it matter if you use base64 or base64URL, not except for the minor
> size increase.  The padding characters themselves are protected from the
> URL by the outside base64URL encoding.
>
> Except for the case of the dot encoding step, I think that the use of
> base64 URL can be dropped from a MUST to a SHOULD with the justifications
> being explained.  It was stated at the F2F that the difference in the
> decoders is minimal so there is no reason not to allow there and this would
> allow different people to make different decisions on this issue.
>
> Jim
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>

--e89a8f2343b3e5c0a104c8e6a1ce
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

It seems to me that if the difference in the decoders is minimal, then one =
should feel comfortable in requiring one rather than the other since any be=
nefit from providing individual developers choice is likely to be minimal c=
ompared to the cost of added complexity for all developers.<div>
<br><div>bob wyman<br><br><div class=3D"gmail_quote">On Tue, Sep 4, 2012 at=
 4:45 PM, Mike Jones <span dir=3D"ltr">&lt;<a href=3D"mailto:Michael.Jones@=
microsoft.com" target=3D"_blank">Michael.Jones@microsoft.com</a>&gt;</span>=
 wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Having multiple ways to do something never h=
elps improve interop<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
-----Original Message-----<br>
From: <a href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</a> [m=
ailto:<a href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</a>] O=
n Behalf Of Jim Schaad<br>
Sent: Tuesday, September 04, 2012 1:38 PM<br>
To: <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
Subject: [jose] Use of Base64 encoding<br>
<br>
&lt;personal&gt;<br>
<br>
I was struck by the questions of which base64 encoder should be used in the=
 different documents that the working group employed and I started going th=
rough the different locations in the document to see where and how much it =
mattered if the base64 or base64URL encoder was used. =A0This message repre=
sents my conclusions and leads to some questions<br>

<br>
1. =A0The simple dot encoding of the objects does require it as it will pos=
sibly be sent as part of a URL 2. =A0If you are going to be in a space cons=
trained environment then you MIGHT want it as it will shrink the result, ho=
wever doing a solution that deals with binary data more generally would be =
a better solution.<br>

3. =A0Joe might have an argument that only doing things one way is simpler,=
 however that argument can apply in both directions<br>
<br>
The rest of the time I don&#39;t think it matters which of the encoding for=
mats is used. =A0If you are looking at the SHA-1 hash of a certificate, doe=
s it matter if you use base64 or base64URL, not except for the minor size i=
ncrease. =A0The padding characters themselves are protected from the URL by=
 the outside base64URL encoding.<br>

<br>
Except for the case of the dot encoding step, I think that the use of base6=
4 URL can be dropped from a MUST to a SHOULD with the justifications being =
explained. =A0It was stated at the F2F that the difference in the decoders =
is minimal so there is no reason not to allow there and this would allow di=
fferent people to make different decisions on this issue.<br>

<br>
Jim<br>
<br>
<br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
<br>
<br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
</div></div></blockquote></div><br></div></div>

--e89a8f2343b3e5c0a104c8e6a1ce--

From breno@google.com  Tue Sep  4 14:09:50 2012
Return-Path: <breno@google.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 8D58421E8063 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:09:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.976
X-Spam-Level: 
X-Spam-Status: No, score=-102.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
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 Q2YXAbkROBd5 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:09:49 -0700 (PDT)
Received: from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172]) by ietfa.amsl.com (Postfix) with ESMTP id 5CF4521E8054 for <jose@ietf.org>; Tue,  4 Sep 2012 14:09:49 -0700 (PDT)
Received: by ieak13 with SMTP id k13so6776419iea.31 for <jose@ietf.org>; Tue, 04 Sep 2012 14:09:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-system-of-record; bh=IyghbvwoBf3FU6j465XAn55162gTg+LuVpXAJn3Dt7U=; b=A/rJ9EUO/vCiRR/HIdV7XTNWiS79Q5ynY2G0Zyd/ULz5W2i1k7s7e/bt5IdrVjzO8k zs1MEPwNIzG27KbiBlyLXJCcThjSze7ksjG6CNpYyVHA2loV9oLz0zhO0Sk4T8ZiyQul kRSA6wsAbr9ugCX6UXAn21RgUOvAFxr5X+tShE4FAFUCY620D3XiCF9wT19jJWnQ0Mhw +mo/F14r7gEzn5HbgXzRDihYLm2iec6OQsNIOFaCyy4/7Lsftf9f/1wlWNfb/FPEEkGh bMW0rJu2ks/L7pnA6OVMr8cDx99EGL9GwB+QowRDFOPUW8Lq918r+56W/aCTdX4uU5gE yWAA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-system-of-record:x-gm-message-state; bh=IyghbvwoBf3FU6j465XAn55162gTg+LuVpXAJn3Dt7U=; b=XBC6Iv4GnutWjZlcnA+zxHgejZ+IoBXmBl8IqQgvyiDxBxnGx3hVJtGpDEzJgZTc5y atIXvd76nqowqIOa09jRdB4HzWyXgEzroB6wF0qEGr8RGJYpLcDvYGoc/Yubj39MisPG 2/tXAcdM/Wa4h65pxgxVd11BDZCyaIteCn3fJibKGQIaL373caIH3x15qGbh3BHuSHBS 33+IgzPyU7ar8o7YtG1VwIBxcfvhcEXxGDCUZjEm1vqip1+IHMWMP2oTWMUyMpjvEWIi skr+OQpuePKWqXFmcYz0jo+vBi+KuvK4/M4GXEInoalPDKfaSG6PiyRh6LZcl7kUc28f 7xBQ==
Received: by 10.60.30.132 with SMTP id s4mr16261795oeh.6.1346792987845; Tue, 04 Sep 2012 14:09:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.30.132 with SMTP id s4mr16261787oeh.6.1346792987751; Tue, 04 Sep 2012 14:09:47 -0700 (PDT)
Received: by 10.182.68.202 with HTTP; Tue, 4 Sep 2012 14:09:47 -0700 (PDT)
In-Reply-To: <CAA1s49VC_Z8hyPKtNZBKN9feUk_-zxQnLDVZHmurOL2rpt_=hA@mail.gmail.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com> <CAA1s49VC_Z8hyPKtNZBKN9feUk_-zxQnLDVZHmurOL2rpt_=hA@mail.gmail.com>
Date: Tue, 4 Sep 2012 14:09:47 -0700
Message-ID: <CAAJ++qE6bMY3CAWNJUNMxB6h4R-RU4EZofA_vh1JM=OnU2q6HQ@mail.gmail.com>
From: Breno de Medeiros <breno@google.com>
To: Bob Wyman <bob@wyman.us>
Content-Type: multipart/alternative; boundary=e89a8ff1c7609ef63c04c8e6ad36
X-System-Of-Record: true
X-Gm-Message-State: ALoCoQnjSkCCp4b7CRQFDPf2IOQLFC0/U20k6av5Sp5oDRC7EU6LV7wHlgDv2uS4nCK8M1FgJ4bADBDwK+jT73VHIfO0BWuHd1gGEQuYKijJaeS0TAzZ6ZeK4UYnXPssF7p744tNk5Nqm0ebmoHrCNdtFvY2Sc7oANumBAvJHZSh0LjTupFe7aEIRuD71g35pmk2TW8clQ51
Cc: Mike Jones <Michael.Jones@microsoft.com>, Jim Schaad <ietf@augustcellars.com>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 21:09:50 -0000

--e89a8ff1c7609ef63c04c8e6ad36
Content-Type: text/plain; charset=ISO-8859-1

+ 1 for keeping it a MUST for the reasons Mike Jones and Bob Wyman point
out.


On Tue, Sep 4, 2012 at 2:06 PM, Bob Wyman <bob@wyman.us> wrote:

> It seems to me that if the difference in the decoders is minimal, then one
> should feel comfortable in requiring one rather than the other since any
> benefit from providing individual developers choice is likely to be minimal
> compared to the cost of added complexity for all developers.
>
> bob wyman
>
>
> On Tue, Sep 4, 2012 at 4:45 PM, Mike Jones <Michael.Jones@microsoft.com>wrote:
>
>> Having multiple ways to do something never helps improve interop
>>
>> -----Original Message-----
>> From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of
>> Jim Schaad
>> Sent: Tuesday, September 04, 2012 1:38 PM
>> To: jose@ietf.org
>> Subject: [jose] Use of Base64 encoding
>>
>> <personal>
>>
>> I was struck by the questions of which base64 encoder should be used in
>> the different documents that the working group employed and I started going
>> through the different locations in the document to see where and how much
>> it mattered if the base64 or base64URL encoder was used.  This message
>> represents my conclusions and leads to some questions
>>
>> 1.  The simple dot encoding of the objects does require it as it will
>> possibly be sent as part of a URL 2.  If you are going to be in a space
>> constrained environment then you MIGHT want it as it will shrink the
>> result, however doing a solution that deals with binary data more generally
>> would be a better solution.
>> 3.  Joe might have an argument that only doing things one way is simpler,
>> however that argument can apply in both directions
>>
>> The rest of the time I don't think it matters which of the encoding
>> formats is used.  If you are looking at the SHA-1 hash of a certificate,
>> does it matter if you use base64 or base64URL, not except for the minor
>> size increase.  The padding characters themselves are protected from the
>> URL by the outside base64URL encoding.
>>
>> Except for the case of the dot encoding step, I think that the use of
>> base64 URL can be dropped from a MUST to a SHOULD with the justifications
>> being explained.  It was stated at the F2F that the difference in the
>> decoders is minimal so there is no reason not to allow there and this would
>> allow different people to make different decisions on this issue.
>>
>> Jim
>>
>>
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org
>> https://www.ietf.org/mailman/listinfo/jose
>>
>>
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org
>> https://www.ietf.org/mailman/listinfo/jose
>>
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>
>


-- 
--Breno

--e89a8ff1c7609ef63c04c8e6ad36
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

+ 1 for keeping it a MUST for the reasons Mike Jones and Bob Wyman point ou=
t.<div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Tue, Sep=
 4, 2012 at 2:06 PM, Bob Wyman <span dir=3D"ltr">&lt;<a href=3D"mailto:bob@=
wyman.us" target=3D"_blank">bob@wyman.us</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">It seems to me that if the difference in the=
 decoders is minimal, then one should feel comfortable in requiring one rat=
her than the other since any benefit from providing individual developers c=
hoice is likely to be minimal compared to the cost of added complexity for =
all developers.<div>
<span class=3D"HOEnZb"><font color=3D"#888888">
<br></font></span><div><span class=3D"HOEnZb"><font color=3D"#888888">bob w=
yman</font></span><div><div class=3D"h5"><br><br><div class=3D"gmail_quote"=
>On Tue, Sep 4, 2012 at 4:45 PM, Mike Jones <span dir=3D"ltr">&lt;<a href=
=3D"mailto:Michael.Jones@microsoft.com" target=3D"_blank">Michael.Jones@mic=
rosoft.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Having multiple ways to do something never h=
elps improve interop<br>
<div><div><br>
-----Original Message-----<br>
From: <a href=3D"mailto:jose-bounces@ietf.org" target=3D"_blank">jose-bounc=
es@ietf.org</a> [mailto:<a href=3D"mailto:jose-bounces@ietf.org" target=3D"=
_blank">jose-bounces@ietf.org</a>] On Behalf Of Jim Schaad<br>
Sent: Tuesday, September 04, 2012 1:38 PM<br>
To: <a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ietf.org</a><br=
>
Subject: [jose] Use of Base64 encoding<br>
<br>
&lt;personal&gt;<br>
<br>
I was struck by the questions of which base64 encoder should be used in the=
 different documents that the working group employed and I started going th=
rough the different locations in the document to see where and how much it =
mattered if the base64 or base64URL encoder was used. =A0This message repre=
sents my conclusions and leads to some questions<br>


<br>
1. =A0The simple dot encoding of the objects does require it as it will pos=
sibly be sent as part of a URL 2. =A0If you are going to be in a space cons=
trained environment then you MIGHT want it as it will shrink the result, ho=
wever doing a solution that deals with binary data more generally would be =
a better solution.<br>


3. =A0Joe might have an argument that only doing things one way is simpler,=
 however that argument can apply in both directions<br>
<br>
The rest of the time I don&#39;t think it matters which of the encoding for=
mats is used. =A0If you are looking at the SHA-1 hash of a certificate, doe=
s it matter if you use base64 or base64URL, not except for the minor size i=
ncrease. =A0The padding characters themselves are protected from the URL by=
 the outside base64URL encoding.<br>


<br>
Except for the case of the dot encoding step, I think that the use of base6=
4 URL can be dropped from a MUST to a SHOULD with the justifications being =
explained. =A0It was stated at the F2F that the difference in the decoders =
is minimal so there is no reason not to allow there and this would allow di=
fferent people to make different decisions on this issue.<br>


<br>
Jim<br>
<br>
<br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
<br>
<br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
</div></div></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
<br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>--Breno<=
br><br>
</div>

--e89a8ff1c7609ef63c04c8e6ad36--

From ietf@augustcellars.com  Tue Sep  4 14:12:21 2012
Return-Path: <ietf@augustcellars.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 0300921E8063 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:12:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 h5TKsedSFPFB for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:12:20 -0700 (PDT)
Received: from smtp4.pacifier.net (smtp4.pacifier.net [64.255.237.176]) by ietfa.amsl.com (Postfix) with ESMTP id 449DC21E8040 for <jose@ietf.org>; Tue,  4 Sep 2012 14:12:20 -0700 (PDT)
Received: from Tobias (173-160-230-153-Washington.hfc.comcastbusiness.net [173.160.230.153]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: schaad@nwlink.com) by smtp4.pacifier.net (Postfix) with ESMTPSA id CA1FD38F02; Tue,  4 Sep 2012 14:12:19 -0700 (PDT)
From: "Jim Schaad" <ietf@augustcellars.com>
To: "'Mike Jones'" <Michael.Jones@microsoft.com>, <jose@ietf.org>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com>
In-Reply-To: <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com>
Date: Tue, 4 Sep 2012 14:10:58 -0700
Message-ID: <01ec01cd8ae1$c80492b0$580db810$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQMfwdQEwKu1//cZu6R2YB7ddsZSxgGTyFWJlMmhFzA=
Content-Language: en-us
Subject: Re: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 21:12:21 -0000

I hope that you have a better response than this.  If what you say is true
then we should eliminate a large number of the cryptographic algorithms that
have been proposed as they provide multiple ways of doing things.  

Do you really believe that the difference in the receiving software is going
to be that different based on if base64 or base64URL encoding is used on a
binary value?

Jim


> -----Original Message-----
> From: Mike Jones [mailto:Michael.Jones@microsoft.com]
> Sent: Tuesday, September 04, 2012 1:46 PM
> To: Jim Schaad; jose@ietf.org
> Subject: RE: [jose] Use of Base64 encoding
> 
> Having multiple ways to do something never helps improve interop
> 
> -----Original Message-----
> From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of
> Jim Schaad
> Sent: Tuesday, September 04, 2012 1:38 PM
> To: jose@ietf.org
> Subject: [jose] Use of Base64 encoding
> 
> <personal>
> 
> I was struck by the questions of which base64 encoder should be used in
the
> different documents that the working group employed and I started going
> through the different locations in the document to see where and how much
> it mattered if the base64 or base64URL encoder was used.  This message
> represents my conclusions and leads to some questions
> 
> 1.  The simple dot encoding of the objects does require it as it will
possibly be
> sent as part of a URL 2.  If you are going to be in a space constrained
> environment then you MIGHT want it as it will shrink the result, however
> doing a solution that deals with binary data more generally would be a
better
> solution.
> 3.  Joe might have an argument that only doing things one way is simpler,
> however that argument can apply in both directions
> 
> The rest of the time I don't think it matters which of the encoding
formats is
> used.  If you are looking at the SHA-1 hash of a certificate, does it
matter if
> you use base64 or base64URL, not except for the minor size increase.  The
> padding characters themselves are protected from the URL by the outside
> base64URL encoding.
> 
> Except for the case of the dot encoding step, I think that the use of
base64
> URL can be dropped from a MUST to a SHOULD with the justifications being
> explained.  It was stated at the F2F that the difference in the decoders
is
> minimal so there is no reason not to allow there and this would allow
> different people to make different decisions on this issue.
> 
> Jim
> 
> 
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose



From dholth@gmail.com  Tue Sep  4 14:16:27 2012
Return-Path: <dholth@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 78C2B21E805A for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:16:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 5L26TGVd2vQz for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:16:26 -0700 (PDT)
Received: from mail-bk0-f44.google.com (mail-bk0-f44.google.com [209.85.214.44]) by ietfa.amsl.com (Postfix) with ESMTP id 12CFC21E8040 for <jose@ietf.org>; Tue,  4 Sep 2012 14:16:25 -0700 (PDT)
Received: by bkty12 with SMTP id y12so2917069bkt.31 for <jose@ietf.org>; Tue, 04 Sep 2012 14:16:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=eTB0HdJ8gTq8d5vUeUOUDirRmKcO5/bBoVH4uibTVUw=; b=cNox0nn3Ir6hx/CXZhBKKWa/20kW4cpBPjnXBKddgcwCvZM7jKQkhD//scsE3EJ+PW 2ztTTL3GQfA5ltxl7LG0H6mFXxKy9QasV3XZ02B7oZXKo5y5lPdHvKsnOGIAmv6oLsaJ QZMDNGO/nhPsVi+22n7mQCcpjJoa5b3Pz5Isk6O+dPPf5VwQDEoXSMvlJzdE4I5N3TQj Cmzll2W0lWNjpHXqWXA36fveN6CFeGu5EC5pbEr/WfJpz7khKjOAQJUvjdMBEgo/H3v0 VWkk1jcpKmLCFbufvQ70XxOqeF1W2GssgsLJQ07JwXBIBnKk4HX0WWV48w6JYlOhEKoX nAwA==
MIME-Version: 1.0
Received: by 10.204.10.70 with SMTP id o6mr8543469bko.31.1346793384917; Tue, 04 Sep 2012 14:16:24 -0700 (PDT)
Received: by 10.205.112.71 with HTTP; Tue, 4 Sep 2012 14:16:24 -0700 (PDT)
In-Reply-To: <01ec01cd8ae1$c80492b0$580db810$@augustcellars.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com> <01ec01cd8ae1$c80492b0$580db810$@augustcellars.com>
Date: Tue, 4 Sep 2012 17:16:24 -0400
Message-ID: <CAG8k2+4LBgUyhbXzVNj3E9JZU_RTurVpWSyW3dXZ2yYz2J0tag@mail.gmail.com>
From: Daniel Holth <dholth@gmail.com>
To: Jim Schaad <ietf@augustcellars.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: Mike Jones <Michael.Jones@microsoft.com>, jose@ietf.org
Subject: Re: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 21:16:27 -0000

On Tue, Sep 4, 2012 at 5:10 PM, Jim Schaad <ietf@augustcellars.com> wrote:
> I hope that you have a better response than this.  If what you say is true
> then we should eliminate a large number of the cryptographic algorithms that
> have been proposed as they provide multiple ways of doing things.
>
> Do you really believe that the difference in the receiving software is going
> to be that different based on if base64 or base64URL encoding is used on a
> binary value?

I wrote that bug just last week. Some people will encode and compare
the encoded results, others will decode and compare the bits.

From breno@google.com  Tue Sep  4 14:18:17 2012
Return-Path: <breno@google.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 3334721E808F for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:18:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.976
X-Spam-Level: 
X-Spam-Status: No, score=-102.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
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 rSIViV7AKiFB for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:18:16 -0700 (PDT)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by ietfa.amsl.com (Postfix) with ESMTP id 4313021F845C for <jose@ietf.org>; Tue,  4 Sep 2012 14:18:15 -0700 (PDT)
Received: by iabz21 with SMTP id z21so11047913iab.31 for <jose@ietf.org>; Tue, 04 Sep 2012 14:18:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-system-of-record; bh=W+ldQxTI5Z3lowJfoDZrxP05NjomfI6PdKFE9mswz2c=; b=c3kAKkvkDtfQ2Kxg2BLtbZSxfPjWnbfGbcwujKRLLtsC8DUgv6dboGfEsW52Dvyiu9 cB4+B5nxOo1GmEw58TpLksNbjOzk5UCB6UEK3Ydni18Q+/FhjFWjTlW7Q9dc874wb9ZX bOS+Us6AhDgDje1/Pvng9RnowXHINHX5WvUJALbsCL8iBmEqQF4Vr8ev13WL5mmpe57j te4r7wU3z3RMuqeh2VqKwFSeRQyrpvFNICo/aL5RZYJ6O/us8TxnpttChDSi1WZVUc/q i2XwOkkSaD5aj/PxKuOZZR3xExIPHzjnLajEAlAy+pwmnITBNpKYlLxCZ+qJZFXn2TZr KSjw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-system-of-record:x-gm-message-state; bh=W+ldQxTI5Z3lowJfoDZrxP05NjomfI6PdKFE9mswz2c=; b=Xp+fMpvhhPWVS4HVWOTuhWbiF+0ffooKsS4y/CVytng5kbJuHQoALbFWOQCx0mZ4HA 80x6iN4HhM8FR8ZNPEU+xq/jCiBRAhB/6TrR/0lqTzR6qKxcviPFnjg6GDKGUVWmb5ZH 7qh568obCRr63vJdoimBs+d84eSjWvb74SFCt5SLKYbr2Pnzu8g1c5S6ehZbcJ2jLv3n yY+RCXzBulcnrLlF84kHwiHvS4yQYtgeqXJEJnQ8fv/BCQprwKBwyg0zLXrmw5xZg7Qe 4VzDGsqGsQJTGvPhFwSMLfnJFxNGLhTAr6o1fxkt30ZqzhE755aBskEyPEg5I35PHNl9 Kbxg==
Received: by 10.182.8.6 with SMTP id n6mr16323282oba.39.1346793494618; Tue, 04 Sep 2012 14:18:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.8.6 with SMTP id n6mr16323274oba.39.1346793494513; Tue, 04 Sep 2012 14:18:14 -0700 (PDT)
Received: by 10.182.68.202 with HTTP; Tue, 4 Sep 2012 14:18:14 -0700 (PDT)
In-Reply-To: <01ec01cd8ae1$c80492b0$580db810$@augustcellars.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com> <01ec01cd8ae1$c80492b0$580db810$@augustcellars.com>
Date: Tue, 4 Sep 2012 14:18:14 -0700
Message-ID: <CAAJ++qGWd_FK4VAYH_KtFxrVwW7Q6sShs7=f2xM_COxGx1XqFA@mail.gmail.com>
From: Breno de Medeiros <breno@google.com>
To: Jim Schaad <ietf@augustcellars.com>
Content-Type: multipart/alternative; boundary=f46d0444ec53d388e504c8e6cb58
X-System-Of-Record: true
X-Gm-Message-State: ALoCoQkp0jxxG+IA/zfxph/JS3e4bdx2BN1IYyk5F7IFcp4sm1TVg1AbpuyxMHQq7XU6jKJUBKC+BfvVLZi+dZ9XCfPlkTIA34lK+uXOUCJGo2I8MNPwWeA0METReOONav2QgfJ0g4W+5lIgYhQWQXNYaSa5fM6vM14VyLCU676mW0vdyJZ8AR13yJp53JsViLgWk0a47OOT
Cc: Mike Jones <Michael.Jones@microsoft.com>, jose@ietf.org
Subject: Re: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 21:18:17 -0000

--f46d0444ec53d388e504c8e6cb58
Content-Type: text/plain; charset=ISO-8859-1

Crypto agility is necessary because security of crypto algorithms and key
sizes change over time. So supporting multiple crypto algorithms is
required for a standard that doesn't want to become obsolete within a few
years. It's not a case of flexibility but of necessity. Also, availability
of different crypto algorithms varies widely between platforms, so being
able to support multiple algorithms is a must to ensure wide adoption --
porting a new crypto algorithm to a platform is a very large effort.

OTOH:
- Base64URL encoding is quite trivial to add to a platform that doesn't
have it
- Base64URL encoding is not likely to be deprecated in the foreseeable
future


On Tue, Sep 4, 2012 at 2:10 PM, Jim Schaad <ietf@augustcellars.com> wrote:

> I hope that you have a better response than this.  If what you say is true
> then we should eliminate a large number of the cryptographic algorithms
> that
> have been proposed as they provide multiple ways of doing things.
>
> Do you really believe that the difference in the receiving software is
> going
> to be that different based on if base64 or base64URL encoding is used on a
> binary value?
>
> Jim
>
>
> > -----Original Message-----
> > From: Mike Jones [mailto:Michael.Jones@microsoft.com]
> > Sent: Tuesday, September 04, 2012 1:46 PM
> > To: Jim Schaad; jose@ietf.org
> > Subject: RE: [jose] Use of Base64 encoding
> >
> > Having multiple ways to do something never helps improve interop
> >
> > -----Original Message-----
> > From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of
> > Jim Schaad
> > Sent: Tuesday, September 04, 2012 1:38 PM
> > To: jose@ietf.org
> > Subject: [jose] Use of Base64 encoding
> >
> > <personal>
> >
> > I was struck by the questions of which base64 encoder should be used in
> the
> > different documents that the working group employed and I started going
> > through the different locations in the document to see where and how much
> > it mattered if the base64 or base64URL encoder was used.  This message
> > represents my conclusions and leads to some questions
> >
> > 1.  The simple dot encoding of the objects does require it as it will
> possibly be
> > sent as part of a URL 2.  If you are going to be in a space constrained
> > environment then you MIGHT want it as it will shrink the result, however
> > doing a solution that deals with binary data more generally would be a
> better
> > solution.
> > 3.  Joe might have an argument that only doing things one way is simpler,
> > however that argument can apply in both directions
> >
> > The rest of the time I don't think it matters which of the encoding
> formats is
> > used.  If you are looking at the SHA-1 hash of a certificate, does it
> matter if
> > you use base64 or base64URL, not except for the minor size increase.  The
> > padding characters themselves are protected from the URL by the outside
> > base64URL encoding.
> >
> > Except for the case of the dot encoding step, I think that the use of
> base64
> > URL can be dropped from a MUST to a SHOULD with the justifications being
> > explained.  It was stated at the F2F that the difference in the decoders
> is
> > minimal so there is no reason not to allow there and this would allow
> > different people to make different decisions on this issue.
> >
> > Jim
> >
> >
> > _______________________________________________
> > jose mailing list
> > jose@ietf.org
> > https://www.ietf.org/mailman/listinfo/jose
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>



-- 
--Breno

--f46d0444ec53d388e504c8e6cb58
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Crypto agility is necessary because security of crypto algorithms and key s=
izes change over time. So supporting multiple crypto algorithms is required=
 for a standard that doesn&#39;t want to become obsolete within a few years=
. It&#39;s not a case of flexibility but of necessity. Also, availability o=
f different crypto algorithms varies widely between platforms, so being abl=
e to support multiple algorithms is a must to ensure wide adoption -- porti=
ng a new crypto algorithm to a platform is a very large effort.<div>
<br></div><div>OTOH:</div><div>- Base64URL encoding is quite trivial to add=
 to a platform that doesn&#39;t have it</div><div>- Base64URL encoding is n=
ot likely to be deprecated in the foreseeable future</div><div class=3D"gma=
il_extra">
<br><br><div class=3D"gmail_quote">On Tue, Sep 4, 2012 at 2:10 PM, Jim Scha=
ad <span dir=3D"ltr">&lt;<a href=3D"mailto:ietf@augustcellars.com" target=
=3D"_blank">ietf@augustcellars.com</a>&gt;</span> wrote:<br><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">
I hope that you have a better response than this. =A0If what you say is tru=
e<br>
then we should eliminate a large number of the cryptographic algorithms tha=
t<br>
have been proposed as they provide multiple ways of doing things.<br>
<br>
Do you really believe that the difference in the receiving software is goin=
g<br>
to be that different based on if base64 or base64URL encoding is used on a<=
br>
binary value?<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Jim<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
&gt; -----Original Message-----<br>
&gt; From: Mike Jones [mailto:<a href=3D"mailto:Michael.Jones@microsoft.com=
">Michael.Jones@microsoft.com</a>]<br>
&gt; Sent: Tuesday, September 04, 2012 1:46 PM<br>
&gt; To: Jim Schaad; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt; Subject: RE: [jose] Use of Base64 encoding<br>
&gt;<br>
&gt; Having multiple ways to do something never helps improve interop<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</=
a> [mailto:<a href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</=
a>] On Behalf Of<br>
&gt; Jim Schaad<br>
&gt; Sent: Tuesday, September 04, 2012 1:38 PM<br>
&gt; To: <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt; Subject: [jose] Use of Base64 encoding<br>
&gt;<br>
&gt; &lt;personal&gt;<br>
&gt;<br>
&gt; I was struck by the questions of which base64 encoder should be used i=
n<br>
the<br>
&gt; different documents that the working group employed and I started goin=
g<br>
&gt; through the different locations in the document to see where and how m=
uch<br>
&gt; it mattered if the base64 or base64URL encoder was used. =A0This messa=
ge<br>
&gt; represents my conclusions and leads to some questions<br>
&gt;<br>
&gt; 1. =A0The simple dot encoding of the objects does require it as it wil=
l<br>
possibly be<br>
&gt; sent as part of a URL 2. =A0If you are going to be in a space constrai=
ned<br>
&gt; environment then you MIGHT want it as it will shrink the result, howev=
er<br>
&gt; doing a solution that deals with binary data more generally would be a=
<br>
better<br>
&gt; solution.<br>
&gt; 3. =A0Joe might have an argument that only doing things one way is sim=
pler,<br>
&gt; however that argument can apply in both directions<br>
&gt;<br>
&gt; The rest of the time I don&#39;t think it matters which of the encodin=
g<br>
formats is<br>
&gt; used. =A0If you are looking at the SHA-1 hash of a certificate, does i=
t<br>
matter if<br>
&gt; you use base64 or base64URL, not except for the minor size increase. =
=A0The<br>
&gt; padding characters themselves are protected from the URL by the outsid=
e<br>
&gt; base64URL encoding.<br>
&gt;<br>
&gt; Except for the case of the dot encoding step, I think that the use of<=
br>
base64<br>
&gt; URL can be dropped from a MUST to a SHOULD with the justifications bei=
ng<br>
&gt; explained. =A0It was stated at the F2F that the difference in the deco=
ders<br>
is<br>
&gt; minimal so there is no reason not to allow there and this would allow<=
br>
&gt; different people to make different decisions on this issue.<br>
&gt;<br>
&gt; Jim<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; jose mailing list<br>
&gt; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blan=
k">https://www.ietf.org/mailman/listinfo/jose</a><br>
<br>
<br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
--Breno<br><br>
</div>

--f46d0444ec53d388e504c8e6cb58--

From bobwyman@gmail.com  Tue Sep  4 14:21:51 2012
Return-Path: <bobwyman@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 D5A6021E8092 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:21:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.976
X-Spam-Level: 
X-Spam-Status: No, score=-2.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, 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 nJFFch3NIInz for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:21:50 -0700 (PDT)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by ietfa.amsl.com (Postfix) with ESMTP id D8E3821E8040 for <jose@ietf.org>; Tue,  4 Sep 2012 14:21:49 -0700 (PDT)
Received: by iabz21 with SMTP id z21so11053842iab.31 for <jose@ietf.org>; Tue, 04 Sep 2012 14:21:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=HTnoeR4KCdTVdyIoOynmMLR1b0q3T3vzsTKmKPuIxF8=; b=mtDrkkFCSwJHwBN9Dp+i6dhvzxwyIiS5jdP3Q5DoYIgU98cV6v3f5eIixHS2eXbOx1 JHNumhGGp9XBmyJUEzxG9vAEq60ZE7F2QzpDVzqZ2rIgBnsZBfRebb1zJsTtgtTxGTy1 hF5K7CJvEr/uuTrmwOIhUbzEpnRYvykgo2NXrZIonOr7LRi+vq/1U/1raGgmoYUGe31Z vNfWh9HNaTmwnLOgcEiJjYZv1yCc6diDl9jrxJdSWv+xcs+K/FuQE0ShyTzIX9TTARib vnuscc27zzWbldvJ6PsDw6FK8B6yBt4iS1bPAalwkV0r6INiUgs9RTMPX27VhEMZWz32 LEeA==
MIME-Version: 1.0
Received: by 10.50.5.133 with SMTP id s5mr3275159igs.49.1346793709315; Tue, 04 Sep 2012 14:21:49 -0700 (PDT)
Sender: bobwyman@gmail.com
Received: by 10.64.148.76 with HTTP; Tue, 4 Sep 2012 14:21:49 -0700 (PDT)
In-Reply-To: <01ec01cd8ae1$c80492b0$580db810$@augustcellars.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com> <01ec01cd8ae1$c80492b0$580db810$@augustcellars.com>
Date: Tue, 4 Sep 2012 17:21:49 -0400
X-Google-Sender-Auth: 7BemymGRHFkhz3er8Ngv-Ba4cIM
Message-ID: <CAA1s49VizpUQcie9Ud9_fu5h37JA3W-RGff0ogUK3R6jCyiE-w@mail.gmail.com>
From: Bob Wyman <bob@wyman.us>
To: Jim Schaad <ietf@augustcellars.com>
Content-Type: multipart/alternative; boundary=e89a8f503510a1263704c8e6d89f
Cc: Mike Jones <Michael.Jones@microsoft.com>, jose@ietf.org
Subject: Re: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 21:21:51 -0000

--e89a8f503510a1263704c8e6d89f
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Sep 4, 2012 at 5:10 PM, Jim Schaad <ietf@augustcellars.com> wrote:

> I hope that you have a better response than this.  If what you say is true
> then we should eliminate a large number of the cryptographic algorithms
> that
> have been proposed as they provide multiple ways of doing things.
>
> Do you really believe that the difference in the receiving software is
> going
> to be that different based on if base64 or base64URL encoding is used on a
> binary value?
>
I think the whole point of using something like either base64 or base64URL
encoding is to make the system as simple as possible. The alternative, used
in the past, was to require some kind of complex canonicalization. That
canonicalization proved, in many cases, to be so cumbersome that it
prevented developers from building solutions to real problems. The base64*
solution is the extreme opposite of the more complex canonicalization
approach. Certainly, there are all sorts of intermediate positions between
the two extremes, but it seems to me that we should avoid those mid-points
unless there is some really significant benefit for doing so.

bob wyman


>
> Jim
>
>
> > -----Original Message-----
> > From: Mike Jones [mailto:Michael.Jones@microsoft.com]
> > Sent: Tuesday, September 04, 2012 1:46 PM
> > To: Jim Schaad; jose@ietf.org
> > Subject: RE: [jose] Use of Base64 encoding
> >
> > Having multiple ways to do something never helps improve interop
> >
> > -----Original Message-----
> > From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of
> > Jim Schaad
> > Sent: Tuesday, September 04, 2012 1:38 PM
> > To: jose@ietf.org
> > Subject: [jose] Use of Base64 encoding
> >
> > <personal>
> >
> > I was struck by the questions of which base64 encoder should be used in
> the
> > different documents that the working group employed and I started going
> > through the different locations in the document to see where and how much
> > it mattered if the base64 or base64URL encoder was used.  This message
> > represents my conclusions and leads to some questions
> >
> > 1.  The simple dot encoding of the objects does require it as it will
> possibly be
> > sent as part of a URL 2.  If you are going to be in a space constrained
> > environment then you MIGHT want it as it will shrink the result, however
> > doing a solution that deals with binary data more generally would be a
> better
> > solution.
> > 3.  Joe might have an argument that only doing things one way is simpler,
> > however that argument can apply in both directions
> >
> > The rest of the time I don't think it matters which of the encoding
> formats is
> > used.  If you are looking at the SHA-1 hash of a certificate, does it
> matter if
> > you use base64 or base64URL, not except for the minor size increase.  The
> > padding characters themselves are protected from the URL by the outside
> > base64URL encoding.
> >
> > Except for the case of the dot encoding step, I think that the use of
> base64
> > URL can be dropped from a MUST to a SHOULD with the justifications being
> > explained.  It was stated at the F2F that the difference in the decoders
> is
> > minimal so there is no reason not to allow there and this would allow
> > different people to make different decisions on this issue.
> >
> > Jim
> >
> >
> > _______________________________________________
> > jose mailing list
> > jose@ietf.org
> > https://www.ietf.org/mailman/listinfo/jose
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>

--e89a8f503510a1263704c8e6d89f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div><br><div class=3D"gmail_quote">On Tue, Sep 4, 2012 at 5:10 PM, Jim Sch=
aad <span dir=3D"ltr">&lt;<a href=3D"mailto:ietf@augustcellars.com" target=
=3D"_blank">ietf@augustcellars.com</a>&gt;</span> wrote:<br><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">
I hope that you have a better response than this. =A0If what you say is tru=
e<br>
then we should eliminate a large number of the cryptographic algorithms tha=
t<br>
have been proposed as they provide multiple ways of doing things.<br>
<br>
Do you really believe that the difference in the receiving software is goin=
g<br>
to be that different based on if base64 or base64URL encoding is used on a<=
br>
binary value?<br></blockquote><div>I think the whole point of using somethi=
ng like either base64 or base64URL encoding is to make the system as simple=
 as possible. The alternative, used in the past, was to require some kind o=
f complex canonicalization. That canonicalization proved, in many cases, to=
 be so cumbersome that it prevented developers from building solutions to r=
eal problems. The base64* solution is the extreme opposite of the more comp=
lex canonicalization approach. Certainly, there are all sorts of intermedia=
te positions between the two extremes, but it seems to me that we should av=
oid those mid-points unless there is some really significant benefit for do=
ing so.<div>
<br></div><div>bob wyman<br></div></div><div>=A0</div><blockquote class=3D"=
gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-=
left:1ex">
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Jim<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
&gt; -----Original Message-----<br>
&gt; From: Mike Jones [mailto:<a href=3D"mailto:Michael.Jones@microsoft.com=
">Michael.Jones@microsoft.com</a>]<br>
&gt; Sent: Tuesday, September 04, 2012 1:46 PM<br>
&gt; To: Jim Schaad; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt; Subject: RE: [jose] Use of Base64 encoding<br>
&gt;<br>
&gt; Having multiple ways to do something never helps improve interop<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</=
a> [mailto:<a href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</=
a>] On Behalf Of<br>
&gt; Jim Schaad<br>
&gt; Sent: Tuesday, September 04, 2012 1:38 PM<br>
&gt; To: <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt; Subject: [jose] Use of Base64 encoding<br>
&gt;<br>
&gt; &lt;personal&gt;<br>
&gt;<br>
&gt; I was struck by the questions of which base64 encoder should be used i=
n<br>
the<br>
&gt; different documents that the working group employed and I started goin=
g<br>
&gt; through the different locations in the document to see where and how m=
uch<br>
&gt; it mattered if the base64 or base64URL encoder was used. =A0This messa=
ge<br>
&gt; represents my conclusions and leads to some questions<br>
&gt;<br>
&gt; 1. =A0The simple dot encoding of the objects does require it as it wil=
l<br>
possibly be<br>
&gt; sent as part of a URL 2. =A0If you are going to be in a space constrai=
ned<br>
&gt; environment then you MIGHT want it as it will shrink the result, howev=
er<br>
&gt; doing a solution that deals with binary data more generally would be a=
<br>
better<br>
&gt; solution.<br>
&gt; 3. =A0Joe might have an argument that only doing things one way is sim=
pler,<br>
&gt; however that argument can apply in both directions<br>
&gt;<br>
&gt; The rest of the time I don&#39;t think it matters which of the encodin=
g<br>
formats is<br>
&gt; used. =A0If you are looking at the SHA-1 hash of a certificate, does i=
t<br>
matter if<br>
&gt; you use base64 or base64URL, not except for the minor size increase. =
=A0The<br>
&gt; padding characters themselves are protected from the URL by the outsid=
e<br>
&gt; base64URL encoding.<br>
&gt;<br>
&gt; Except for the case of the dot encoding step, I think that the use of<=
br>
base64<br>
&gt; URL can be dropped from a MUST to a SHOULD with the justifications bei=
ng<br>
&gt; explained. =A0It was stated at the F2F that the difference in the deco=
ders<br>
is<br>
&gt; minimal so there is no reason not to allow there and this would allow<=
br>
&gt; different people to make different decisions on this issue.<br>
&gt;<br>
&gt; Jim<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; jose mailing list<br>
&gt; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blan=
k">https://www.ietf.org/mailman/listinfo/jose</a><br>
<br>
<br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
</div></div></blockquote></div><br></div>

--e89a8f503510a1263704c8e6d89f--

From ietf@augustcellars.com  Tue Sep  4 14:44:13 2012
Return-Path: <ietf@augustcellars.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 17EB921E8082 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:44:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 P-QjK2XwXODH for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:44:12 -0700 (PDT)
Received: from smtp3.pacifier.net (smtp3.pacifier.net [64.255.237.177]) by ietfa.amsl.com (Postfix) with ESMTP id 3753F21E805A for <jose@ietf.org>; Tue,  4 Sep 2012 14:44:12 -0700 (PDT)
Received: from Tobias (173-160-230-153-Washington.hfc.comcastbusiness.net [173.160.230.153]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: schaad@nwlink.com) by smtp3.pacifier.net (Postfix) with ESMTPSA id F2B9538F3C; Tue,  4 Sep 2012 14:44:11 -0700 (PDT)
From: "Jim Schaad" <ietf@augustcellars.com>
To: "'Daniel Holth'" <dholth@gmail.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com>	<4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com>	<01ec01cd8ae1$c80492b0$580db810$@augustcellars.com> <CAG8k2+4LBgUyhbXzVNj3E9JZU_RTurVpWSyW3dXZ2yYz2J0tag@mail.gmail.com>
In-Reply-To: <CAG8k2+4LBgUyhbXzVNj3E9JZU_RTurVpWSyW3dXZ2yYz2J0tag@mail.gmail.com>
Date: Tue, 4 Sep 2012 14:42:50 -0700
Message-ID: <020601cd8ae6$3badf5e0$b309e1a0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQMfwdQEwKu1//cZu6R2YB7ddsZSxgGTyFWJAZtZ9L8Clc5Vi5SoIDuQ
Content-Language: en-us
Cc: 'Mike Jones' <Michael.Jones@microsoft.com>, jose@ietf.org
Subject: Re: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 21:44:13 -0000

Ok - let's start with which values you are comparing - ones in the header or
the ones in the dot simple encoding.  I never said a thing about changing
the ones in the dot simple encoding just the ones in the header - such as
the SHA-1 hash of a certificate.  I doubt that you are going to compare that
in an encoded method and if you do then you are going to have a problem if
your certificate library want's it base64 encoded rather than base64URL
encoded.  

I also doubt it makes any difference for the binary values that are parts of
keys which way you encode as the library is either going to want binary
values or needs to be willing to accept it both ways - after all there is
nothing that says a different system is not going to want the same values in
a base64 encoded manner (PKCS#8 anybody).

What you are saying is perhaps a better argument for saying that you MUST
decode and compare the bytes rather than encode and compare the encoded
values.  After all, two ways of doing the same thing is bad right.

Jim


> -----Original Message-----
> From: Daniel Holth [mailto:dholth@gmail.com]
> Sent: Tuesday, September 04, 2012 2:16 PM
> To: Jim Schaad
> Cc: Mike Jones; jose@ietf.org
> Subject: Re: [jose] Use of Base64 encoding
> 
> On Tue, Sep 4, 2012 at 5:10 PM, Jim Schaad <ietf@augustcellars.com> wrote:
> > I hope that you have a better response than this.  If what you say is
> > true then we should eliminate a large number of the cryptographic
> > algorithms that have been proposed as they provide multiple ways of
doing
> things.
> >
> > Do you really believe that the difference in the receiving software is
> > going to be that different based on if base64 or base64URL encoding is
> > used on a binary value?
> 
> I wrote that bug just last week. Some people will encode and compare the
> encoded results, others will decode and compare the bits.


From ietf@augustcellars.com  Tue Sep  4 14:45:17 2012
Return-Path: <ietf@augustcellars.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 2723F21E8092 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:45:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[AWL=-0.001, BAYES_00=-2.599, HTML_MESSAGE=0.001, 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 Sq5C8tR8wvgN for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:45:16 -0700 (PDT)
Received: from smtp1.pacifier.net (smtp1.pacifier.net [64.255.237.171]) by ietfa.amsl.com (Postfix) with ESMTP id 28F5621E805A for <jose@ietf.org>; Tue,  4 Sep 2012 14:45:15 -0700 (PDT)
Received: from Tobias (173-160-230-153-Washington.hfc.comcastbusiness.net [173.160.230.153]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: schaad@nwlink.com) by smtp1.pacifier.net (Postfix) with ESMTPSA id CA68E2CA07; Tue,  4 Sep 2012 14:45:14 -0700 (PDT)
From: "Jim Schaad" <ietf@augustcellars.com>
To: "'Breno de Medeiros'" <breno@google.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com>	<4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com>	<01ec01cd8ae1$c80492b0$580db810$@augustcellars.com> <CAAJ++qGWd_FK4VAYH_KtFxrVwW7Q6sShs7=f2xM_COxGx1XqFA@mail.gmail.com>
In-Reply-To: <CAAJ++qGWd_FK4VAYH_KtFxrVwW7Q6sShs7=f2xM_COxGx1XqFA@mail.gmail.com>
Date: Tue, 4 Sep 2012 14:43:53 -0700
Message-ID: <020701cd8ae6$612eca60$238c5f20$@augustcellars.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0208_01CD8AAB.B4D2FFA0"
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQMfwdQEwKu1//cZu6R2YB7ddsZSxgGTyFWJAZtZ9L8CFj5Sd5SsHdwQ
Content-Language: en-us
Cc: 'Mike Jones' <Michael.Jones@microsoft.com>, jose@ietf.org
Subject: Re: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 21:45:17 -0000

This is a multipart message in MIME format.

------=_NextPart_000_0208_01CD8AAB.B4D2FFA0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I am not saying that crypto agility is necessarily bad, I am saying that a
reflexive response that doing things just one way without looking at the
arguments is not a very compelling response.

 

Jim

 

 

From: Breno de Medeiros [mailto:breno@google.com] 
Sent: Tuesday, September 04, 2012 2:18 PM
To: Jim Schaad
Cc: Mike Jones; jose@ietf.org
Subject: Re: [jose] Use of Base64 encoding

 

Crypto agility is necessary because security of crypto algorithms and key
sizes change over time. So supporting multiple crypto algorithms is required
for a standard that doesn't want to become obsolete within a few years. It's
not a case of flexibility but of necessity. Also, availability of different
crypto algorithms varies widely between platforms, so being able to support
multiple algorithms is a must to ensure wide adoption -- porting a new
crypto algorithm to a platform is a very large effort.

 

OTOH:

- Base64URL encoding is quite trivial to add to a platform that doesn't have
it

- Base64URL encoding is not likely to be deprecated in the foreseeable
future

 

On Tue, Sep 4, 2012 at 2:10 PM, Jim Schaad <ietf@augustcellars.com> wrote:

I hope that you have a better response than this.  If what you say is true
then we should eliminate a large number of the cryptographic algorithms that
have been proposed as they provide multiple ways of doing things.

Do you really believe that the difference in the receiving software is going
to be that different based on if base64 or base64URL encoding is used on a
binary value?

Jim



> -----Original Message-----
> From: Mike Jones [mailto:Michael.Jones@microsoft.com]
> Sent: Tuesday, September 04, 2012 1:46 PM
> To: Jim Schaad; jose@ietf.org
> Subject: RE: [jose] Use of Base64 encoding
>
> Having multiple ways to do something never helps improve interop
>
> -----Original Message-----
> From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of
> Jim Schaad
> Sent: Tuesday, September 04, 2012 1:38 PM
> To: jose@ietf.org
> Subject: [jose] Use of Base64 encoding
>
> <personal>
>
> I was struck by the questions of which base64 encoder should be used in
the
> different documents that the working group employed and I started going
> through the different locations in the document to see where and how much
> it mattered if the base64 or base64URL encoder was used.  This message
> represents my conclusions and leads to some questions
>
> 1.  The simple dot encoding of the objects does require it as it will
possibly be
> sent as part of a URL 2.  If you are going to be in a space constrained
> environment then you MIGHT want it as it will shrink the result, however
> doing a solution that deals with binary data more generally would be a
better
> solution.
> 3.  Joe might have an argument that only doing things one way is simpler,
> however that argument can apply in both directions
>
> The rest of the time I don't think it matters which of the encoding
formats is
> used.  If you are looking at the SHA-1 hash of a certificate, does it
matter if
> you use base64 or base64URL, not except for the minor size increase.  The
> padding characters themselves are protected from the URL by the outside
> base64URL encoding.
>
> Except for the case of the dot encoding step, I think that the use of
base64
> URL can be dropped from a MUST to a SHOULD with the justifications being
> explained.  It was stated at the F2F that the difference in the decoders
is
> minimal so there is no reason not to allow there and this would allow
> different people to make different decisions on this issue.
>
> Jim
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


_______________________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose





 

-- 
--Breno


------=_NextPart_000_0208_01CD8AAB.B4D2FFA0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.hoenzb
	{mso-style-name:hoenzb;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>I am not saying that crypto agility is necessarily bad, I am saying =
that a reflexive response that doing things just one way without looking =
at the arguments is not a very compelling =
response.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Jim<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><div =
style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in =
4.0pt'><div><div style=3D'border:none;border-top:solid #B5C4DF =
1.0pt;padding:3.0pt 0in 0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
Breno de Medeiros [mailto:breno@google.com] <br><b>Sent:</b> Tuesday, =
September 04, 2012 2:18 PM<br><b>To:</b> Jim Schaad<br><b>Cc:</b> Mike =
Jones; jose@ietf.org<br><b>Subject:</b> Re: [jose] Use of Base64 =
encoding<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Crypto =
agility is necessary because security of crypto algorithms and key sizes =
change over time. So supporting multiple crypto algorithms is required =
for a standard that doesn't want to become obsolete within a few years. =
It's not a case of flexibility but of necessity. Also, availability of =
different crypto algorithms varies widely between platforms, so being =
able to support multiple algorithms is a must to ensure wide adoption -- =
porting a new crypto algorithm to a platform is a very large =
effort.<o:p></o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>OTOH:<o:p></o:p></p></div><div><p class=3DMsoNormal>- =
Base64URL encoding is quite trivial to add to a platform that doesn't =
have it<o:p></o:p></p></div><div><p class=3DMsoNormal>- Base64URL =
encoding is not likely to be deprecated in the foreseeable =
future<o:p></o:p></p></div><div><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p =
class=3DMsoNormal>On Tue, Sep 4, 2012 at 2:10 PM, Jim Schaad &lt;<a =
href=3D"mailto:ietf@augustcellars.com" =
target=3D"_blank">ietf@augustcellars.com</a>&gt; wrote:<o:p></o:p></p><p =
class=3DMsoNormal>I hope that you have a better response than this. =
&nbsp;If what you say is true<br>then we should eliminate a large number =
of the cryptographic algorithms that<br>have been proposed as they =
provide multiple ways of doing things.<br><br>Do you really believe that =
the difference in the receiving software is going<br>to be that =
different based on if base64 or base64URL encoding is used on =
a<br>binary value?<br><span style=3D'color:#888888'><br><span =
class=3Dhoenzb>Jim</span></span><o:p></o:p></p><div><div><p =
class=3DMsoNormal><br><br>&gt; -----Original Message-----<br>&gt; From: =
Mike Jones [mailto:<a =
href=3D"mailto:Michael.Jones@microsoft.com">Michael.Jones@microsoft.com</=
a>]<br>&gt; Sent: Tuesday, September 04, 2012 1:46 PM<br>&gt; To: Jim =
Schaad; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>&gt; =
Subject: RE: [jose] Use of Base64 encoding<br>&gt;<br>&gt; Having =
multiple ways to do something never helps improve =
interop<br>&gt;<br>&gt; -----Original Message-----<br>&gt; From: <a =
href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</a> =
[mailto:<a =
href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</a>] On =
Behalf Of<br>&gt; Jim Schaad<br>&gt; Sent: Tuesday, September 04, 2012 =
1:38 PM<br>&gt; To: <a =
href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>&gt; Subject: [jose] =
Use of Base64 encoding<br>&gt;<br>&gt; &lt;personal&gt;<br>&gt;<br>&gt; =
I was struck by the questions of which base64 encoder should be used =
in<br>the<br>&gt; different documents that the working group employed =
and I started going<br>&gt; through the different locations in the =
document to see where and how much<br>&gt; it mattered if the base64 or =
base64URL encoder was used. &nbsp;This message<br>&gt; represents my =
conclusions and leads to some questions<br>&gt;<br>&gt; 1. &nbsp;The =
simple dot encoding of the objects does require it as it =
will<br>possibly be<br>&gt; sent as part of a URL 2. &nbsp;If you are =
going to be in a space constrained<br>&gt; environment then you MIGHT =
want it as it will shrink the result, however<br>&gt; doing a solution =
that deals with binary data more generally would be a<br>better<br>&gt; =
solution.<br>&gt; 3. &nbsp;Joe might have an argument that only doing =
things one way is simpler,<br>&gt; however that argument can apply in =
both directions<br>&gt;<br>&gt; The rest of the time I don't think it =
matters which of the encoding<br>formats is<br>&gt; used. &nbsp;If you =
are looking at the SHA-1 hash of a certificate, does it<br>matter =
if<br>&gt; you use base64 or base64URL, not except for the minor size =
increase. &nbsp;The<br>&gt; padding characters themselves are protected =
from the URL by the outside<br>&gt; base64URL encoding.<br>&gt;<br>&gt; =
Except for the case of the dot encoding step, I think that the use =
of<br>base64<br>&gt; URL can be dropped from a MUST to a SHOULD with the =
justifications being<br>&gt; explained. &nbsp;It was stated at the F2F =
that the difference in the decoders<br>is<br>&gt; minimal so there is no =
reason not to allow there and this would allow<br>&gt; different people =
to make different decisions on this issue.<br>&gt;<br>&gt; =
Jim<br>&gt;<br>&gt;<br>&gt; =
_______________________________________________<br>&gt; jose mailing =
list<br>&gt; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>&gt; =
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" =
target=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><br><br><=
br>_______________________________________________<br>jose mailing =
list<br><a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br><a =
href=3D"https://www.ietf.org/mailman/listinfo/jose" =
target=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><o:p></o:=
p></p></div></div></div><p class=3DMsoNormal><br><br =
clear=3Dall><o:p></o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'>-- =
<br>--Breno<o:p></o:p></p></div></div></div></body></html>
------=_NextPart_000_0208_01CD8AAB.B4D2FFA0--


From ietf@augustcellars.com  Tue Sep  4 14:48:45 2012
Return-Path: <ietf@augustcellars.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 222AD21E8098 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:48:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.598
X-Spam-Level: 
X-Spam-Status: No, score=-3.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, 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 VOV5V+ex2dW0 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 14:48:43 -0700 (PDT)
Received: from smtp1.pacifier.net (smtp1.pacifier.net [64.255.237.171]) by ietfa.amsl.com (Postfix) with ESMTP id 1CD0021E8092 for <jose@ietf.org>; Tue,  4 Sep 2012 14:48:43 -0700 (PDT)
Received: from Tobias (173-160-230-153-Washington.hfc.comcastbusiness.net [173.160.230.153]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: schaad@nwlink.com) by smtp1.pacifier.net (Postfix) with ESMTPSA id CB7F82CA0B; Tue,  4 Sep 2012 14:48:42 -0700 (PDT)
From: "Jim Schaad" <ietf@augustcellars.com>
To: "'Bob Wyman'" <bob@wyman.us>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com>	<4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com>	<01ec01cd8ae1$c80492b0$580db810$@augustcellars.com> <CAA1s49VizpUQcie9Ud9_fu5h37JA3W-RGff0ogUK3R6jCyiE-w@mail.gmail.com>
In-Reply-To: <CAA1s49VizpUQcie9Ud9_fu5h37JA3W-RGff0ogUK3R6jCyiE-w@mail.gmail.com>
Date: Tue, 4 Sep 2012 14:47:18 -0700
Message-ID: <020c01cd8ae6$dd2b0e30$97812a90$@augustcellars.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_020D_01CD8AAC.30CF6A80"
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQMfwdQEwKu1//cZu6R2YB7ddsZSxgGTyFWJAZtZ9L8BB8NXjpS0kg0Q
Content-Language: en-us
Cc: 'Mike Jones' <Michael.Jones@microsoft.com>, jose@ietf.org
Subject: Re: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 21:48:45 -0000

This is a multipart message in MIME format.

------=_NextPart_000_020D_01CD8AAC.30CF6A80
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I find the canonicalization argument to be very misrepresented.  The lesson
learned from the XML signature world is that you do not want both sides to
have to perform the same canonicalization.  It is not that you don't want
the sender to canonicalize.  After all, by stating that you must use
base64URL you are doing a canonicalization step - you are saying that it
must be encoded this way. 

 

I don't think it matters one whit to the receiving agent if the base64
decode routine is able to decode both base64 and base64url values.  It just
needs to accept the values sent to it by the sending agent.

 

Jim

 

 

From: bobwyman@gmail.com [mailto:bobwyman@gmail.com] On Behalf Of Bob Wyman
Sent: Tuesday, September 04, 2012 2:22 PM
To: Jim Schaad
Cc: Mike Jones; jose@ietf.org
Subject: Re: [jose] Use of Base64 encoding

 

 

On Tue, Sep 4, 2012 at 5:10 PM, Jim Schaad <ietf@augustcellars.com> wrote:

I hope that you have a better response than this.  If what you say is true
then we should eliminate a large number of the cryptographic algorithms that
have been proposed as they provide multiple ways of doing things.

Do you really believe that the difference in the receiving software is going
to be that different based on if base64 or base64URL encoding is used on a
binary value?

I think the whole point of using something like either base64 or base64URL
encoding is to make the system as simple as possible. The alternative, used
in the past, was to require some kind of complex canonicalization. That
canonicalization proved, in many cases, to be so cumbersome that it
prevented developers from building solutions to real problems. The base64*
solution is the extreme opposite of the more complex canonicalization
approach. Certainly, there are all sorts of intermediate positions between
the two extremes, but it seems to me that we should avoid those mid-points
unless there is some really significant benefit for doing so.

 

bob wyman

 


Jim



> -----Original Message-----
> From: Mike Jones [mailto:Michael.Jones@microsoft.com]
> Sent: Tuesday, September 04, 2012 1:46 PM
> To: Jim Schaad; jose@ietf.org
> Subject: RE: [jose] Use of Base64 encoding
>
> Having multiple ways to do something never helps improve interop
>
> -----Original Message-----
> From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of
> Jim Schaad
> Sent: Tuesday, September 04, 2012 1:38 PM
> To: jose@ietf.org
> Subject: [jose] Use of Base64 encoding
>
> <personal>
>
> I was struck by the questions of which base64 encoder should be used in
the
> different documents that the working group employed and I started going
> through the different locations in the document to see where and how much
> it mattered if the base64 or base64URL encoder was used.  This message
> represents my conclusions and leads to some questions
>
> 1.  The simple dot encoding of the objects does require it as it will
possibly be
> sent as part of a URL 2.  If you are going to be in a space constrained
> environment then you MIGHT want it as it will shrink the result, however
> doing a solution that deals with binary data more generally would be a
better
> solution.
> 3.  Joe might have an argument that only doing things one way is simpler,
> however that argument can apply in both directions
>
> The rest of the time I don't think it matters which of the encoding
formats is
> used.  If you are looking at the SHA-1 hash of a certificate, does it
matter if
> you use base64 or base64URL, not except for the minor size increase.  The
> padding characters themselves are protected from the URL by the outside
> base64URL encoding.
>
> Except for the case of the dot encoding step, I think that the use of
base64
> URL can be dropped from a MUST to a SHOULD with the justifications being
> explained.  It was stated at the F2F that the difference in the decoders
is
> minimal so there is no reason not to allow there and this would allow
> different people to make different decisions on this issue.
>
> Jim
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


_______________________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose

 


------=_NextPart_000_020D_01CD8AAC.30CF6A80
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.hoenzb
	{mso-style-name:hoenzb;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>I find the canonicalization argument to be very misrepresented.&nbsp; =
The lesson learned from the XML signature world is that you do not want =
both sides to have to perform the same canonicalization.&nbsp; It is not =
that you don&#8217;t want the sender to canonicalize.&nbsp; After all, =
by stating that you must use base64URL you are doing a canonicalization =
step &#8211; you are saying that it must be encoded this way. =
<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>I don&#8217;t think it matters one whit to the receiving agent if the =
base64 decode routine is able to decode both base64 and base64url =
values. &nbsp;It just needs to accept the values sent to it by the =
sending agent.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Jim<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><div =
style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in =
4.0pt'><div><div style=3D'border:none;border-top:solid #B5C4DF =
1.0pt;padding:3.0pt 0in 0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
bobwyman@gmail.com [mailto:bobwyman@gmail.com] <b>On Behalf Of </b>Bob =
Wyman<br><b>Sent:</b> Tuesday, September 04, 2012 2:22 PM<br><b>To:</b> =
Jim Schaad<br><b>Cc:</b> Mike Jones; jose@ietf.org<br><b>Subject:</b> =
Re: [jose] Use of Base64 encoding<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p class=3DMsoNormal>On Tue, =
Sep 4, 2012 at 5:10 PM, Jim Schaad &lt;<a =
href=3D"mailto:ietf@augustcellars.com" =
target=3D"_blank">ietf@augustcellars.com</a>&gt; wrote:<o:p></o:p></p><p =
class=3DMsoNormal>I hope that you have a better response than this. =
&nbsp;If what you say is true<br>then we should eliminate a large number =
of the cryptographic algorithms that<br>have been proposed as they =
provide multiple ways of doing things.<br><br>Do you really believe that =
the difference in the receiving software is going<br>to be that =
different based on if base64 or base64URL encoding is used on =
a<br>binary value?<o:p></o:p></p><div><p class=3DMsoNormal>I think the =
whole point of using something like either base64 or base64URL encoding =
is to make the system as simple as possible. The alternative, used in =
the past, was to require some kind of complex canonicalization. That =
canonicalization proved, in many cases, to be so cumbersome that it =
prevented developers from building solutions to real problems. The =
base64* solution is the extreme opposite of the more complex =
canonicalization approach. Certainly, there are all sorts of =
intermediate positions between the two extremes, but it seems to me that =
we should avoid those mid-points unless there is some really significant =
benefit for doing so.<o:p></o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>bob wyman<o:p></o:p></p></div></div><div><p =
class=3DMsoNormal>&nbsp;<o:p></o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><p class=3DMsoNormal><span =
style=3D'color:#888888'><br><span =
class=3Dhoenzb>Jim</span></span><o:p></o:p></p><div><div><p =
class=3DMsoNormal><br><br>&gt; -----Original Message-----<br>&gt; From: =
Mike Jones [mailto:<a =
href=3D"mailto:Michael.Jones@microsoft.com">Michael.Jones@microsoft.com</=
a>]<br>&gt; Sent: Tuesday, September 04, 2012 1:46 PM<br>&gt; To: Jim =
Schaad; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>&gt; =
Subject: RE: [jose] Use of Base64 encoding<br>&gt;<br>&gt; Having =
multiple ways to do something never helps improve =
interop<br>&gt;<br>&gt; -----Original Message-----<br>&gt; From: <a =
href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</a> =
[mailto:<a =
href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</a>] On =
Behalf Of<br>&gt; Jim Schaad<br>&gt; Sent: Tuesday, September 04, 2012 =
1:38 PM<br>&gt; To: <a =
href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>&gt; Subject: [jose] =
Use of Base64 encoding<br>&gt;<br>&gt; &lt;personal&gt;<br>&gt;<br>&gt; =
I was struck by the questions of which base64 encoder should be used =
in<br>the<br>&gt; different documents that the working group employed =
and I started going<br>&gt; through the different locations in the =
document to see where and how much<br>&gt; it mattered if the base64 or =
base64URL encoder was used. &nbsp;This message<br>&gt; represents my =
conclusions and leads to some questions<br>&gt;<br>&gt; 1. &nbsp;The =
simple dot encoding of the objects does require it as it =
will<br>possibly be<br>&gt; sent as part of a URL 2. &nbsp;If you are =
going to be in a space constrained<br>&gt; environment then you MIGHT =
want it as it will shrink the result, however<br>&gt; doing a solution =
that deals with binary data more generally would be a<br>better<br>&gt; =
solution.<br>&gt; 3. &nbsp;Joe might have an argument that only doing =
things one way is simpler,<br>&gt; however that argument can apply in =
both directions<br>&gt;<br>&gt; The rest of the time I don't think it =
matters which of the encoding<br>formats is<br>&gt; used. &nbsp;If you =
are looking at the SHA-1 hash of a certificate, does it<br>matter =
if<br>&gt; you use base64 or base64URL, not except for the minor size =
increase. &nbsp;The<br>&gt; padding characters themselves are protected =
from the URL by the outside<br>&gt; base64URL encoding.<br>&gt;<br>&gt; =
Except for the case of the dot encoding step, I think that the use =
of<br>base64<br>&gt; URL can be dropped from a MUST to a SHOULD with the =
justifications being<br>&gt; explained. &nbsp;It was stated at the F2F =
that the difference in the decoders<br>is<br>&gt; minimal so there is no =
reason not to allow there and this would allow<br>&gt; different people =
to make different decisions on this issue.<br>&gt;<br>&gt; =
Jim<br>&gt;<br>&gt;<br>&gt; =
_______________________________________________<br>&gt; jose mailing =
list<br>&gt; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>&gt; =
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" =
target=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><br><br><=
br>_______________________________________________<br>jose mailing =
list<br><a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br><a =
href=3D"https://www.ietf.org/mailman/listinfo/jose" =
target=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><o:p></o:=
p></p></div></div></blockquote></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></div></div></body></html>
------=_NextPart_000_020D_01CD8AAC.30CF6A80--


From ve7jtb@ve7jtb.com  Tue Sep  4 16:47:35 2012
Return-Path: <ve7jtb@ve7jtb.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 42C1E21F8484 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 16:47:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.598
X-Spam-Level: 
X-Spam-Status: No, score=-3.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, 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 iNJyuxEHCm7L for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 16:47:34 -0700 (PDT)
Received: from mail-qa0-f51.google.com (mail-qa0-f51.google.com [209.85.216.51]) by ietfa.amsl.com (Postfix) with ESMTP id 07B8F21F8471 for <jose@ietf.org>; Tue,  4 Sep 2012 16:47:33 -0700 (PDT)
Received: by qadz3 with SMTP id z3so4000203qad.10 for <jose@ietf.org>; Tue, 04 Sep 2012 16:47:33 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to:x-mailer:x-gm-message-state; bh=OTonnH64XFscLGkv1MYl85ZNW6w1+zfNbfHAFFjvk+M=; b=eO8o1V9szXbStgalReTDzDOvRK5BMtFqbkOvJC7oc8geHKrkXqz2IR/to3mtJZnLwn 5nn/NvVTnulNpWNDjb8tna7jRrKd5OmRthGS1h6cDcEZoiZIcM+mJ6qJKAGvUzmV6SYu 3mTfNjlOzT39/cfUFuldvuDP1S1brYi6IRNJb7M+7+R4qPzcxQ2eqsnj/MemU5v9tQ4Q aw0DHwrFc+mXMfU23THfN4bKsgE1XIXvyEHSun933Nn/Sh3uM4Atd+Ndjf0YCD+nzHll UGNqL68vOCVlk11b8rTSqobt78K3moGS/skKMR9wJs0/p8L3QWNzLabEQ2d63x0f0ra5 6zag==
Received: by 10.224.184.20 with SMTP id ci20mr42837323qab.26.1346802453408; Tue, 04 Sep 2012 16:47:33 -0700 (PDT)
Received: from [192.168.1.211] (190-20-62-68.baf.movistar.cl. [190.20.62.68]) by mx.google.com with ESMTPS id ca8sm78611qab.20.2012.09.04.16.47.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Sep 2012 16:47:32 -0700 (PDT)
Content-Type: multipart/signed; boundary="Apple-Mail=_34F6354A-CC6F-48AE-A8B5-D5B741D9718E"; protocol="application/pkcs7-signature"; micalg=sha1
Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\))
From: John Bradley <ve7jtb@ve7jtb.com>
In-Reply-To: <CAA1s49VizpUQcie9Ud9_fu5h37JA3W-RGff0ogUK3R6jCyiE-w@mail.gmail.com>
Date: Tue, 4 Sep 2012 20:47:27 -0300
Message-Id: <DA2CC13E-8DB0-4741-90BC-E2C1E2D8980A@ve7jtb.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com> <01ec01cd8ae1$c80492b0$580db810$@augustcellars.com> <CAA1s49VizpUQcie9Ud9_fu5h37JA3W-RGff0ogUK3R6jCyiE-w@mail.gmail.com>
To: Bob Wyman <bob@wyman.us>
X-Mailer: Apple Mail (2.1486)
X-Gm-Message-State: ALoCoQnURxezdglFJ7of7cvkqM6vjrqfNV82GaQ82GqXT7LPrhG2hPMaGoBrSEga6yMIzW7OsOO2
Cc: Jim Schaad <ietf@augustcellars.com>, Mike Jones <Michael.Jones@microsoft.com>, jose@ietf.org
Subject: Re: [jose] Use of Base64 encoding
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: Tue, 04 Sep 2012 23:47:35 -0000

--Apple-Mail=_34F6354A-CC6F-48AE-A8B5-D5B741D9718E
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_300B16BF-28DE-4AC4-BC0F-0E249570E94C"


--Apple-Mail=_300B16BF-28DE-4AC4-BC0F-0E249570E94C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

We need base64URL for using the tokens in OAuth and other places in a =
URL.

I don't see a benefit to making recipients figure out what encoding was =
used. =20

Stick with base64URL and if someone wants to convert it to base64 on =
receipt that is not a huge deal.

John B.

On 2012-09-04, at 6:21 PM, Bob Wyman <bob@wyman.us> wrote:

>=20
> On Tue, Sep 4, 2012 at 5:10 PM, Jim Schaad <ietf@augustcellars.com> =
wrote:
> I hope that you have a better response than this.  If what you say is =
true
> then we should eliminate a large number of the cryptographic =
algorithms that
> have been proposed as they provide multiple ways of doing things.
>=20
> Do you really believe that the difference in the receiving software is =
going
> to be that different based on if base64 or base64URL encoding is used =
on a
> binary value?
> I think the whole point of using something like either base64 or =
base64URL encoding is to make the system as simple as possible. The =
alternative, used in the past, was to require some kind of complex =
canonicalization. That canonicalization proved, in many cases, to be so =
cumbersome that it prevented developers from building solutions to real =
problems. The base64* solution is the extreme opposite of the more =
complex canonicalization approach. Certainly, there are all sorts of =
intermediate positions between the two extremes, but it seems to me that =
we should avoid those mid-points unless there is some really significant =
benefit for doing so.
>=20
> bob wyman
> =20
>=20
> Jim
>=20
>=20
> > -----Original Message-----
> > From: Mike Jones [mailto:Michael.Jones@microsoft.com]
> > Sent: Tuesday, September 04, 2012 1:46 PM
> > To: Jim Schaad; jose@ietf.org
> > Subject: RE: [jose] Use of Base64 encoding
> >
> > Having multiple ways to do something never helps improve interop
> >
> > -----Original Message-----
> > From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf =
Of
> > Jim Schaad
> > Sent: Tuesday, September 04, 2012 1:38 PM
> > To: jose@ietf.org
> > Subject: [jose] Use of Base64 encoding
> >
> > <personal>
> >
> > I was struck by the questions of which base64 encoder should be used =
in
> the
> > different documents that the working group employed and I started =
going
> > through the different locations in the document to see where and how =
much
> > it mattered if the base64 or base64URL encoder was used.  This =
message
> > represents my conclusions and leads to some questions
> >
> > 1.  The simple dot encoding of the objects does require it as it =
will
> possibly be
> > sent as part of a URL 2.  If you are going to be in a space =
constrained
> > environment then you MIGHT want it as it will shrink the result, =
however
> > doing a solution that deals with binary data more generally would be =
a
> better
> > solution.
> > 3.  Joe might have an argument that only doing things one way is =
simpler,
> > however that argument can apply in both directions
> >
> > The rest of the time I don't think it matters which of the encoding
> formats is
> > used.  If you are looking at the SHA-1 hash of a certificate, does =
it
> matter if
> > you use base64 or base64URL, not except for the minor size increase. =
 The
> > padding characters themselves are protected from the URL by the =
outside
> > base64URL encoding.
> >
> > Except for the case of the dot encoding step, I think that the use =
of
> base64
> > URL can be dropped from a MUST to a SHOULD with the justifications =
being
> > explained.  It was stated at the F2F that the difference in the =
decoders
> is
> > minimal so there is no reason not to allow there and this would =
allow
> > different people to make different decisions on this issue.
> >
> > Jim
> >
> >
> > _______________________________________________
> > jose mailing list
> > jose@ietf.org
> > https://www.ietf.org/mailman/listinfo/jose
>=20
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


--Apple-Mail=_300B16BF-28DE-4AC4-BC0F-0E249570E94C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=iso-8859-1

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Diso-8859-1"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">We =
need base64URL for using the tokens in OAuth and other places in a =
URL.<div><br></div><div>I don't see a benefit to making recipients =
figure out what encoding was used. &nbsp;</div><div><br></div><div>Stick =
with base64URL and if someone wants to convert it to base64 on receipt =
that is not a huge deal.</div><div><br></div><div>John =
B.</div><div><br><div><div>On 2012-09-04, at 6:21 PM, Bob Wyman &lt;<a =
href=3D"mailto:bob@wyman.us">bob@wyman.us</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div><br><div class=3D"gmail_quote">On Tue, Sep 4, 2012 at =
5:10 PM, Jim Schaad <span dir=3D"ltr">&lt;<a =
href=3D"mailto:ietf@augustcellars.com" =
target=3D"_blank">ietf@augustcellars.com</a>&gt;</span> =
wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex">
I hope that you have a better response than this. &nbsp;If what you say =
is true<br>
then we should eliminate a large number of the cryptographic algorithms =
that<br>
have been proposed as they provide multiple ways of doing things.<br>
<br>
Do you really believe that the difference in the receiving software is =
going<br>
to be that different based on if base64 or base64URL encoding is used on =
a<br>
binary value?<br></blockquote><div>I think the whole point of using =
something like either base64 or base64URL encoding is to make the system =
as simple as possible. The alternative, used in the past, was to require =
some kind of complex canonicalization. That canonicalization proved, in =
many cases, to be so cumbersome that it prevented developers from =
building solutions to real problems. The base64* solution is the extreme =
opposite of the more complex canonicalization approach. Certainly, there =
are all sorts of intermediate positions between the two extremes, but it =
seems to me that we should avoid those mid-points unless there is some =
really significant benefit for doing so.<div>
<br></div><div>bob wyman<br></div></div><div>&nbsp;</div><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex">
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Jim<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
&gt; -----Original Message-----<br>
&gt; From: Mike Jones [mailto:<a =
href=3D"mailto:Michael.Jones@microsoft.com">Michael.Jones@microsoft.com</a=
>]<br>
&gt; Sent: Tuesday, September 04, 2012 1:46 PM<br>
&gt; To: Jim Schaad; <a =
href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt; Subject: RE: [jose] Use of Base64 encoding<br>
&gt;<br>
&gt; Having multiple ways to do something never helps improve =
interop<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a =
href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</a> =
[mailto:<a =
href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</a>] On =
Behalf Of<br>
&gt; Jim Schaad<br>
&gt; Sent: Tuesday, September 04, 2012 1:38 PM<br>
&gt; To: <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt; Subject: [jose] Use of Base64 encoding<br>
&gt;<br>
&gt; &lt;personal&gt;<br>
&gt;<br>
&gt; I was struck by the questions of which base64 encoder should be =
used in<br>
the<br>
&gt; different documents that the working group employed and I started =
going<br>
&gt; through the different locations in the document to see where and =
how much<br>
&gt; it mattered if the base64 or base64URL encoder was used. &nbsp;This =
message<br>
&gt; represents my conclusions and leads to some questions<br>
&gt;<br>
&gt; 1. &nbsp;The simple dot encoding of the objects does require it as =
it will<br>
possibly be<br>
&gt; sent as part of a URL 2. &nbsp;If you are going to be in a space =
constrained<br>
&gt; environment then you MIGHT want it as it will shrink the result, =
however<br>
&gt; doing a solution that deals with binary data more generally would =
be a<br>
better<br>
&gt; solution.<br>
&gt; 3. &nbsp;Joe might have an argument that only doing things one way =
is simpler,<br>
&gt; however that argument can apply in both directions<br>
&gt;<br>
&gt; The rest of the time I don't think it matters which of the =
encoding<br>
formats is<br>
&gt; used. &nbsp;If you are looking at the SHA-1 hash of a certificate, =
does it<br>
matter if<br>
&gt; you use base64 or base64URL, not except for the minor size =
increase. &nbsp;The<br>
&gt; padding characters themselves are protected from the URL by the =
outside<br>
&gt; base64URL encoding.<br>
&gt;<br>
&gt; Except for the case of the dot encoding step, I think that the use =
of<br>
base64<br>
&gt; URL can be dropped from a MUST to a SHOULD with the justifications =
being<br>
&gt; explained. &nbsp;It was stated at the F2F that the difference in =
the decoders<br>
is<br>
&gt; minimal so there is no reason not to allow there and this would =
allow<br>
&gt; different people to make different decisions on this issue.<br>
&gt;<br>
&gt; Jim<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; jose mailing list<br>
&gt; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/jose" =
target=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><br>
<br>
<br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" =
target=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><br>
</div></div></blockquote></div><br></div>
_______________________________________________<br>jose mailing =
list<br><a =
href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>https://www.ietf.org/ma=
ilman/listinfo/jose<br></blockquote></div><br></div></body></html>=

--Apple-Mail=_300B16BF-28DE-4AC4-BC0F-0E249570E94C--

--Apple-Mail=_34F6354A-CC6F-48AE-A8B5-D5B741D9718E
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIPnzCCB7Uw
ggadoAMCAQICAh5cMA0GCSqGSIb3DQEBBQUAMIGMMQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3Rh
cnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzE4
MDYGA1UEAxMvU3RhcnRDb20gQ2xhc3MgMiBQcmltYXJ5IEludGVybWVkaWF0ZSBDbGllbnQgQ0Ew
HhcNMTIwMzE4MDQzMjQ4WhcNMTQwMzE5MTEwNzMyWjCBmzEZMBcGA1UEDRMQR3JUTTZMUzdYMzU3
NzhzOTELMAkGA1UEBhMCQ0wxIjAgBgNVBAgTGU1ldHJvcG9saXRhbmEgZGUgU2FudGlhZ28xFjAU
BgNVBAcTDUlzbGEgZGUgTWFpcG8xFTATBgNVBAMTDEpvaG4gQnJhZGxleTEeMBwGCSqGSIb3DQEJ
ARYPamJyYWRsZXlAbWUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAskrlBI93
rBTLOQGSwIT6co6dAw/rwDPrRXl6/F2oc4KDn+QN6CdFeHo08H846VJS9CDjLKvnK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bSBD
bGFzcyAyIFByaW1hcnkgSW50ZXJtZWRpYXRlIENsaWVudCBDQQICHlwwgaYGCyqGSIb3DQEJEAIL
MYGWoIGTMIGMMQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMi
U2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzE4MDYGA1UEAxMvU3RhcnRDb20gQ2xh
c3MgMiBQcmltYXJ5IEludGVybWVkaWF0ZSBDbGllbnQgQ0ECAh5cMA0GCSqGSIb3DQEBAQUABIIB
AELDPSCeUMKFymg9s6QbdFo8Mf0ogIR1/xwBl+v2/iZQ7REPXbif2BvzkfqE5PoM/QENRirOT+NG
xZcODkQW0BdNS5wqNDFUgg1f92v0/YyaeqtIpQ4KT78VHBNQcarG7cLAjdMOQ3PMFgnPElC0Bd38
XQel2hsoM88mUOwH93XgE6Zg9dbfgBSSPq+XZRmWL75cHfX/d6Z24vPKbbDr/7QTJJTF+9pBjlwb
ztOrecQl/e8r/se7IX2kf7z1A7t44+BJLPz/H0r3gnhhIJmcDaoFVAZ6hw1nM/5hBl/rAgNQ62Vv
XO6QEEOTwx3QCo3ba1xwrd3RaDgKQylR851pH5sAAAAAAAA=

--Apple-Mail=_34F6354A-CC6F-48AE-A8B5-D5B741D9718E--

From mamille2@cisco.com  Tue Sep  4 19:03:19 2012
Return-Path: <mamille2@cisco.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 B2E3A21F8470 for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 19:03:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 47st78JAApWb for <jose@ietfa.amsl.com>; Tue,  4 Sep 2012 19:03:18 -0700 (PDT)
Received: from rcdn-iport-6.cisco.com (rcdn-iport-6.cisco.com [173.37.86.77]) by ietfa.amsl.com (Postfix) with ESMTP id AAD8021F8440 for <jose@ietf.org>; Tue,  4 Sep 2012 19:03:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=mamille2@cisco.com; l=6698; q=dns/txt; s=iport; t=1346810598; x=1348020198; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=GFb7ShIwTiWOsSDHXha+ARm4BqSo2O14riq6B53Gniw=; b=Z2xKGrCpJF4YckE0dWLTm7NKN9KvZTE3sOSzwn8tfHt02IqHQp+CYE05 JecSDusvtbG+PbMid3gItwMWqc6Fnc1euxtcWIPRMOLosQwJI40MnQvRg NXLEbqNZerRUukLT+bo8ynzvx9OlWjI9ZyF/OUi43qyHKp67eZqYcTXop E=;
X-Files: smime.p7s, PGP.sig : 2214, 535
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EAAqyRlCtJV2Y/2dsb2JhbABFuySBB4IhAQEEAQEBDwFbCxACAQgOOAIlCyUBAQQOBQ4NB4drC5p+oC4EiwmGUmADjmKBIIVXjjOBZ4Jj
X-IronPort-AV: E=Sophos;i="4.80,371,1344211200";  d="sig'?p7s'?scan'208";a="118313077"
Received: from rcdn-core-1.cisco.com ([173.37.93.152]) by rcdn-iport-6.cisco.com with ESMTP; 05 Sep 2012 02:03:18 +0000
Received: from xhc-rcd-x01.cisco.com (xhc-rcd-x01.cisco.com [173.37.183.75]) by rcdn-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id q8523IEI012678 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 5 Sep 2012 02:03:18 GMT
Received: from xmb-aln-x11.cisco.com ([169.254.6.219]) by xhc-rcd-x01.cisco.com ([173.37.183.75]) with mapi id 14.02.0298.004; Tue, 4 Sep 2012 21:03:17 -0500
From: "Matt Miller (mamille2)" <mamille2@cisco.com>
To: Jim Schaad <ietf@augustcellars.com>
Thread-Topic: [jose] Use of Base64 encoding
Thread-Index: Ac2K3E9QDPXwVte6TAeRHFm0JPSJ1gAWDW2A
Date: Wed, 5 Sep 2012 02:03:16 +0000
Message-ID: <74CF63FB-4F35-499B-B84B-7DD3948576FE@cisco.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com>
In-Reply-To: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-pgp-agent: GPGMail 1.3.3
x-originating-ip: [10.21.144.150]
x-tm-as-product-ver: SMEX-10.2.0.1135-7.000.1014-19162.001
x-tm-as-result: No--33.685000-8.000000-31
x-tm-as-user-approved-sender: No
x-tm-as-user-blocked-sender: No
Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-17--863792080"
MIME-Version: 1.0
Cc: "<jose@ietf.org>" <jose@ietf.org>
Subject: Re: [jose] Use of Base64 encoding
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, 05 Sep 2012 02:03:19 -0000

--Apple-Mail-17--863792080
Content-Type: multipart/signed; boundary=Apple-Mail-16--863792090; protocol="application/pkcs7-signature"; micalg=sha1


--Apple-Mail-16--863792090
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Personally, I would prefer to keep encodings as similar as possible.  =
Maybe it is petty of me, but I'd rather not have to wonder if the data =
should be base64 or base64url encoded before sending it.  I'm less =
worried about receiving; it's trivial to map from one to the other.

And because it's so trivial, I would argue that mandating one or the =
other is a better course of action; it's one less obstacle for =
interoperable implementations.


- m&m

Matt Miller - <mamille2@cisco.com>
Cisco Systems, Inc.

On Sep 4, 2012, at 14:38, Jim Schaad wrote:

> <personal>
>=20
> I was struck by the questions of which base64 encoder should be used =
in the
> different documents that the working group employed and I started =
going
> through the different locations in the document to see where and how =
much it
> mattered if the base64 or base64URL encoder was used.  This message
> represents my conclusions and leads to some questions
>=20
> 1.  The simple dot encoding of the objects does require it as it will
> possibly be sent as part of a URL
> 2.  If you are going to be in a space constrained environment then you =
MIGHT
> want it as it will shrink the result, however doing a solution that =
deals
> with binary data more generally would be a better solution.
> 3.  Joe might have an argument that only doing things one way is =
simpler,
> however that argument can apply in both directions
>=20
> The rest of the time I don't think it matters which of the encoding =
formats
> is used.  If you are looking at the SHA-1 hash of a certificate, does =
it
> matter if you use base64 or base64URL, not except for the minor size
> increase.  The padding characters themselves are protected from the =
URL by
> the outside base64URL encoding.
>=20
> Except for the case of the dot encoding step, I think that the use of =
base64
> URL can be dropped from a MUST to a SHOULD with the justifications =
being
> explained.  It was stated at the F2F that the difference in the =
decoders is
> minimal so there is no reason not to allow there and this would allow
> different people to make different decisions on this issue.
>=20
> Jim
>=20
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


--Apple-Mail-16--863792090
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFNTCCBTEw
ggMZoAMCAQICAwmYMjANBgkqhkiG9w0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QMA4GA1UEChMHUm9vdCBDQTEeMBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIw
IAYDVQQDExlDQSBDZXJ0IFNpZ25pbmcgQXV0aG9yaXR5MSEwHwYJKoZIhvcNAQkBFhJzdXBwb3J0
QGNhY2VydC5vcmcCAwmYMjCBkwYLKoZIhvcNAQkQAgsxgYOggYAweTEQMA4GA1UEChMHUm9vdCBD
QTEeMBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIwIAYDVQQDExlDQSBDZXJ0IFNpZ25p
bmcgQXV0aG9yaXR5MSEwHwYJKoZIhvcNAQkBFhJzdXBwb3J0QGNhY2VydC5vcmcCAwmYMjANBgkq
hkiG9w0BAQEFAASCAQAUMOZ+f3UkqVLqz5gTmKYjAareh0MhKQU9+Su3mzGiuU5AG5iy/FNw+u4E
6ydmJybyq/cqxoOjhH0bL0mR6bQWMZPR3axlnIwChPRNaFwEv1RfHvm+dcyAJ7Pc/lKHtTaeza5/
z6yjtrS8OPBc7gsOZGtLcGk8M5VWQJSrubCNI4gNC3cUiowhNPV/zwTad5z8eAQjQUmObiqUQkea
nogKHusocn7l+HCIi/FwswNs7FP0RllYBMjPdShS68pzIjUYemwZuGP04ftk1EKrOC0Wat0d2xdN
e0qBCT8Q8TMylV8T+xDs3jnAvYkrjD3KG4PF0pTR8bd4hx5txCdlLkNHAAAAAAAA

--Apple-Mail-16--863792090--

--Apple-Mail-17--863792080
Content-Type: application/pgp-signature; x-mac-type=70674453; name="PGP.sig"
Content-Description: This is a digitally signed message part
Content-Disposition: inline; filename="PGP.sig"
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJQRrLjAAoJEJq6Ou0cgrSPPAgH/j3sBbOfFKp+LvS87eUsqR/K
GkbJB/+o6aOOBYKzQLPBmXkmJvYsnmGDzZQXSJQ4YXdOD4S6zom94P+AmL6X24xk
aUpdCf6MimE9W33atFH5waKEkM8dq4G7OozvpDZrTGI1JYwydPQa7zogewImYsUU
hLSmiF6IyhYHhli56o42J809C1XcWS/Q/h9rAaapMsF1YTSp3rm43A4eAHc4Zb76
cYcTieRVElpysAYlgvycWXwncGrVyW8rIG6oOPOANXUQDLnVQO4bDo+ckVO9IEzB
MOjiG8iTJLwqaVO09OfCTV9El/+PdbwLRHc4BTBX9EnbPd8mJBT8DNpwFEqlzXo=
=79gb
-----END PGP SIGNATURE-----

--Apple-Mail-17--863792080--

From jricher@mitre.org  Wed Sep  5 08:12:04 2012
Return-Path: <jricher@mitre.org>
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 C82D621F86A7 for <jose@ietfa.amsl.com>; Wed,  5 Sep 2012 08:12:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[AWL=-0.001, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4]
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 SqbdRCvBHqcn for <jose@ietfa.amsl.com>; Wed,  5 Sep 2012 08:12:03 -0700 (PDT)
Received: from smtpksrv1.mitre.org (smtpksrv1.mitre.org [198.49.146.77]) by ietfa.amsl.com (Postfix) with ESMTP id AE97A21F869A for <jose@ietf.org>; Wed,  5 Sep 2012 08:12:03 -0700 (PDT)
Received: from smtpksrv1.mitre.org (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 0E86B21B0BA0; Wed,  5 Sep 2012 11:12:02 -0400 (EDT)
Received: from IMCCAS02.MITRE.ORG (imccas02.mitre.org [129.83.29.79]) by smtpksrv1.mitre.org (Postfix) with ESMTP id C6B1421B0BB8; Wed,  5 Sep 2012 11:12:01 -0400 (EDT)
Received: from [10.146.15.29] (129.83.31.58) by IMCCAS02.MITRE.ORG (129.83.29.79) with Microsoft SMTP Server (TLS) id 14.2.309.2; Wed, 5 Sep 2012 11:12:01 -0400
Message-ID: <50476BC0.3080708@mitre.org>
Date: Wed, 5 Sep 2012 11:12:00 -0400
From: Justin Richer <jricher@mitre.org>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0
MIME-Version: 1.0
To: Bob Wyman <bob@wyman.us>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com> <CAA1s49VC_Z8hyPKtNZBKN9feUk_-zxQnLDVZHmurOL2rpt_=hA@mail.gmail.com>
In-Reply-To: <CAA1s49VC_Z8hyPKtNZBKN9feUk_-zxQnLDVZHmurOL2rpt_=hA@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------070807040508040305020103"
X-Originating-IP: [129.83.31.58]
Cc: Mike Jones <Michael.Jones@microsoft.com>, Jim Schaad <ietf@augustcellars.com>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Use of Base64 encoding
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, 05 Sep 2012 15:12:04 -0000

--------------070807040508040305020103
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 7bit

+1 to Bob's argument.

Just pick one and stick with it universally. I see no good reason to 
deviate from that. Below, are you suggesting that we pick normal base64 
for one value but base64url for others? Or are you suggesting that we 
allow multiple kinds of encoding for these? If the latter, why wouldn't 
you also allow hex encoding, or base32, or any number of arbitrary 
binary encodings using the same argument as below. Base64URL is well 
established, available on basically every platform, trivial to implement 
if it's not, and doesn't run into any double-encoding issues in any of 
the environments that we care about putting these values in. This isn't 
a useful kind of flexibility that I can see, especially if we don't have 
any way to signal what encoding is being used for a value. Do we want to 
do something like:

hash: {
   encoding: base64,
   value: AeyBEadf2....
}

to accommodate that structure? I hope not.

One of the biggest problems with allowing both Base64 and Base64URL is 
that in some cases they're exactly the same. This can lead you to 
getting lucky picking the wrong encoding but getting the right result 
one time, then having it blow up on you the second time. I've written 
that exact bug a few times.

And more to the point: why *not* use Base64URL everywhere for binary 
encoding? What *benefit* does it give you? I don't see any.

  -- Justin

On 09/04/2012 05:06 PM, Bob Wyman wrote:
> It seems to me that if the difference in the decoders is minimal, then 
> one should feel comfortable in requiring one rather than the other 
> since any benefit from providing individual developers choice is 
> likely to be minimal compared to the cost of added complexity for all 
> developers.
>
> bob wyman
>
> On Tue, Sep 4, 2012 at 4:45 PM, Mike Jones 
> <Michael.Jones@microsoft.com <mailto:Michael.Jones@microsoft.com>> wrote:
>
>     Having multiple ways to do something never helps improve interop
>
>     -----Original Message-----
>     From: jose-bounces@ietf.org <mailto:jose-bounces@ietf.org>
>     [mailto:jose-bounces@ietf.org <mailto:jose-bounces@ietf.org>] On
>     Behalf Of Jim Schaad
>     Sent: Tuesday, September 04, 2012 1:38 PM
>     To: jose@ietf.org <mailto:jose@ietf.org>
>     Subject: [jose] Use of Base64 encoding
>
>     <personal>
>
>     I was struck by the questions of which base64 encoder should be
>     used in the different documents that the working group employed
>     and I started going through the different locations in the
>     document to see where and how much it mattered if the base64 or
>     base64URL encoder was used.  This message represents my
>     conclusions and leads to some questions
>
>     1.  The simple dot encoding of the objects does require it as it
>     will possibly be sent as part of a URL 2.  If you are going to be
>     in a space constrained environment then you MIGHT want it as it
>     will shrink the result, however doing a solution that deals with
>     binary data more generally would be a better solution.
>     3.  Joe might have an argument that only doing things one way is
>     simpler, however that argument can apply in both directions
>
>     The rest of the time I don't think it matters which of the
>     encoding formats is used.  If you are looking at the SHA-1 hash of
>     a certificate, does it matter if you use base64 or base64URL, not
>     except for the minor size increase.  The padding characters
>     themselves are protected from the URL by the outside base64URL
>     encoding.
>
>     Except for the case of the dot encoding step, I think that the use
>     of base64 URL can be dropped from a MUST to a SHOULD with the
>     justifications being explained.  It was stated at the F2F that the
>     difference in the decoders is minimal so there is no reason not to
>     allow there and this would allow different people to make
>     different decisions on this issue.
>
>     Jim
>
>
>     _______________________________________________
>     jose mailing list
>     jose@ietf.org <mailto:jose@ietf.org>
>     https://www.ietf.org/mailman/listinfo/jose
>
>
>     _______________________________________________
>     jose mailing list
>     jose@ietf.org <mailto:jose@ietf.org>
>     https://www.ietf.org/mailman/listinfo/jose
>
>
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


--------------070807040508040305020103
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">+1 to Bob's argument.<br>
      <br>
      Just pick one and stick with it universally. I see no good reason
      to deviate from that. Below, are you suggesting that we pick
      normal base64 for one value but base64url for others? Or are you
      suggesting that we allow multiple kinds of encoding for these? If
      the latter, why wouldn't you also allow hex encoding, or base32,
      or any number of arbitrary binary encodings using the same
      argument as below. Base64URL is well established, available on
      basically every platform, trivial to implement if it's not, and
      doesn't run into any double-encoding issues in any of the
      environments that we care about putting these values in. This
      isn't a useful kind of flexibility that I can see, especially if
      we don't have any way to signal what encoding is being used for a
      value. Do we want to do something like:<br>
      <br>
      hash: {<br>
      &nbsp; encoding: base64,<br>
      &nbsp; value: AeyBEadf2....<br>
      }<br>
      <br>
      to accommodate that structure? I hope not.<br>
      <br>
      One of the biggest problems with allowing both Base64 and
      Base64URL is that in some cases they're exactly the same. This can
      lead you to getting lucky picking the wrong encoding but getting
      the right result one time, then having it blow up on you the
      second time. I've written that exact bug a few times. <br>
      <br>
      And more to the point: why *not* use Base64URL everywhere for
      binary encoding? What *benefit* does it give you? I don't see any.<br>
      <br>
      &nbsp;-- Justin<br>
      <br>
      On 09/04/2012 05:06 PM, Bob Wyman wrote:<br>
    </div>
    <blockquote
cite="mid:CAA1s49VC_Z8hyPKtNZBKN9feUk_-zxQnLDVZHmurOL2rpt_=hA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      It seems to me that if the difference in the decoders is minimal,
      then one should feel comfortable in requiring one rather than the
      other since any benefit from providing individual developers
      choice is likely to be minimal compared to the cost of added
      complexity for all developers.
      <div>
        <br>
        <div>bob wyman<br>
          <br>
          <div class="gmail_quote">On Tue, Sep 4, 2012 at 4:45 PM, Mike
            Jones <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:Michael.Jones@microsoft.com"
                target="_blank">Michael.Jones@microsoft.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Having
              multiple ways to do something never helps improve interop<br>
              <div class="HOEnZb">
                <div class="h5"><br>
                  -----Original Message-----<br>
                  From: <a moz-do-not-send="true"
                    href="mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</a>
                  [mailto:<a moz-do-not-send="true"
                    href="mailto:jose-bounces@ietf.org">jose-bounces@ietf.org</a>]
                  On Behalf Of Jim Schaad<br>
                  Sent: Tuesday, September 04, 2012 1:38 PM<br>
                  To: <a moz-do-not-send="true"
                    href="mailto:jose@ietf.org">jose@ietf.org</a><br>
                  Subject: [jose] Use of Base64 encoding<br>
                  <br>
                  &lt;personal&gt;<br>
                  <br>
                  I was struck by the questions of which base64 encoder
                  should be used in the different documents that the
                  working group employed and I started going through the
                  different locations in the document to see where and
                  how much it mattered if the base64 or base64URL
                  encoder was used. &nbsp;This message represents my
                  conclusions and leads to some questions<br>
                  <br>
                  1. &nbsp;The simple dot encoding of the objects does
                  require it as it will possibly be sent as part of a
                  URL 2. &nbsp;If you are going to be in a space constrained
                  environment then you MIGHT want it as it will shrink
                  the result, however doing a solution that deals with
                  binary data more generally would be a better solution.<br>
                  3. &nbsp;Joe might have an argument that only doing things
                  one way is simpler, however that argument can apply in
                  both directions<br>
                  <br>
                  The rest of the time I don't think it matters which of
                  the encoding formats is used. &nbsp;If you are looking at
                  the SHA-1 hash of a certificate, does it matter if you
                  use base64 or base64URL, not except for the minor size
                  increase. &nbsp;The padding characters themselves are
                  protected from the URL by the outside base64URL
                  encoding.<br>
                  <br>
                  Except for the case of the dot encoding step, I think
                  that the use of base64 URL can be dropped from a MUST
                  to a SHOULD with the justifications being explained.
                  &nbsp;It was stated at the F2F that the difference in the
                  decoders is minimal so there is no reason not to allow
                  there and this would allow different people to make
                  different decisions on this issue.<br>
                  <br>
                  Jim<br>
                  <br>
                  <br>
                  _______________________________________________<br>
                  jose mailing list<br>
                  <a moz-do-not-send="true" href="mailto:jose@ietf.org">jose@ietf.org</a><br>
                  <a moz-do-not-send="true"
                    href="https://www.ietf.org/mailman/listinfo/jose"
                    target="_blank">https://www.ietf.org/mailman/listinfo/jose</a><br>
                  <br>
                  <br>
                  _______________________________________________<br>
                  jose mailing list<br>
                  <a moz-do-not-send="true" href="mailto:jose@ietf.org">jose@ietf.org</a><br>
                  <a moz-do-not-send="true"
                    href="https://www.ietf.org/mailman/listinfo/jose"
                    target="_blank">https://www.ietf.org/mailman/listinfo/jose</a><br>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
jose mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jose@ietf.org">jose@ietf.org</a>
<a class="moz-txt-link-freetext" href="https://www.ietf.org/mailman/listinfo/jose">https://www.ietf.org/mailman/listinfo/jose</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------070807040508040305020103--

From Axel.Nennker@telekom.de  Fri Sep 14 05:57:28 2012
Return-Path: <Axel.Nennker@telekom.de>
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 70A2E21F8466 for <jose@ietfa.amsl.com>; Fri, 14 Sep 2012 05:57:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.249
X-Spam-Level: 
X-Spam-Status: No, score=-3.249 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_DE=0.35, 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 lcmEgSqUlBV3 for <jose@ietfa.amsl.com>; Fri, 14 Sep 2012 05:57:27 -0700 (PDT)
Received: from tcmail73.telekom.de (tcmail73.telekom.de [217.243.239.135]) by ietfa.amsl.com (Postfix) with ESMTP id 9570721F8462 for <jose@ietf.org>; Fri, 14 Sep 2012 05:57:26 -0700 (PDT)
Received: from he111527.emea1.cds.t-internal.com ([10.125.90.86]) by tcmail71.telekom.de with ESMTP/TLS/AES128-SHA; 14 Sep 2012 14:57:24 +0200
Received: from HE111541.emea1.cds.t-internal.com ([169.254.2.251]) by HE111527.EMEA1.CDS.T-INTERNAL.COM ([2002:7cd:5a56::7cd:5a56]) with mapi; Fri, 14 Sep 2012 14:57:24 +0200
From: <Axel.Nennker@telekom.de>
To: <jose@ietf.org>
Date: Fri, 14 Sep 2012 14:57:23 +0200
Thread-Topic: API question re
Thread-Index: Ac2SeAShZnBGMx7RSiucU8Dgzxa3bQ==
Message-ID: <CE8995AB5D178F44A2154F5C9A97CAF40251A797FDE6@HE111541.emea1.cds.t-internal.com>
Accept-Language: de-DE
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: de-DE
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: [jose] API question re
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: Fri, 14 Sep 2012 12:57:28 -0000

Hi,

Some algorithms used in JOSE allow random data to be used.
Examples are IVs and CMKs.

My question: in an API for JOSE should I always generate all values that ca=
n be random randomly or should e.g. the IV be a parameter and I trust the d=
eveloper using the API to provide secure and applicable values?

My current plan is to have a parameter "SecureRandom sr" in all public meth=
ods and generate all algorithm parameters randomly where that is possible.
So in an application server you can initialize the SecureRandom once and us=
e it in all requests.

Thanks

Axel=20

https://code.google.com/p/jsoncrypto/source/browse/trunk/src/org/jsoncrypto=
/JcBase.java


From Michael.Jones@microsoft.com  Fri Sep 14 15:41:14 2012
Return-Path: <Michael.Jones@microsoft.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 B4FC321F84F1 for <jose@ietfa.amsl.com>; Fri, 14 Sep 2012 15:41:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.099
X-Spam-Level: 
X-Spam-Status: No, score=-4.099 tagged_above=-999 required=5 tests=[AWL=-0.500, BAYES_00=-2.599, 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 xlKHlKq8rifS for <jose@ietfa.amsl.com>; Fri, 14 Sep 2012 15:41:14 -0700 (PDT)
Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe001.messaging.microsoft.com [216.32.180.11]) by ietfa.amsl.com (Postfix) with ESMTP id 55C3421F845B for <jose@ietf.org>; Fri, 14 Sep 2012 15:41:13 -0700 (PDT)
Received: from mail47-va3-R.bigfish.com (10.7.14.249) by VA3EHSOBE007.bigfish.com (10.7.40.11) with Microsoft SMTP Server id 14.1.225.23; Fri, 14 Sep 2012 22:41:12 +0000
Received: from mail47-va3 (localhost [127.0.0.1])	by mail47-va3-R.bigfish.com (Postfix) with ESMTP id 688282C0178; Fri, 14 Sep 2012 22:41:12 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC102.redmond.corp.microsoft.com; RD:none; EFVD:NLI
X-SpamScore: -25
X-BigFish: VS-25(zz9371I542Md6f1izz1202h1d1ah1d2ahzz1033IL8275bh8275dhz2fh2a8h668h839h944hd25hf0ah107ah1220h1288h12a5h12a9h12bdh1155h)
Received-SPF: pass (mail47-va3: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=Michael.Jones@microsoft.com; helo=TK5EX14HUBC102.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail47-va3 (localhost.localdomain [127.0.0.1]) by mail47-va3 (MessageSwitch) id 1347662470786197_28563; Fri, 14 Sep 2012 22:41:10 +0000 (UTC)
Received: from VA3EHSMHS033.bigfish.com (unknown [10.7.14.252])	by mail47-va3.bigfish.com (Postfix) with ESMTP id BAC5DA0045; Fri, 14 Sep 2012 22:41:10 +0000 (UTC)
Received: from TK5EX14HUBC102.redmond.corp.microsoft.com (131.107.125.8) by VA3EHSMHS033.bigfish.com (10.7.99.43) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 14 Sep 2012 22:41:10 +0000
Received: from TK5EX14MBXC284.redmond.corp.microsoft.com ([169.254.1.176]) by TK5EX14HUBC102.redmond.corp.microsoft.com ([157.54.7.154]) with mapi id 14.02.0318.003; Fri, 14 Sep 2012 22:41:06 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: "Axel.Nennker@telekom.de" <Axel.Nennker@telekom.de>, "jose@ietf.org" <jose@ietf.org>
Thread-Topic: API question re
Thread-Index: Ac2SeAShZnBGMx7RSiucU8Dgzxa3bQAUYcQA
Date: Fri, 14 Sep 2012 22:41:05 +0000
Message-ID: <4E1F6AAD24975D4BA5B1680429673943667C580D@TK5EX14MBXC284.redmond.corp.microsoft.com>
References: <CE8995AB5D178F44A2154F5C9A97CAF40251A797FDE6@HE111541.emea1.cds.t-internal.com>
In-Reply-To: <CE8995AB5D178F44A2154F5C9A97CAF40251A797FDE6@HE111541.emea1.cds.t-internal.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.71]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Subject: Re: [jose] API question re
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: Fri, 14 Sep 2012 22:41:14 -0000

JWE conveys an IV parameter but is silent on who generates the random IV va=
lue.  An API that allows the creator of an encrypted object to request that=
 a random IV be automatically generated by the library is probably fine.  S=
imilarly, letting the library generate the random CMK is probably also fine=
.

				-- Mike

-----Original Message-----
From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of Axe=
l.Nennker@telekom.de
Sent: Friday, September 14, 2012 5:57 AM
To: jose@ietf.org
Subject: [jose] API question re

Hi,

Some algorithms used in JOSE allow random data to be used.
Examples are IVs and CMKs.

My question: in an API for JOSE should I always generate all values that ca=
n be random randomly or should e.g. the IV be a parameter and I trust the d=
eveloper using the API to provide secure and applicable values?

My current plan is to have a parameter "SecureRandom sr" in all public meth=
ods and generate all algorithm parameters randomly where that is possible.
So in an application server you can initialize the SecureRandom once and us=
e it in all requests.

Thanks

Axel=20

https://code.google.com/p/jsoncrypto/source/browse/trunk/src/org/jsoncrypto=
/JcBase.java

_______________________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose



From Michael.Jones@microsoft.com  Mon Sep 17 12:28:48 2012
Return-Path: <Michael.Jones@microsoft.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 06FEF21F8516 for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 12:28:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.973
X-Spam-Level: 
X-Spam-Status: No, score=-3.973 tagged_above=-999 required=5 tests=[AWL=-0.375, BAYES_00=-2.599, HTML_MESSAGE=0.001, 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 k0broTUcyoPF for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 12:28:47 -0700 (PDT)
Received: from co1outboundpool.messaging.microsoft.com (co1ehsobe005.messaging.microsoft.com [216.32.180.188]) by ietfa.amsl.com (Postfix) with ESMTP id 72D7C21F8503 for <jose@ietf.org>; Mon, 17 Sep 2012 12:28:47 -0700 (PDT)
Received: from mail183-co1-R.bigfish.com (10.243.78.246) by CO1EHSOBE012.bigfish.com (10.243.66.75) with Microsoft SMTP Server id 14.1.225.23; Mon, 17 Sep 2012 19:28:46 +0000
Received: from mail183-co1 (localhost [127.0.0.1])	by mail183-co1-R.bigfish.com (Postfix) with ESMTP id C57F7C40193	for <jose@ietf.org>; Mon, 17 Sep 2012 19:28:46 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC105.redmond.corp.microsoft.com; RD:none; EFVD:NLI
X-SpamScore: 1
X-BigFish: VS1(zzc85fhd6f1izz1202h1d1ah1d2ahzz17326ah8275bh8275dhz2fh2a8h668h839hd25hf0ah107ah1288h12a5h12bdh1155h)
Received-SPF: pass (mail183-co1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=Michael.Jones@microsoft.com; helo=TK5EX14HUBC105.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail183-co1 (localhost.localdomain [127.0.0.1]) by mail183-co1 (MessageSwitch) id 1347910125737709_1553; Mon, 17 Sep 2012 19:28:45 +0000 (UTC)
Received: from CO1EHSMHS002.bigfish.com (unknown [10.243.78.248])	by mail183-co1.bigfish.com (Postfix) with ESMTP id B283A3A0044	for <jose@ietf.org>; Mon, 17 Sep 2012 19:28:45 +0000 (UTC)
Received: from TK5EX14HUBC105.redmond.corp.microsoft.com (131.107.125.8) by CO1EHSMHS002.bigfish.com (10.243.66.12) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 17 Sep 2012 19:28:42 +0000
Received: from TK5EX14MBXC284.redmond.corp.microsoft.com ([169.254.1.176]) by TK5EX14HUBC105.redmond.corp.microsoft.com ([157.54.80.48]) with mapi id 14.02.0318.003; Mon, 17 Sep 2012 19:28:36 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: "jose@ietf.org" <jose@ietf.org>
Thread-Topic: W3C WebCrypto API First Public Working Draft
Thread-Index: Ac2VCp+t7UQQRYYyTFGlEwFLBaOhiQ==
Date: Mon, 17 Sep 2012 19:28:35 +0000
Message-ID: <4E1F6AAD24975D4BA5B1680429673943667C8C36@TK5EX14MBXC284.redmond.corp.microsoft.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.71]
Content-Type: multipart/alternative; boundary="_000_4E1F6AAD24975D4BA5B1680429673943667C8C36TK5EX14MBXC284r_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Subject: [jose] W3C WebCrypto API First Public Working Draft
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: Mon, 17 Sep 2012 19:28:48 -0000

--_000_4E1F6AAD24975D4BA5B1680429673943667C8C36TK5EX14MBXC284r_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

As most of you know, the W3C WebCrypto working group is developing a WebIDL=
/JavaScript API for cryptography operations.  They have published their Fir=
st Public Working Draft at http://www.w3.org/TR/2012/WD-WebCryptoAPI-201209=
13/.  One of their use cases is being able to use the WebCrypto API to impl=
ement the JOSE specifications.

I encourage JOSE members to review the draft API specification.  Comments c=
an be sent to public-webcrypto-comments@w3.org<mailto:public-webcrypto-comm=
ents@w3.org>.

The latest public version of the specification can always be found at http:=
//www.w3.org/TR/WebCryptoAPI/.

                                                            -- Mike


--_000_4E1F6AAD24975D4BA5B1680429673943667C8C36TK5EX14MBXC284r_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">As most of you know, the W3C WebCrypto working group=
 is developing a WebIDL/JavaScript API for cryptography operations.&nbsp; T=
hey have published their First Public Working Draft at
<a href=3D"http://www.w3.org/TR/2012/WD-WebCryptoAPI-20120913/">http://www.=
w3.org/TR/2012/WD-WebCryptoAPI-20120913/</a>.&nbsp; One of their use cases =
is being able to use the WebCrypto API to implement the JOSE specifications=
.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I encourage JOSE members to review the draft API spe=
cification.&nbsp; Comments can be sent to
<a href=3D"mailto:public-webcrypto-comments@w3.org">public-webcrypto-commen=
ts@w3.org</a>.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">The latest public version of the specification can a=
lways be found at
<a href=3D"http://www.w3.org/TR/WebCryptoAPI/">http://www.w3.org/TR/WebCryp=
toAPI/</a>.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; -- Mike<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_4E1F6AAD24975D4BA5B1680429673943667C8C36TK5EX14MBXC284r_--

From dick.hardt@gmail.com  Mon Sep 17 13:09:48 2012
Return-Path: <dick.hardt@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 30FD621F8606 for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 13:09:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 xxcOtKVtwpXa for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 13:09:47 -0700 (PDT)
Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by ietfa.amsl.com (Postfix) with ESMTP id 36E4621F84F6 for <jose@ietf.org>; Mon, 17 Sep 2012 13:09:47 -0700 (PDT)
Received: by pbbrr4 with SMTP id rr4so9562163pbb.31 for <jose@ietf.org>; Mon, 17 Sep 2012 13:09:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=k5EwXRkiM85GTn1zbuYOKcfWxx4Q042ATz1rWtpNGmQ=; b=vMvw3fopRRSJhuGI3pbcOqZYlYY60MsePR+FAwaWGPoBX9b27llz2yaNb6K8KaRg5K xotn0DaWcPrfDEJxYJVnC3zpZ+7U1qocKp2LvZfc36u2NFFB9PN53gn8XcekWSmFR1Z2 HtXarRusF3tbH8Jghjp6c/m1z4vPI5JNcxrVWgMqT2bu+Vy27rCbaFqdeAvxGJisGZrf t7UD3T2Mao6BVOKjbaONYJucfpPuOKFdC3oo0FG9YtEtp8LRJuNAbBVLiWUzOR7oiXiV kmmXJbcJZB+aRJxjg6m6R0a/J6/YYS74iolQK7jvsTRQxqHHP0o66i3e1MYW8ourlK2Z FOkg==
Received: by 10.68.192.7 with SMTP id hc7mr24313634pbc.6.1347912586869; Mon, 17 Sep 2012 13:09:46 -0700 (PDT)
Received: from [10.0.0.4] (c-24-5-69-173.hsd1.ca.comcast.net. [24.5.69.173]) by mx.google.com with ESMTPS id qn3sm7455114pbc.6.2012.09.17.13.09.36 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Sep 2012 13:09:43 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=us-ascii
From: Dick Hardt <dick.hardt@gmail.com>
In-Reply-To: <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com>
Date: Mon, 17 Sep 2012 13:09:34 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <AE2182E3-232D-4000-B3B4-07AEDD4AE44D@gmail.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com>
To: Mike Jones <Michael.Jones@microsoft.com>
X-Mailer: Apple Mail (2.1278)
Cc: Jim Schaad <ietf@augustcellars.com>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Use of Base64 encoding
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: Mon, 17 Sep 2012 20:09:48 -0000

My recollection of the reasons for URL safe base64 encoding 3 years ago =
was to minimize implementation and deployment errors when objects are =
including as parameters in URLs. Several implementors of other encodings =
had nightmare debug sessions that were caused by URL encoding / decoding =
issues.

Is there any reason to NOT use URL safe base64 encoding?=20

On Sep 4, 2012, at 1:45 PM, Mike Jones wrote:

> Having multiple ways to do something never helps improve interop
>=20
> -----Original Message-----
> From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf =
Of Jim Schaad
> Sent: Tuesday, September 04, 2012 1:38 PM
> To: jose@ietf.org
> Subject: [jose] Use of Base64 encoding
>=20
> <personal>
>=20
> I was struck by the questions of which base64 encoder should be used =
in the different documents that the working group employed and I started =
going through the different locations in the document to see where and =
how much it mattered if the base64 or base64URL encoder was used.  This =
message represents my conclusions and leads to some questions
>=20
> 1.  The simple dot encoding of the objects does require it as it will =
possibly be sent as part of a URL 2.  If you are going to be in a space =
constrained environment then you MIGHT want it as it will shrink the =
result, however doing a solution that deals with binary data more =
generally would be a better solution.
> 3.  Joe might have an argument that only doing things one way is =
simpler, however that argument can apply in both directions
>=20
> The rest of the time I don't think it matters which of the encoding =
formats is used.  If you are looking at the SHA-1 hash of a certificate, =
does it matter if you use base64 or base64URL, not except for the minor =
size increase.  The padding characters themselves are protected from the =
URL by the outside base64URL encoding.
>=20
> Except for the case of the dot encoding step, I think that the use of =
base64 URL can be dropped from a MUST to a SHOULD with the =
justifications being explained.  It was stated at the F2F that the =
difference in the decoders is minimal so there is no reason not to allow =
there and this would allow different people to make different decisions =
on this issue.
>=20
> Jim
>=20
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>=20
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


From cabo@tzi.org  Mon Sep 17 15:11:38 2012
Return-Path: <cabo@tzi.org>
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 E5F3F21F86A7 for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 15:11:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.249
X-Spam-Level: 
X-Spam-Status: No, score=-106.249 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 bAmn7iJkvroe for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 15:11:38 -0700 (PDT)
Received: from informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) by ietfa.amsl.com (Postfix) with ESMTP id 2ED1E21F86A1 for <jose@ietf.org>; Mon, 17 Sep 2012 15:11:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.3/8.14.3) with ESMTP id q8HMB5MK002675; Tue, 18 Sep 2012 00:11:05 +0200 (CEST)
Received: from [192.168.217.105] (p548921FB.dip.t-dialin.net [84.137.33.251]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id 002FD923; Tue, 18 Sep 2012 00:11:04 +0200 (CEST)
Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\))
Content-Type: text/plain; charset=iso-8859-1
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <AE2182E3-232D-4000-B3B4-07AEDD4AE44D@gmail.com>
Date: Tue, 18 Sep 2012 00:11:04 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <D25DB11C-CC8E-4C8C-8208-884A3E98DD05@tzi.org>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com> <AE2182E3-232D-4000-B3B4-07AEDD4AE44D@gmail.com>
To: Dick Hardt <dick.hardt@gmail.com>
X-Mailer: Apple Mail (2.1486)
Cc: Mike Jones <Michael.Jones@microsoft.com>, Jim Schaad <ietf@augustcellars.com>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Use of Base64 encoding
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: Mon, 17 Sep 2012 22:11:39 -0000

On Sep 17, 2012, at 22:09, Dick Hardt <dick.hardt@gmail.com> wrote:

> Is there any reason to NOT use URL safe base64 encoding?

No.

I think Jim's arguments are very confused about the reasons for =
providing choice in a protocol.
Choice is fundamentally bad for interoperability.  Always.
However, you do provide choice when there is something you win from this =
choice.
(E.g., crypto agility is demonstrably necessary.)
If you can't demonstrate such a win, you eliminate choice as much as =
possible.

Since there is zero advantage for base64 over base64url, this is a =
no-brainer: nail it down.

For those that would like another example for this: In the IETF, we =
chose network byte order.  Once.  For everything.
Other protocols have a hodgepodge, or, worse, actively negotiate byte =
order. =20
(There are some theoretical advantages for doing this between two =
systems that are one of the other byte orders.
In reality, it means you have to provide two code paths and neither is =
optimized as well as it could be if the choice had been nailed down.
And you get a nice helping of unexpected interop failures on top.)

Again: nail it down.  Once.  For everything in this protocol.

Gr=FC=DFe, Carsten


From breno@google.com  Mon Sep 17 15:17:26 2012
Return-Path: <breno@google.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 4847421E8089 for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 15:17:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.976
X-Spam-Level: 
X-Spam-Status: No, score=-102.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
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 yyRg1hgChi8X for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 15:17:25 -0700 (PDT)
Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) by ietfa.amsl.com (Postfix) with ESMTP id 924C521F8716 for <jose@ietf.org>; Mon, 17 Sep 2012 15:17:25 -0700 (PDT)
Received: by obbwc20 with SMTP id wc20so10676098obb.31 for <jose@ietf.org>; Mon, 17 Sep 2012 15:17:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-system-of-record; bh=6zHzi8xM2i+9ileViGK+jYIUBu1RGj2CQ97HVjiSMHs=; b=IOxifTXRlLj8ATnVlYyCqcGa7fNdGYezy91AwlC3nwW/l1aYGsd1bnR6RRuQDJkf/s NltiWCPBlRz2qKMIzvXJRShwnJ9UVsuzXSVriA47/SgG5yh7C5z4zaQVjavXlWut/w+6 kRFfq2YNdjC97htjrXlKhYcYw3OyQZqCOCU76K1jm9IYTJwGC7rafw507/Cgya+uNDnf MD8FIKi4Ps2PFTQbfqGNNtVLlaX17b6hILEJdiXu+l2OK5onBdSkrCnfNDSF3j+bu8sX ESL94PnD8lPJk101NMMxjv58y3Y7HzZ3Xynk5Pe9R9v7P4Rbnd9JqVb2OA14QJaouFoz JS0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-system-of-record:x-gm-message-state; bh=6zHzi8xM2i+9ileViGK+jYIUBu1RGj2CQ97HVjiSMHs=; b=cTfTXqRrleIR1CkdZXCyfi2AmucEqcm1M8iDYQH6d7hwrvYSaWOboTT/2ehqLM2StF WWc/g/07oxfNxygPGQeLdGzEzRud49fBYlEgwALBLSZfvUyeNFilG1WbITT+rV4v1zmp hYyrCNWqKcPDqcwbsJWUNNmjccwFnjmvWZrYu4ed6uuA/IJwe/zDK2XZFIyRFoGRXLDL EX2laDeHnFqMU7HGw187c8saKEo+Fmxc5p2bWcHEogVhuEi46vJMEwo4V8sx8crMUlI7 Z2yQv+TPSd/bnCQD6mb3epl5HVu1nq4SCC82iyIaSdVF9hrkUq5dipuuQpeHCABuFv+B tpdA==
Received: by 10.60.169.110 with SMTP id ad14mr13314753oec.34.1347920245209; Mon, 17 Sep 2012 15:17:25 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.169.110 with SMTP id ad14mr13314743oec.34.1347920245089; Mon, 17 Sep 2012 15:17:25 -0700 (PDT)
Received: by 10.182.68.202 with HTTP; Mon, 17 Sep 2012 15:17:24 -0700 (PDT)
In-Reply-To: <D25DB11C-CC8E-4C8C-8208-884A3E98DD05@tzi.org>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com> <AE2182E3-232D-4000-B3B4-07AEDD4AE44D@gmail.com> <D25DB11C-CC8E-4C8C-8208-884A3E98DD05@tzi.org>
Date: Mon, 17 Sep 2012 15:17:24 -0700
Message-ID: <CAAJ++qEjaJxrHPG+wRiPFqNz3BUaUuoci3x=ymCRTOabD=VmdQ@mail.gmail.com>
From: Breno de Medeiros <breno@google.com>
To: Carsten Bormann <cabo@tzi.org>
Content-Type: multipart/alternative; boundary=bcaec54ee06a64e68b04c9ed2339
X-System-Of-Record: true
X-Gm-Message-State: ALoCoQlV2XGWuZu7rKaUCRO/sTOZk4HFEiUdbR4s/13RKiaybYMf3s6QomKBdJt5AaEHK0n6HJLd7HQyjyLF6Ms/zTrpXDRcAl8CLt334sSATGEGygqnChfWdCaQ4vahISZtdJVw7BjWPm3iiaJygr5AOckncd0RdhkuMCtfpB3ODniUIB3YMlp/3vntaoxEco2btVDW620G
Cc: Mike Jones <Michael.Jones@microsoft.com>, Jim Schaad <ietf@augustcellars.com>, "jose@ietf.org" <jose@ietf.org>, Dick Hardt <dick.hardt@gmail.com>
Subject: Re: [jose] Use of Base64 encoding
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: Mon, 17 Sep 2012 22:17:26 -0000

--bcaec54ee06a64e68b04c9ed2339
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Mon, Sep 17, 2012 at 3:11 PM, Carsten Bormann <cabo@tzi.org> wrote:

> On Sep 17, 2012, at 22:09, Dick Hardt <dick.hardt@gmail.com> wrote:
>
> > Is there any reason to NOT use URL safe base64 encoding?
>
> No.
>
> I think Jim's arguments are very confused about the reasons for providing
> choice in a protocol.
> Choice is fundamentally bad for interoperability.  Always.
> However, you do provide choice when there is something you win from this
> choice.
> (E.g., crypto agility is demonstrably necessary.)
> If you can't demonstrate such a win, you eliminate choice as much as
> possible.
>
> Since there is zero advantage for base64 over base64url, this is a
> no-brainer: nail it down.
>
> For those that would like another example for this: In the IETF, we chose
> network byte order.  Once.  For everything.
> Other protocols have a hodgepodge, or, worse, actively negotiate byte
> order.
> (There are some theoretical advantages for doing this between two systems
> that are one of the other byte orders.
> In reality, it means you have to provide two code paths and neither is
> optimized as well as it could be if the choice had been nailed down.
> And you get a nice helping of unexpected interop failures on top.)
>
> Again: nail it down.  Once.  For everything in this protocol.
>

Well said. Agree with everything in the argument above.


>
> Gr=FC=DFe, Carsten
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>



--=20
--Breno

--bcaec54ee06a64e68b04c9ed2339
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Mon, S=
ep 17, 2012 at 3:11 PM, Carsten Bormann <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:cabo@tzi.org" target=3D"_blank">cabo@tzi.org</a>&gt;</span> wrote:<br>=
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<div class=3D"im">On Sep 17, 2012, at 22:09, Dick Hardt &lt;<a href=3D"mail=
to:dick.hardt@gmail.com">dick.hardt@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Is there any reason to NOT use URL safe base64 encoding?<br>
<br>
</div>No.<br>
<br>
I think Jim&#39;s arguments are very confused about the reasons for providi=
ng choice in a protocol.<br>
Choice is fundamentally bad for interoperability. =A0Always.<br>
However, you do provide choice when there is something you win from this ch=
oice.<br>
(E.g., crypto agility is demonstrably necessary.)<br>
If you can&#39;t demonstrate such a win, you eliminate choice as much as po=
ssible.<br>
<br>
Since there is zero advantage for base64 over base64url, this is a no-brain=
er: nail it down.<br>
<br>
For those that would like another example for this: In the IETF, we chose n=
etwork byte order. =A0Once. =A0For everything.<br>
Other protocols have a hodgepodge, or, worse, actively negotiate byte order=
.<br>
(There are some theoretical advantages for doing this between two systems t=
hat are one of the other byte orders.<br>
In reality, it means you have to provide two code paths and neither is opti=
mized as well as it could be if the choice had been nailed down.<br>
And you get a nice helping of unexpected interop failures on top.)<br>
<br>
Again: nail it down. =A0Once. =A0For everything in this protocol.<br></bloc=
kquote><div><br></div><div>Well said. Agree with everything in the argument=
 above.</div><div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Gr=FC=DFe, Carsten<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
--Breno<br><br>
</div>

--bcaec54ee06a64e68b04c9ed2339--

From ve7jtb@ve7jtb.com  Mon Sep 17 15:25:41 2012
Return-Path: <ve7jtb@ve7jtb.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 9CD5921E808C for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 15:25:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.411
X-Spam-Level: 
X-Spam-Status: No, score=-3.411 tagged_above=-999 required=5 tests=[AWL=0.188,  BAYES_00=-2.599, 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 KpYjNVeeRSlE for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 15:25:41 -0700 (PDT)
Received: from mail-qa0-f51.google.com (mail-qa0-f51.google.com [209.85.216.51]) by ietfa.amsl.com (Postfix) with ESMTP id D111821E808E for <jose@ietf.org>; Mon, 17 Sep 2012 15:25:40 -0700 (PDT)
Received: by qadz3 with SMTP id z3so2012877qad.10 for <jose@ietf.org>; Mon, 17 Sep 2012 15:25:40 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=4DPjpoL5A2H+BeGYPsZyXsNkGh/bAhHrv7Rium9mrgY=; b=WVsUcfL/Dxu4K8tJ1qChLAqMFKP9kJCQjK5OMp+Wb0ajM/J2qu+j+/eGYkLu7gX8v3 Cpeic9vKiISfIV+AKrr6Ha9EO/Pqeu2saDTsJT7H14ADP0qvrw2+cUD8A4fpdGFs0XxI WHgYtc7jpOVn64H6jSYJ9ngsMwWl+eWI3QP50xeKAZfHPu8LNIgj9O012K4qez6k3sPw p5tDoDPFGMtQ/gBRUhLl5PIR+K6FbHjTG4gIRKlQkJEm0B1tkaageMxTK10ki0jGMfVO sqKzf5+R9qCvXc74hcDFssiNpFXWm3K92J0JfoZuUiTShwDm1yqB215LcdjtSl6jFKQT r4Ag==
Received: by 10.229.135.7 with SMTP id l7mr966935qct.110.1347920739823; Mon, 17 Sep 2012 15:25:39 -0700 (PDT)
Received: from [192.168.1.211] (190-20-12-236.baf.movistar.cl. [190.20.12.236]) by mx.google.com with ESMTPS id f4sm2813863qan.7.2012.09.17.15.25.25 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Sep 2012 15:25:38 -0700 (PDT)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\))
From: John Bradley <ve7jtb@ve7jtb.com>
In-Reply-To: <D25DB11C-CC8E-4C8C-8208-884A3E98DD05@tzi.org>
Date: Mon, 17 Sep 2012 19:25:12 -0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <EB131A7C-5976-4BEA-A612-069655FA6B22@ve7jtb.com>
References: <01eb01cd8add$30ea9d60$92bfd820$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943667B5443@TK5EX14MBXC284.redmond.corp.microsoft.com> <AE2182E3-232D-4000-B3B4-07AEDD4AE44D@gmail.com> <D25DB11C-CC8E-4C8C-8208-884A3E98DD05@tzi.org>
To: Carsten Bormann <cabo@tzi.org>
X-Mailer: Apple Mail (2.1486)
X-Gm-Message-State: ALoCoQntaZQ4SDL2Vm9khMk8jMHY0B5M7KbHMcHyGNEkdwy+R7i7m7cwPWzTkpqQ/XB6V1l+Sj5L
Cc: Mike Jones <Michael.Jones@microsoft.com>, Jim Schaad <ietf@augustcellars.com>, "jose@ietf.org" <jose@ietf.org>, Dick Hardt <dick.hardt@gmail.com>
Subject: Re: [jose] Use of Base64 encoding
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: Mon, 17 Sep 2012 22:25:41 -0000

agree base64url

On 2012-09-17, at 7:11 PM, Carsten Bormann <cabo@tzi.org> wrote:

> On Sep 17, 2012, at 22:09, Dick Hardt <dick.hardt@gmail.com> wrote:
>=20
>> Is there any reason to NOT use URL safe base64 encoding?
>=20
> No.
>=20
> I think Jim's arguments are very confused about the reasons for =
providing choice in a protocol.
> Choice is fundamentally bad for interoperability.  Always.
> However, you do provide choice when there is something you win from =
this choice.
> (E.g., crypto agility is demonstrably necessary.)
> If you can't demonstrate such a win, you eliminate choice as much as =
possible.
>=20
> Since there is zero advantage for base64 over base64url, this is a =
no-brainer: nail it down.
>=20
> For those that would like another example for this: In the IETF, we =
chose network byte order.  Once.  For everything.
> Other protocols have a hodgepodge, or, worse, actively negotiate byte =
order. =20
> (There are some theoretical advantages for doing this between two =
systems that are one of the other byte orders.
> In reality, it means you have to provide two code paths and neither is =
optimized as well as it could be if the choice had been nailed down.
> And you get a nice helping of unexpected interop failures on top.)
>=20
> Again: nail it down.  Once.  For everything in this protocol.
>=20
> Gr=FC=DFe, Carsten
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


From vladimir@nimbusds.com  Mon Sep 17 23:58:45 2012
Return-Path: <vladimir@nimbusds.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 1C66021E80AD for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 23:58:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level: 
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[BAYES_50=0.001]
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 Mbg6wiTfBzKP for <jose@ietfa.amsl.com>; Mon, 17 Sep 2012 23:58:44 -0700 (PDT)
Received: from n1plwbeout07-02.prod.ams1.secureserver.net (n1plsmtp07-02-02.prod.ams1.secureserver.net [188.121.52.107]) by ietfa.amsl.com (Postfix) with SMTP id 0FC3421E8064 for <jose@ietf.org>; Mon, 17 Sep 2012 23:58:43 -0700 (PDT)
Received: (qmail 25713 invoked from network); 18 Sep 2012 06:58:42 -0000
Received: from unknown (HELO localhost) (188.121.52.246) by n1plwbeout07-02.prod.ams1.secureserver.net with SMTP; 18 Sep 2012 06:58:41 -0000
Received: (qmail 1805 invoked by uid 99); 18 Sep 2012 06:58:41 -0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
X-Originating-IP: 79.100.137.159
User-Agent: Workspace Webmail 5.6.25
Message-Id: <20120917235840.cc40c4f3d92d2001859047cd8cabb9ab.72e85d64c5.wbe@email07.europe.secureserver.net>
From: "Vladimir Dzhuvinov / NimbusDS" <vladimir@nimbusds.com>
To: jose@ietf.org
Date: Mon, 17 Sep 2012 23:58:40 -0700
Mime-Version: 1.0
Subject: [jose] JWK kid spec
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: Tue, 18 Sep 2012 06:58:45 -0000

Hi guys,=0A=0AI'm currently updating the Nimbus-JWT library to the new spec=
 set and=0Abeen going through the recent revisions.=0A=0ARegarding JWK-05, =
section 4.3 on "kid".=0A=0A***=0AThe "kid" (key ID) member can be used to m=
atch a specific key.  This=0Acan be used, for instance, to choose among a s=
et of keys within the=0AJWK during key rollover.=0A***=0A=0AWouldn't be mor=
e correct to say =0A=0A***=0AThe "kid" (key ID) member can be used to match=
 a specific key.  This=0Acan be used, for instance, to choose a key within =
a JWK Set during =0Akey rollover.=0A***=0A=0AI suppose this is a remainder =
from when JWK used to refer to the whole=0Aset.=0A=0A=0ACheers,=0A=0AVladim=
ir=0A=0A--=0AVladimir Dzhuvinov : www.NimbusDS.com : vladimir@nimbusds.com=


From vladimir@nimbusds.com  Tue Sep 18 00:13:56 2012
Return-Path: <vladimir@nimbusds.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 DB1F321F8471 for <jose@ietfa.amsl.com>; Tue, 18 Sep 2012 00:13:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.223
X-Spam-Level: 
X-Spam-Status: No, score=-1.223 tagged_above=-999 required=5 tests=[AWL=1.224,  BAYES_00=-2.599, SARE_SUB_ENC_UTF8=0.152]
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 yduL47pL4Wu0 for <jose@ietfa.amsl.com>; Tue, 18 Sep 2012 00:13:56 -0700 (PDT)
Received: from n1plwbeout07-01.prod.ams1.secureserver.net (n1plsmtp07-01-02.prod.ams1.secureserver.net [188.121.52.106]) by ietfa.amsl.com (Postfix) with SMTP id 3FF7421F846F for <jose@ietf.org>; Tue, 18 Sep 2012 00:13:54 -0700 (PDT)
Received: (qmail 5897 invoked from network); 18 Sep 2012 07:13:53 -0000
Received: from unknown (HELO localhost) (188.121.52.245) by n1plwbeout07-01.prod.ams1.secureserver.net with SMTP; 18 Sep 2012 07:13:53 -0000
Received: (qmail 15285 invoked by uid 99); 18 Sep 2012 07:13:53 -0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
X-Originating-IP: 79.100.137.159
User-Agent: Workspace Webmail 5.6.25
Message-Id: <20120918001352.cc40c4f3d92d2001859047cd8cabb9ab.d6684ee532.wbe@email07.europe.secureserver.net>
From: "Vladimir Dzhuvinov / NimbusDS" <vladimir@nimbusds.com>
To: jose@ietf.org
Date: Tue, 18 Sep 2012 00:13:52 -0700
Mime-Version: 1.0
Subject: [jose] =?utf-8?q?JWK_alg_parameter_-_required_or_not=3F?=
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: Tue, 18 Sep 2012 07:13:57 -0000

I have another note on JWK -05, section 4.1 on "alg":=0A=0AI couldn't find =
a clear statement whether "alg" is required or optional,=0Athough I was lef=
t with the impression that it's supposed to the=0Arequired. It could help p=
erhaps to be more explicit on that.=0A=0A=0ACheers,=0A=0AVladimir=0A--=0AVl=
adimir Dzhuvinov : www.NimbusDS.com : vladimir@nimbusds.com

From Michael.Jones@microsoft.com  Tue Sep 18 09:02:46 2012
Return-Path: <Michael.Jones@microsoft.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 71C4C21F84D8 for <jose@ietfa.amsl.com>; Tue, 18 Sep 2012 09:02:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.899
X-Spam-Level: 
X-Spam-Status: No, score=-3.899 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, 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 7lT9YGxmk7SM for <jose@ietfa.amsl.com>; Tue, 18 Sep 2012 09:02:45 -0700 (PDT)
Received: from am1outboundpool.messaging.microsoft.com (am1ehsobe006.messaging.microsoft.com [213.199.154.209]) by ietfa.amsl.com (Postfix) with ESMTP id 091AF21F84AF for <jose@ietf.org>; Tue, 18 Sep 2012 09:02:44 -0700 (PDT)
Received: from mail12-am1-R.bigfish.com (10.3.201.245) by AM1EHSOBE001.bigfish.com (10.3.204.21) with Microsoft SMTP Server id 14.1.225.23; Tue, 18 Sep 2012 16:02:43 +0000
Received: from mail12-am1 (localhost [127.0.0.1])	by mail12-am1-R.bigfish.com (Postfix) with ESMTP id C2F20460143; Tue, 18 Sep 2012 16:02:43 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC107.redmond.corp.microsoft.com; RD:none; EFVD:NLI
X-SpamScore: -26
X-BigFish: VS-26(zz9371I542Mzz1202h1d1ah1d2ahzz1033IL8275bh8275dhz2fh2a8h668h839h944hd25hf0ah107ah1220h1288h12a5h12a9h12bdh1155h)
Received-SPF: pass (mail12-am1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=Michael.Jones@microsoft.com; helo=TK5EX14HUBC107.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail12-am1 (localhost.localdomain [127.0.0.1]) by mail12-am1 (MessageSwitch) id 1347984161629936_16570; Tue, 18 Sep 2012 16:02:41 +0000 (UTC)
Received: from AM1EHSMHS006.bigfish.com (unknown [10.3.201.248])	by mail12-am1.bigfish.com (Postfix) with ESMTP id 91AD7220126; Tue, 18 Sep 2012 16:02:41 +0000 (UTC)
Received: from TK5EX14HUBC107.redmond.corp.microsoft.com (131.107.125.8) by AM1EHSMHS006.bigfish.com (10.3.207.106) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 18 Sep 2012 16:02:39 +0000
Received: from TK5EX14MBXC284.redmond.corp.microsoft.com ([169.254.1.176]) by TK5EX14HUBC107.redmond.corp.microsoft.com ([157.54.80.67]) with mapi id 14.02.0318.003; Tue, 18 Sep 2012 16:02:36 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Vladimir Dzhuvinov / NimbusDS <vladimir@nimbusds.com>, "jose@ietf.org" <jose@ietf.org>
Thread-Topic: [jose] JWK kid spec
Thread-Index: AQHNlWsOralD1L1bhUa7Mn9xS+OUVpeQQwxA
Date: Tue, 18 Sep 2012 16:02:35 +0000
Message-ID: <4E1F6AAD24975D4BA5B1680429673943667CA760@TK5EX14MBXC284.redmond.corp.microsoft.com>
References: <20120917235840.cc40c4f3d92d2001859047cd8cabb9ab.72e85d64c5.wbe@email07.europe.secureserver.net>
In-Reply-To: <20120917235840.cc40c4f3d92d2001859047cd8cabb9ab.72e85d64c5.wbe@email07.europe.secureserver.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.36]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Subject: Re: [jose] JWK kid spec
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: Tue, 18 Sep 2012 16:02:47 -0000

Yes - thanks.  I'll update the language as you suggest in the current round=
 of edits.

				-- Mike

-----Original Message-----
From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of Vla=
dimir Dzhuvinov / NimbusDS
Sent: Monday, September 17, 2012 11:59 PM
To: jose@ietf.org
Subject: [jose] JWK kid spec

Hi guys,

I'm currently updating the Nimbus-JWT library to the new spec set and been =
going through the recent revisions.

Regarding JWK-05, section 4.3 on "kid".

***
The "kid" (key ID) member can be used to match a specific key.  This can be=
 used, for instance, to choose among a set of keys within the JWK during ke=
y rollover.
***

Wouldn't be more correct to say=20

***
The "kid" (key ID) member can be used to match a specific key.  This can be=
 used, for instance, to choose a key within a JWK Set during key rollover.
***

I suppose this is a remainder from when JWK used to refer to the whole set.


Cheers,

Vladimir

--
Vladimir Dzhuvinov : www.NimbusDS.com : vladimir@nimbusds.com _____________=
__________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose



From Michael.Jones@microsoft.com  Tue Sep 18 09:09:13 2012
Return-Path: <Michael.Jones@microsoft.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 0F35A21F873B for <jose@ietfa.amsl.com>; Tue, 18 Sep 2012 09:09:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.849
X-Spam-Level: 
X-Spam-Status: No, score=-3.849 tagged_above=-999 required=5 tests=[AWL=-0.250, BAYES_00=-2.599, 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 65KYmaW2Oxvm for <jose@ietfa.amsl.com>; Tue, 18 Sep 2012 09:09:12 -0700 (PDT)
Received: from co1outboundpool.messaging.microsoft.com (co1ehsobe001.messaging.microsoft.com [216.32.180.184]) by ietfa.amsl.com (Postfix) with ESMTP id 4149F21F873A for <jose@ietf.org>; Tue, 18 Sep 2012 09:09:12 -0700 (PDT)
Received: from mail127-co1-R.bigfish.com (10.243.78.231) by CO1EHSOBE002.bigfish.com (10.243.66.65) with Microsoft SMTP Server id 14.1.225.23; Tue, 18 Sep 2012 16:09:10 +0000
Received: from mail127-co1 (localhost [127.0.0.1])	by mail127-co1-R.bigfish.com (Postfix) with ESMTP id C7362A800E1; Tue, 18 Sep 2012 16:09:10 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC105.redmond.corp.microsoft.com; RD:none; EFVD:NLI
X-SpamScore: -27
X-BigFish: VS-27(zz9371I542M111aIzz1202h1d1ah1d2ahzz1033IL8275bh8275dhz2fh2a8h668h839h944hd25hf0ah107ah1220h1288h12a5h12a9h12bdh1155h)
Received-SPF: pass (mail127-co1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=Michael.Jones@microsoft.com; helo=TK5EX14HUBC105.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail127-co1 (localhost.localdomain [127.0.0.1]) by mail127-co1 (MessageSwitch) id 1347984548781307_5941; Tue, 18 Sep 2012 16:09:08 +0000 (UTC)
Received: from CO1EHSMHS001.bigfish.com (unknown [10.243.78.229])	by mail127-co1.bigfish.com (Postfix) with ESMTP id BA5DA980047; Tue, 18 Sep 2012 16:09:08 +0000 (UTC)
Received: from TK5EX14HUBC105.redmond.corp.microsoft.com (131.107.125.8) by CO1EHSMHS001.bigfish.com (10.243.66.11) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 18 Sep 2012 16:09:08 +0000
Received: from TK5EX14MBXC284.redmond.corp.microsoft.com ([169.254.1.176]) by TK5EX14HUBC105.redmond.corp.microsoft.com ([157.54.80.48]) with mapi id 14.02.0318.003; Tue, 18 Sep 2012 16:08:58 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Vladimir Dzhuvinov / NimbusDS <vladimir@nimbusds.com>, "jose@ietf.org" <jose@ietf.org>
Thread-Topic: [jose] JWK alg parameter - required or not?
Thread-Index: AQHNlW0uCg4+n2ztlUqdie+mJ15OepeQRNUw
Date: Tue, 18 Sep 2012 16:08:57 +0000
Message-ID: <4E1F6AAD24975D4BA5B1680429673943667CA781@TK5EX14MBXC284.redmond.corp.microsoft.com>
References: <20120918001352.cc40c4f3d92d2001859047cd8cabb9ab.d6684ee532.wbe@email07.europe.secureserver.net>
In-Reply-To: <20120918001352.cc40c4f3d92d2001859047cd8cabb9ab.d6684ee532.wbe@email07.europe.secureserver.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.36]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Subject: Re: [jose] JWK alg parameter - required or not?
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: Tue, 18 Sep 2012 16:09:13 -0000

I'll clarify that this parameter is required.

				Thanks again!
				-- Mike

-----Original Message-----
From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of Vla=
dimir Dzhuvinov / NimbusDS
Sent: Tuesday, September 18, 2012 12:14 AM
To: jose@ietf.org
Subject: [jose] JWK alg parameter - required or not?

I have another note on JWK -05, section 4.1 on "alg":

I couldn't find a clear statement whether "alg" is required or optional, th=
ough I was left with the impression that it's supposed to the required. It =
could help perhaps to be more explicit on that.


Cheers,

Vladimir
--
Vladimir Dzhuvinov : www.NimbusDS.com : vladimir@nimbusds.com _____________=
__________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose



From James.H.Manger@team.telstra.com  Tue Sep 18 23:42:33 2012
Return-Path: <James.H.Manger@team.telstra.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 3BCD921F8503 for <jose@ietfa.amsl.com>; Tue, 18 Sep 2012 23:42:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.9
X-Spam-Level: 
X-Spam-Status: No, score=-0.9 tagged_above=-999 required=5 tests=[AWL=-0.000,  BAYES_00=-2.599, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, HTML_MESSAGE=0.001, RELAY_IS_203=0.994]
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 l-VvUYrUgLCu for <jose@ietfa.amsl.com>; Tue, 18 Sep 2012 23:42:32 -0700 (PDT)
Received: from ipxavo.tcif.telstra.com.au (ipxavo.tcif.telstra.com.au [203.35.135.200]) by ietfa.amsl.com (Postfix) with ESMTP id 7672021F8467 for <jose@ietf.org>; Tue, 18 Sep 2012 23:42:30 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.80,447,1344175200"; d="scan'208,217";a="93471810"
Received: from unknown (HELO ipcdvi.tcif.telstra.com.au) ([10.97.217.212]) by ipoavi.tcif.telstra.com.au with ESMTP; 19 Sep 2012 16:42:26 +1000
X-IronPort-AV: E=McAfee;i="5400,1158,6839"; a="89375701"
Received: from wsmsg3704.srv.dir.telstra.com ([172.49.40.197]) by ipcdvi.tcif.telstra.com.au with ESMTP; 19 Sep 2012 16:42:25 +1000
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by WSMSG3704.srv.dir.telstra.com ([172.49.40.197]) with mapi; Wed, 19 Sep 2012 16:42:25 +1000
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: "jose@ietf.org" <jose@ietf.org>
Date: Wed, 19 Sep 2012 16:42:25 +1000
Thread-Topic: "kid":"Current" is broken
Thread-Index: Ac2WMe3CGGmspP2+RLuU4o51x59l/A==
Message-ID: <255B9BB34FB7D647A506DC292726F6E114FD231114@WSMSG3153V.srv.dir.telstra.com>
Accept-Language: en-US, en-AU
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-AU
Content-Type: multipart/alternative; boundary="_000_255B9BB34FB7D647A506DC292726F6E114FD231114WSMSG3153Vsrv_"
MIME-Version: 1.0
Subject: [jose] "kid":"Current" is broken
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 Sep 2012 06:42:33 -0000

--_000_255B9BB34FB7D647A506DC292726F6E114FD231114WSMSG3153Vsrv_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

SSBoYWRu4oCZdCBub3RpY2VkIGJlZm9yZSB0aGF0IHRoZSBKU09OIFdlYiBLZXkgKEpLVykgZHJh
ZnQgc3VnZ2VzdHMgdGhlIGZvbGxvd2luZyBhcyBwb3NzaWJsZSBrZXkgaWQgdmFsdWVzOg0KKiAi
a2lkIjoiQ3VycmVudCINCiogImtpZCI6IlVwY29taW5nIg0KKiAia2lkIjoiRGVwcmVjYXRlZCIN
Cg0KVGhlc2UgYXJlIG5vdCB3aGF0IEkgY29uc2lkZXIga2V5IGlkZW50aWZpZXJzLiBQZXJoYXBz
IHRoZXkgYXJlIGtleSB0YWdzLCBvciBrZXkgcmVsYXRpb25zIChyZWwgdmFsdWVzKS4NClNlZWlu
ZyB0aGVzZSBleGFtcGxlcyBkb2VzIGhlbHAgZXhwbGFpbiB3aHkgdGhlIGRyYWZ0IHNheXMg4oCc
a2V5IGlkIHZhbHVlcyB3aXRoaW4gYSBKV0sgU2V0IG5lZWQgbm90IGJlIHVuaXF1ZeKAnSwgd2hp
Y2ggYWx3YXlzIHNlZW1lZCB0byBkZWZlYXQgdGhlIHBvaW50IG9mIGEga2V5IGlkLg0KDQpJIGRv
buKAmXQgdGhpbmsgdmFsdWVzIHN1Y2ggYXMg4oCcQ3VycmVudOKAnSwg4oCcVXBjb21pbm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pbXBsaWVzIOKAnGFsZ+KAnSkuPG86cD48L286cD48L3A+PHAgY2xhc3M9TXNvTm9ybWFs
PjxvOnA+Jm5ic3A7PC9vOnA+PC9wPjxwIGNsYXNzPU1zb05vcm1hbD5TdWdnZXN0aW9uOiBhZGQg
JnF1b3Q7a2lkJnF1b3Q7IHBhcmFtZXRlcnMgdG8gYWxsIHRoZSBKV1MgZXhhbXBsZXMgKGVnICZx
dW90O2tpZCZxdW90OzomcXVvdDtrMzdkNUZHU1ImcXVvdDspPG86cD48L286cD48L3A+PHAgY2xh
c3M9TXNvTm9ybWFsPjxvOnA+Jm5ic3A7PC9vOnA+PC9wPjxwIGNsYXNzPU1zb05vcm1hbD4tLTxv
OnA+PC9vOnA+PC9wPjxwIGNsYXNzPU1zb05vcm1hbD5KYW1lcyBNYW5nZXI8bzpwPjwvbzpwPjwv
cD48cCBjbGFzcz1Nc29Ob3JtYWw+PG86cD4mbmJzcDs8L286cD48L3A+PC9kaXY+PC9ib2R5Pjwv
aHRtbD4=

--_000_255B9BB34FB7D647A506DC292726F6E114FD231114WSMSG3153Vsrv_--

From rbarnes@bbn.com  Wed Sep 19 06:36:03 2012
Return-Path: <rbarnes@bbn.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 EEEF421F864A for <jose@ietfa.amsl.com>; Wed, 19 Sep 2012 06:36:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.871
X-Spam-Level: 
X-Spam-Status: No, score=-105.871 tagged_above=-999 required=5 tests=[AWL=-0.668, BAYES_00=-2.599, MIME_QP_LONG_LINE=1.396, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 aF+45R0nODcm for <jose@ietfa.amsl.com>; Wed, 19 Sep 2012 06:36:01 -0700 (PDT)
Received: from smtp.bbn.com (smtp.bbn.com [128.33.1.81]) by ietfa.amsl.com (Postfix) with ESMTP id A7F4A21F8622 for <jose@ietf.org>; Wed, 19 Sep 2012 06:36:01 -0700 (PDT)
Received: from dhcp-192-1-255-218.col.bbn.com ([192.1.255.218]:59668) by smtp.bbn.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from <rbarnes@bbn.com>) id 1TEKQw-000Glf-WD; Wed, 19 Sep 2012 09:35:19 -0400
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=windows-1252
From: Richard Barnes <rbarnes@bbn.com>
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E114FD231114@WSMSG3153V.srv.dir.telstra.com>
Date: Wed, 19 Sep 2012 09:35:20 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <9DF9A8F3-826B-4038-948B-86E98325D63F@bbn.com>
References: <255B9BB34FB7D647A506DC292726F6E114FD231114@WSMSG3153V.srv.dir.telstra.com>
To: "Manger, James H" <James.H.Manger@team.telstra.com>
X-Mailer: Apple Mail (2.1278)
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] "kid":"Current" is broken
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 Sep 2012 13:36:04 -0000

This is a very sensible proposal.


On Sep 19, 2012, at 2:42 AM, Manger, James H wrote:

> I hadn=92t noticed before that the JSON Web Key (JKW) draft suggests =
the following as possible key id values:
> * "kid":"Current"
> * "kid":"Upcoming"
> * "kid":"Deprecated"
> =20
> These are not what I consider key identifiers. Perhaps they are key =
tags, or key relations (rel values).
> Seeing these examples does help explain why the draft says =93key id =
values within a JWK Set need not be unique=94, which always seemed to =
defeat the point of a key id.
> =20
> I don=92t think values such as =93Current=94, =93Upcoming=94, or =
=93Deprecated=94 match with what most people will expect from a field =
labelled a key id (kid). Such =93kid=94s will change during a keys =
lifetime! I hope a key doesn=92t change from =93Current=94 to =93Previous=94=
 between the moment a JWS is signed and the time it is verified =
(seconds, minutes, hours, months later), because that will break the =
verification!
> =20
> Surely this definition of =93kid=94 is broken.
> =20
> Suggestion: define a =93rel=94 parameter that can be included in a JWK =
that can hold relations such as =93current=94. The =93rel=94 parameter =
would never appear in a JWS/JWE, just a JWK.
> Suggestion: define =93kid=94 as a proper key id.
> =20
> =20
> On a related matter, the examples in JWS don=92t use =93kid=94. For =
instance, 3.1 JWS Example has a header {"typ":"JWT", "alg":"HS256"}. =
This is bad practice. You need a specific key to verify this JWS so that =
specific key should be identified. Without a (proper) =93kid=94 you =
compromise the ability to change keys. We should not encourage such =
behaviour.
> JWS also goes to some effort to integrity protect the header. Some of =
the value in doing that is undermined if the details required to process =
the message (such as the identity of the key) are not included within =
that integrity protection. If we really need concise headers we would be =
better keeping =93kid=94 and omitting =93alg=94, relying on the good =
crypto practice of only using a given key with a single algorithm (hence =
=93kid=94 implies =93alg=94).
> =20
> Suggestion: add "kid" parameters to all the JWS examples (eg =
"kid":"k37d5FGSR")
> =20
> --
> James Manger
> =20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


From vladimir@nimbusds.com  Thu Sep 20 08:54:17 2012
Return-Path: <vladimir@nimbusds.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 E0B6F21F8780 for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 08:54:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.091
X-Spam-Level: 
X-Spam-Status: No, score=-1.091 tagged_above=-999 required=5 tests=[AWL=-0.133, BAYES_05=-1.11, SARE_SUB_ENC_UTF8=0.152]
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 lyD-yIJsgGpb for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 08:54:16 -0700 (PDT)
Received: from n1plwbeout07-01.prod.ams1.secureserver.net (n1plsmtp07-01-02.prod.ams1.secureserver.net [188.121.52.106]) by ietfa.amsl.com (Postfix) with SMTP id F34BA21F846F for <jose@ietf.org>; Thu, 20 Sep 2012 08:54:12 -0700 (PDT)
Received: (qmail 27732 invoked from network); 20 Sep 2012 15:54:10 -0000
Received: from unknown (HELO localhost) (188.121.52.246) by n1plwbeout07-01.prod.ams1.secureserver.net with SMTP; 20 Sep 2012 15:54:08 -0000
Received: (qmail 30028 invoked by uid 99); 20 Sep 2012 15:54:08 -0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
X-Originating-IP: 79.100.137.37
User-Agent: Workspace Webmail 5.6.25
Message-Id: <20120920085407.cc40c4f3d92d2001859047cd8cabb9ab.e86fa6107c.wbe@email07.europe.secureserver.net>
From: "Vladimir Dzhuvinov / NimbusDS" <vladimir@nimbusds.com>
To: jose@ietf.org
Date: Thu, 20 Sep 2012 08:54:07 -0700
Mime-Version: 1.0
Subject: [jose] =?utf-8?q?Use_JSON_array_for_JWS/JWE_x5c_parameter=3F?=
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: Thu, 20 Sep 2012 15:54:17 -0000

Hi guys,=0A=0AIf I understand correctly, the JWS and JWE specs say that the=
 "x5c"=0Aparameter is a JSON string:=0A=0Ahttp://tools.ietf.org/html/draft-=
ietf-jose-json-web-signature-05#section-4.1.6=0A=0AThe example:=0A=0Ahttp:/=
/tools.ietf.org/html/draft-ietf-jose-json-web-signature-05#appendix-B=0A=0A=
=0AWouldn't be more sensible to use a JSON array to represent the chain of=
=0AX.509 certs? Instead of a string of concatenated B64 data with=0A"-----B=
EGIN CERTIFICATE-----" and "-----END CERTIFICATE-----"=0Adelimiters?=0A=0A=
=0AMy case for using a JSON array:=0A=0A1. A single parse of the header wil=
l do the chain as well - saves an=0Aextra non-JSON parse operation to split=
 the x5c into chunks.=0A=0A2. Saves space.=0A=0A3. Makes better use of the =
existing JSON header structure.=0A=0A=0AI suppose the current format was in=
fluenced by how X.509 chains are=0Atypically exported by programs for file =
transfer/storage. However, in=0Athe case of JWS/JWE, the x5c parameter will=
 be created programmatically=0Aand there a JSON array fits better.=0A=0AWha=
t do you guys think?=0A=0ACheers,=0A=0AVladimir=0A=0A--=0AVladimir Dzhuvino=
v : www.NimbusDS.com : vladimir@nimbusds.com

From Michael.Jones@microsoft.com  Thu Sep 20 11:45:25 2012
Return-Path: <Michael.Jones@microsoft.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 DFBF121E808E for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 11:45:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.813
X-Spam-Level: 
X-Spam-Status: No, score=-3.813 tagged_above=-999 required=5 tests=[AWL=-0.214, BAYES_00=-2.599, 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 zq4YMRKywaLz for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 11:45:25 -0700 (PDT)
Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe003.messaging.microsoft.com [216.32.181.183]) by ietfa.amsl.com (Postfix) with ESMTP id C52A721E8088 for <jose@ietf.org>; Thu, 20 Sep 2012 11:45:24 -0700 (PDT)
Received: from mail54-ch1-R.bigfish.com (10.43.68.244) by CH1EHSOBE018.bigfish.com (10.43.70.68) with Microsoft SMTP Server id 14.1.225.23; Thu, 20 Sep 2012 18:45:23 +0000
Received: from mail54-ch1 (localhost [127.0.0.1])	by mail54-ch1-R.bigfish.com (Postfix) with ESMTP id C24181201A1; Thu, 20 Sep 2012 18:45:23 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC102.redmond.corp.microsoft.com; RD:none; EFVD:NLI
X-SpamScore: -11
X-BigFish: VS-11(z1091vz9371I542Md6f1izz1202h1d1ah1d2ahzz1033IL17326ah8275bh8275dhz2fh2a8h668h839h944hd25hf0ah107ah1220h1288h12a5h12a9h12bdh137ah1155h)
Received-SPF: pass (mail54-ch1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=Michael.Jones@microsoft.com; helo=TK5EX14HUBC102.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail54-ch1 (localhost.localdomain [127.0.0.1]) by mail54-ch1 (MessageSwitch) id 1348166720921366_9841; Thu, 20 Sep 2012 18:45:20 +0000 (UTC)
Received: from CH1EHSMHS018.bigfish.com (snatpool3.int.messaging.microsoft.com [10.43.68.228])	by mail54-ch1.bigfish.com (Postfix) with ESMTP id DD9BD4A0136;	Thu, 20 Sep 2012 18:45:20 +0000 (UTC)
Received: from TK5EX14HUBC102.redmond.corp.microsoft.com (131.107.125.8) by CH1EHSMHS018.bigfish.com (10.43.70.18) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 20 Sep 2012 18:45:19 +0000
Received: from TK5EX14MBXC284.redmond.corp.microsoft.com ([169.254.1.176]) by TK5EX14HUBC102.redmond.corp.microsoft.com ([157.54.7.154]) with mapi id 14.02.0318.003; Thu, 20 Sep 2012 18:45:16 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Vladimir Dzhuvinov / NimbusDS <vladimir@nimbusds.com>, "jose@ietf.org" <jose@ietf.org>
Thread-Topic: [jose] Use JSON array for JWS/JWE x5c parameter?
Thread-Index: AQHNl0g5INnOmfSeb0qScsJ2Owus35eTkVCg
Date: Thu, 20 Sep 2012 18:45:14 +0000
Message-ID: <4E1F6AAD24975D4BA5B1680429673943667CE920@TK5EX14MBXC284.redmond.corp.microsoft.com>
References: <20120920085407.cc40c4f3d92d2001859047cd8cabb9ab.e86fa6107c.wbe@email07.europe.secureserver.net>
In-Reply-To: <20120920085407.cc40c4f3d92d2001859047cd8cabb9ab.e86fa6107c.wbe@email07.europe.secureserver.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.74]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Subject: Re: [jose] Use JSON array for JWS/JWE x5c parameter?
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: Thu, 20 Sep 2012 18:45:26 -0000

This seems like a reasonable change to me and the rationale stated below ma=
kes sense.  What do others think?

				-- Mike

-----Original Message-----
From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of Vla=
dimir Dzhuvinov / NimbusDS
Sent: Thursday, September 20, 2012 8:54 AM
To: jose@ietf.org
Subject: [jose] Use JSON array for JWS/JWE x5c parameter?

Hi guys,

If I understand correctly, the JWS and JWE specs say that the "x5c"
parameter is a JSON string:

http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-05#section-4.=
1.6

The example:

http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-05#appendix-B


Wouldn't be more sensible to use a JSON array to represent the chain of
X.509 certs? Instead of a string of concatenated B64 data with "-----BEGIN =
CERTIFICATE-----" and "-----END CERTIFICATE-----"
delimiters?


My case for using a JSON array:

1. A single parse of the header will do the chain as well - saves an extra =
non-JSON parse operation to split the x5c into chunks.

2. Saves space.

3. Makes better use of the existing JSON header structure.


I suppose the current format was influenced by how X.509 chains are typical=
ly exported by programs for file transfer/storage. However, in the case of =
JWS/JWE, the x5c parameter will be created programmatically and there a JSO=
N array fits better.

What do you guys think?

Cheers,

Vladimir

--
Vladimir Dzhuvinov : www.NimbusDS.com : vladimir@nimbusds.com _____________=
__________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose



From ve7jtb@ve7jtb.com  Thu Sep 20 11:50:03 2012
Return-Path: <ve7jtb@ve7jtb.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 77E1921E8084 for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 11:50:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.486
X-Spam-Level: 
X-Spam-Status: No, score=-3.486 tagged_above=-999 required=5 tests=[AWL=0.113,  BAYES_00=-2.599, 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 Sd5Y1sbCZEnq for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 11:50:02 -0700 (PDT)
Received: from mail-gg0-f172.google.com (mail-gg0-f172.google.com [209.85.161.172]) by ietfa.amsl.com (Postfix) with ESMTP id 99DBE21E8039 for <jose@ietf.org>; Thu, 20 Sep 2012 11:50:02 -0700 (PDT)
Received: by ggnh4 with SMTP id h4so763229ggn.31 for <jose@ietf.org>; Thu, 20 Sep 2012 11:50:02 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=Pe+19akfgKXToeyudKzXTWFD5ssyC5cmNALIptoM20s=; b=ELHdwd+V+1GJGPz7moqe+gWzuFWAKRzpwI5c0Vo3biJrZFRolbzjWHreI1gvf40pgF vsqhlELQDn4ufJw5ecUW5xNGzwg6qNxCxBzKZJ13DE+tWLiycuHnMSgtoEFZqknqK9+N 1bbFDYt2Ag0JQ+CnGziS+CKk88GnntBm2ukRqfSJjdcJWQANNUJCpKPxDZZzDQOU0dMU Ql/ibMRYlssfGUGeMrjsvHfs8sn9UprAS+qsa0SfwagnO9fS/np4UTFyRSmfmCGJWgug LJBmxkAergVJvU6VfP0CsUukrH9f8g9va7CrQyriyYz5uPJwr/iN88Znpyl5Oq+WFgLf RQzA==
Received: by 10.236.73.164 with SMTP id v24mr2839235yhd.102.1348167002134; Thu, 20 Sep 2012 11:50:02 -0700 (PDT)
Received: from [192.168.1.211] (190-20-23-156.baf.movistar.cl. [190.20.23.156]) by mx.google.com with ESMTPS id o34sm9803692yhi.5.2012.09.20.11.49.44 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Sep 2012 11:50:01 -0700 (PDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\))
From: John Bradley <ve7jtb@ve7jtb.com>
In-Reply-To: <4E1F6AAD24975D4BA5B1680429673943667CE920@TK5EX14MBXC284.redmond.corp.microsoft.com>
Date: Thu, 20 Sep 2012 15:49:26 -0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <595DB9ED-C3FE-49B6-8675-635FCA6B0488@ve7jtb.com>
References: <20120920085407.cc40c4f3d92d2001859047cd8cabb9ab.e86fa6107c.wbe@email07.europe.secureserver.net> <4E1F6AAD24975D4BA5B1680429673943667CE920@TK5EX14MBXC284.redmond.corp.microsoft.com>
To: Mike Jones <Michael.Jones@microsoft.com>
X-Mailer: Apple Mail (2.1486)
X-Gm-Message-State: ALoCoQmm3C33fIWk0TTwrRfuPK41555Mr4DkJicKXUTR2YuO+SRfFZ17VPgdRqz0tK3Gv6ZReFy5
Cc: "jose@ietf.org" <jose@ietf.org>, Vladimir Dzhuvinov / NimbusDS <vladimir@nimbusds.com>
Subject: Re: [jose] Use JSON array for JWS/JWE x5c parameter?
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: Thu, 20 Sep 2012 18:50:03 -0000

I am OK with that being an array.  The concatenated PEM has always =
seemed nasty convention to me.

John B.
On 2012-09-20, at 3:45 PM, Mike Jones <Michael.Jones@microsoft.com> =
wrote:

> This seems like a reasonable change to me and the rationale stated =
below makes sense.  What do others think?
>=20
> 				-- Mike
>=20
> -----Original Message-----
> From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf =
Of Vladimir Dzhuvinov / NimbusDS
> Sent: Thursday, September 20, 2012 8:54 AM
> To: jose@ietf.org
> Subject: [jose] Use JSON array for JWS/JWE x5c parameter?
>=20
> Hi guys,
>=20
> If I understand correctly, the JWS and JWE specs say that the "x5c"
> parameter is a JSON string:
>=20
> =
http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-05#section-4=
.1.6
>=20
> The example:
>=20
> =
http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-05#appendix-=
B
>=20
>=20
> Wouldn't be more sensible to use a JSON array to represent the chain =
of
> X.509 certs? Instead of a string of concatenated B64 data with =
"-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----"
> delimiters?
>=20
>=20
> My case for using a JSON array:
>=20
> 1. A single parse of the header will do the chain as well - saves an =
extra non-JSON parse operation to split the x5c into chunks.
>=20
> 2. Saves space.
>=20
> 3. Makes better use of the existing JSON header structure.
>=20
>=20
> I suppose the current format was influenced by how X.509 chains are =
typically exported by programs for file transfer/storage. However, in =
the case of JWS/JWE, the x5c parameter will be created programmatically =
and there a JSON array fits better.
>=20
> What do you guys think?
>=20
> Cheers,
>=20
> Vladimir
>=20
> --
> Vladimir Dzhuvinov : www.NimbusDS.com : vladimir@nimbusds.com =
_______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>=20
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


From mamille2@cisco.com  Thu Sep 20 12:30:07 2012
Return-Path: <mamille2@cisco.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 3480D21F86B7 for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 12:30:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.546
X-Spam-Level: 
X-Spam-Status: No, score=-10.546 tagged_above=-999 required=5 tests=[AWL=0.053, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 l89XHhGVQ-6E for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 12:30:05 -0700 (PDT)
Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) by ietfa.amsl.com (Postfix) with ESMTP id 5394821E804A for <jose@ietf.org>; Thu, 20 Sep 2012 12:30:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5896; q=dns/txt; s=iport; t=1348169405; x=1349379005; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=w9v0pLycLmCcTDoN3rrXaqYqikbmBBhsPU0wmiXYFpo=; b=UC/y000lh4fcZNkeYFv+wfrhgBWRv3DpBXRCNrnFGdbKzPRhE2p6Oibv C2GBs0JuLaGP/HEHvTS90+D+Xu6TkKfzrTZP1eILbnoKuR4htflJlNzt5 stDZnu5xKx8nf4l1+WpjSxN7FbniLoiDiLkMUR2WGl6Yg7tgOAXjcUoXN g=;
X-Files: smime.p7s, PGP.sig : 2214, 535
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EAFJtW1CtJV2b/2dsb2JhbABFvSyBCIIgAQEBAwEBAQEPATYlCwULAgEIRgIlCyUCBAoEBQ4Uh1sGC5oGoBiLHCCFQmADjmqBIIVagRSNJIFpgmeBWzw
X-IronPort-AV: E=Sophos;i="4.80,455,1344211200";  d="sig'?p7s'?scan'208";a="123742226"
Received: from rcdn-core-4.cisco.com ([173.37.93.155]) by rcdn-iport-4.cisco.com with ESMTP; 20 Sep 2012 19:30:00 +0000
Received: from xhc-aln-x05.cisco.com (xhc-aln-x05.cisco.com [173.36.12.79]) by rcdn-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id q8KJU06j012123 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 20 Sep 2012 19:30:00 GMT
Received: from xmb-aln-x11.cisco.com ([169.254.6.219]) by xhc-aln-x05.cisco.com ([173.36.12.79]) with mapi id 14.02.0298.004; Thu, 20 Sep 2012 14:30:00 -0500
From: "Matt Miller (mamille2)" <mamille2@cisco.com>
To: Vladimir Dzhuvinov / NimbusDS <vladimir@nimbusds.com>
Thread-Topic: [jose] Use JSON array for JWS/JWE x5c parameter?
Thread-Index: AQHNl0g9ekdaOYl8A0SqmZpD3J88lJeT8e4A
Date: Thu, 20 Sep 2012 19:30:00 +0000
Message-ID: <C817E005-E1F9-44EC-BCF0-3C1AD50FC690@cisco.com>
References: <20120920085407.cc40c4f3d92d2001859047cd8cabb9ab.e86fa6107c.wbe@email07.europe.secureserver.net>
In-Reply-To: <20120920085407.cc40c4f3d92d2001859047cd8cabb9ab.e86fa6107c.wbe@email07.europe.secureserver.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-pgp-agent: GPGMail 1.3.3
x-originating-ip: [64.101.72.40]
x-tm-as-product-ver: SMEX-10.2.0.1135-7.000.1014-19194.004
x-tm-as-result: No--35.284800-8.000000-31
x-tm-as-user-approved-sender: No
x-tm-as-user-blocked-sender: No
Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-2-495019359"
MIME-Version: 1.0
Cc: "<jose@ietf.org>" <jose@ietf.org>
Subject: Re: [jose] Use JSON array for JWS/JWE x5c parameter?
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: Thu, 20 Sep 2012 19:30:07 -0000

--Apple-Mail-2-495019359
Content-Type: multipart/signed; boundary=Apple-Mail-1-495019355; protocol="application/pkcs7-signature"; micalg=sha1


--Apple-Mail-1-495019355
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

That works for me.


- m&m

Matt Miller - <mamille2@cisco.com>
Cisco Systems, Inc.

On Sep 20, 2012, at 09:54, Vladimir Dzhuvinov / NimbusDS wrote:

> Hi guys,
>=20
> If I understand correctly, the JWS and JWE specs say that the "x5c"
> parameter is a JSON string:
>=20
> =
http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-05#section-4=
.1.6
>=20
> The example:
>=20
> =
http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-05#appendix-=
B
>=20
>=20
> Wouldn't be more sensible to use a JSON array to represent the chain =
of
> X.509 certs? Instead of a string of concatenated B64 data with
> "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----"
> delimiters?
>=20
>=20
> My case for using a JSON array:
>=20
> 1. A single parse of the header will do the chain as well - saves an
> extra non-JSON parse operation to split the x5c into chunks.
>=20
> 2. Saves space.
>=20
> 3. Makes better use of the existing JSON header structure.
>=20
>=20
> I suppose the current format was influenced by how X.509 chains are
> typically exported by programs for file transfer/storage. However, in
> the case of JWS/JWE, the x5c parameter will be created =
programmatically
> and there a JSON array fits better.
>=20
> What do you guys think?
>=20
> Cheers,
>=20
> Vladimir
>=20
> --
> Vladimir Dzhuvinov : www.NimbusDS.com : vladimir@nimbusds.com
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


--Apple-Mail-1-495019355
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name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G9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTEyMDkyMDE5MzAw
N1owIwYJKoZIhvcNAQkEMRYEFG1hZZIdmSnKhnl3//qp9M5ZQxfSMIGRBgkrBgEEAYI3EAQxgYMw
gYAweTEQMA4GA1UEChMHUm9vdCBDQTEeMBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIw
IAYDVQQDExlDQSBDZXJ0IFNpZ25pbmcgQXV0aG9yaXR5MSEwHwYJKoZIhvcNAQkBFhJzdXBwb3J0
QGNhY2VydC5vcmcCAwmYMjCBkwYLKoZIhvcNAQkQAgsxgYOggYAweTEQMA4GA1UEChMHUm9vdCBD
QTEeMBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIwIAYDVQQDExlDQSBDZXJ0IFNpZ25p
bmcgQXV0aG9yaXR5MSEwHwYJKoZIhvcNAQkBFhJzdXBwb3J0QGNhY2VydC5vcmcCAwmYMjANBgkq
hkiG9w0BAQEFAASCAQBSsWB+CbtKpxbQB9KNH2NaFlXHC3RvmYgde44zJ1E9KgtSJKVsYhjB2M1I
Wk4ca21js6Zt/kCNvHexrZZgTvtT2xTradqsZu1IT6REF2uFG2WXypA7b0Aa/wst4QoPQ1cX0j6W
Zz8xJh4ioP4yU3+aFfzuXS3H/1mFZKpl9pZrdL1tY/xdE4X3rt/k5h90GHvL/UQkOor84opk/mnD
kVaCZiNnd4LO+Xh7bDyA3ph3OOyn4MLCTZieg8pqNXoioSYMNY9MhXpNudTP9FshgfRa3UgecSOr
eJJ6/iS0dGzREWmV5RZGBmU2d3kLmOaeTcyfOXCyAlfkt9cjbeOxPNErAAAAAAAA

--Apple-Mail-1-495019355--

--Apple-Mail-2-495019359
Content-Type: application/pgp-signature; x-mac-type=70674453; name="PGP.sig"
Content-Description: This is a digitally signed message part
Content-Disposition: inline; filename="PGP.sig"
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJQW26/AAoJEJq6Ou0cgrSP7J4H/iWH7lYYeOCCv7jsgHM42mr9
uC82dFCAnlay5MUNwJy0fQc6jXgxhd+dvvnrFqJFE2MUjo8leRw3uFV/aItdQn66
aqrCpm62JirPGMIWCZS0UMbF35l+J47fdz0bZ5G5F+o4bKXdE3pwwt4GV7UjiS2a
mJgJGJSaMmm7ses2x7c3ymwiE7x1I2EbESkPu899AOBN+wDIwa/MOTDx+SmNI1CE
4DimfCtNnDj+DsillAD4yIWwUOamO+x3+bjKrrcZENlrOWCOdSHECvUjIzpkutZz
uG6f/JuPJaPOwBIjkxRi8/dLY9J1dpQPouhhRHMpsmf9quZhG7RJFeqoqVHYfew=
=sg0V
-----END PGP SIGNATURE-----

--Apple-Mail-2-495019359--

From rbarnes@bbn.com  Thu Sep 20 18:31:41 2012
Return-Path: <rbarnes@bbn.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 1C2B721E8041 for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 18:31:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.599
X-Spam-Level: 
X-Spam-Status: No, score=-106.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 72uhM1-lTHck for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 18:31:40 -0700 (PDT)
Received: from smtp.bbn.com (smtp.bbn.com [128.33.0.80]) by ietfa.amsl.com (Postfix) with ESMTP id 3FCA921E8047 for <jose@ietf.org>; Thu, 20 Sep 2012 18:31:40 -0700 (PDT)
Received: from [128.89.255.200] (port=64284) by smtp.bbn.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from <rbarnes@bbn.com>) id 1TEs5c-0009Jj-E3; Thu, 20 Sep 2012 21:31:32 -0400
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=us-ascii
From: Richard Barnes <rbarnes@bbn.com>
In-Reply-To: <C817E005-E1F9-44EC-BCF0-3C1AD50FC690@cisco.com>
Date: Thu, 20 Sep 2012 21:31:32 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <38A9470C-B353-4329-ADDB-B0B56369CC5D@bbn.com>
References: <20120920085407.cc40c4f3d92d2001859047cd8cabb9ab.e86fa6107c.wbe@email07.europe.secureserver.net> <C817E005-E1F9-44EC-BCF0-3C1AD50FC690@cisco.com>
To: Matt Miller (mamille2) <mamille2@cisco.com>
X-Mailer: Apple Mail (2.1278)
Cc: "<jose@ietf.org>" <jose@ietf.org>, Vladimir Dzhuvinov / NimbusDS <vladimir@nimbusds.com>
Subject: Re: [jose] Use JSON array for JWS/JWE x5c parameter?
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: Fri, 21 Sep 2012 01:31:41 -0000

+1

Two quick comments:

1. As long as we're using an ordered type, it might be nice to require =
that the chain be in order, as in TLS.

2. Since PEM is just base64-encoded DER, we should just specify that =
each element in the array is base64url-encoded DER (assuming that that's =
the base64 variant we're using). =20



On Sep 20, 2012, at 3:30 PM, Matt Miller (mamille2) wrote:

> That works for me.
>=20
>=20
> - m&m
>=20
> Matt Miller - <mamille2@cisco.com>
> Cisco Systems, Inc.
>=20
> On Sep 20, 2012, at 09:54, Vladimir Dzhuvinov / NimbusDS wrote:
>=20
>> Hi guys,
>>=20
>> If I understand correctly, the JWS and JWE specs say that the "x5c"
>> parameter is a JSON string:
>>=20
>> =
http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-05#section-4=
.1.6
>>=20
>> The example:
>>=20
>> =
http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-05#appendix-=
B
>>=20
>>=20
>> Wouldn't be more sensible to use a JSON array to represent the chain =
of
>> X.509 certs? Instead of a string of concatenated B64 data with
>> "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----"
>> delimiters?
>>=20
>>=20
>> My case for using a JSON array:
>>=20
>> 1. A single parse of the header will do the chain as well - saves an
>> extra non-JSON parse operation to split the x5c into chunks.
>>=20
>> 2. Saves space.
>>=20
>> 3. Makes better use of the existing JSON header structure.
>>=20
>>=20
>> I suppose the current format was influenced by how X.509 chains are
>> typically exported by programs for file transfer/storage. However, in
>> the case of JWS/JWE, the x5c parameter will be created =
programmatically
>> and there a JSON array fits better.
>>=20
>> What do you guys think?
>>=20
>> Cheers,
>>=20
>> Vladimir
>>=20
>> --
>> Vladimir Dzhuvinov : www.NimbusDS.com : vladimir@nimbusds.com
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org
>> https://www.ietf.org/mailman/listinfo/jose
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


From Michael.Jones@microsoft.com  Thu Sep 20 18:33:15 2012
Return-Path: <Michael.Jones@microsoft.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 A1C3921F84BF for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 18:33:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.786
X-Spam-Level: 
X-Spam-Status: No, score=-3.786 tagged_above=-999 required=5 tests=[AWL=-0.187, BAYES_00=-2.599, 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 U0ia5otV8iNJ for <jose@ietfa.amsl.com>; Thu, 20 Sep 2012 18:33:15 -0700 (PDT)
Received: from co1outboundpool.messaging.microsoft.com (co1ehsobe001.messaging.microsoft.com [216.32.180.184]) by ietfa.amsl.com (Postfix) with ESMTP id 0B19121F84B8 for <jose@ietf.org>; Thu, 20 Sep 2012 18:33:14 -0700 (PDT)
Received: from mail40-co1-R.bigfish.com (10.243.78.226) by CO1EHSOBE004.bigfish.com (10.243.66.67) with Microsoft SMTP Server id 14.1.225.23; Fri, 21 Sep 2012 01:33:13 +0000
Received: from mail40-co1 (localhost [127.0.0.1])	by mail40-co1-R.bigfish.com (Postfix) with ESMTP id 7A44CDC010B; Fri, 21 Sep 2012 01:33:13 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC102.redmond.corp.microsoft.com; RD:none; EFVD:NLI
X-SpamScore: -13
X-BigFish: VS-13(z1091vz98dI9371I542M1432Id6eahd6f1izz1202h1d1ah1d2ahzz1033IL17326ah8275bh8275dhz2fh2a8h668h839h944hd25hf0ah107ah1220h1288h12a5h12a9h12bdh137ah1155h)
Received-SPF: pass (mail40-co1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=Michael.Jones@microsoft.com; helo=TK5EX14HUBC102.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail40-co1 (localhost.localdomain [127.0.0.1]) by mail40-co1 (MessageSwitch) id 1348191191868955_7281; Fri, 21 Sep 2012 01:33:11 +0000 (UTC)
Received: from CO1EHSMHS015.bigfish.com (unknown [10.243.78.240])	by mail40-co1.bigfish.com (Postfix) with ESMTP id C5E63720042; Fri, 21 Sep 2012 01:33:11 +0000 (UTC)
Received: from TK5EX14HUBC102.redmond.corp.microsoft.com (131.107.125.8) by CO1EHSMHS015.bigfish.com (10.243.66.25) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 21 Sep 2012 01:33:11 +0000
Received: from TK5EX14MBXC284.redmond.corp.microsoft.com ([169.254.1.176]) by TK5EX14HUBC102.redmond.corp.microsoft.com ([157.54.7.154]) with mapi id 14.02.0318.003; Fri, 21 Sep 2012 01:33:09 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Richard Barnes <rbarnes@bbn.com>, Matt Miller <mamille2@cisco.com>
Thread-Topic: [jose] Use JSON array for JWS/JWE x5c parameter?
Thread-Index: AQHNl0g5INnOmfSeb0qScsJ2Owus35eTnhUAgABlAwCAAAAyoA==
Date: Fri, 21 Sep 2012 01:33:08 +0000
Message-ID: <4E1F6AAD24975D4BA5B1680429673943667CF568@TK5EX14MBXC284.redmond.corp.microsoft.com>
References: <20120920085407.cc40c4f3d92d2001859047cd8cabb9ab.e86fa6107c.wbe@email07.europe.secureserver.net> <C817E005-E1F9-44EC-BCF0-3C1AD50FC690@cisco.com> <38A9470C-B353-4329-ADDB-B0B56369CC5D@bbn.com>
In-Reply-To: <38A9470C-B353-4329-ADDB-B0B56369CC5D@bbn.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.70]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: "<jose@ietf.org>" <jose@ietf.org>, Vladimir Dzhuvinov / NimbusDS <vladimir@nimbusds.com>
Subject: Re: [jose] Use JSON array for JWS/JWE x5c parameter?
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: Fri, 21 Sep 2012 01:33:15 -0000

Order is already required and this would be maintained.  Your point 2 is I =
think what Vladimir had in mind as well.

				-- Mike

-----Original Message-----
From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of Ric=
hard Barnes
Sent: Thursday, September 20, 2012 6:32 PM
To: Matt Miller
Cc: <jose@ietf.org>; Vladimir Dzhuvinov / NimbusDS
Subject: Re: [jose] Use JSON array for JWS/JWE x5c parameter?

+1

Two quick comments:

1. As long as we're using an ordered type, it might be nice to require that=
 the chain be in order, as in TLS.

2. Since PEM is just base64-encoded DER, we should just specify that each e=
lement in the array is base64url-encoded DER (assuming that that's the base=
64 variant we're using). =20



On Sep 20, 2012, at 3:30 PM, Matt Miller (mamille2) wrote:

> That works for me.
>=20
>=20
> - m&m
>=20
> Matt Miller - <mamille2@cisco.com>
> Cisco Systems, Inc.
>=20
> On Sep 20, 2012, at 09:54, Vladimir Dzhuvinov / NimbusDS wrote:
>=20
>> Hi guys,
>>=20
>> If I understand correctly, the JWS and JWE specs say that the "x5c"
>> parameter is a JSON string:
>>=20
>> http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-05#sect
>> ion-4.1.6
>>=20
>> The example:
>>=20
>> http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-05#appe
>> ndix-B
>>=20
>>=20
>> Wouldn't be more sensible to use a JSON array to represent the chain=20
>> of
>> X.509 certs? Instead of a string of concatenated B64 data with=20
>> "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----"
>> delimiters?
>>=20
>>=20
>> My case for using a JSON array:
>>=20
>> 1. A single parse of the header will do the chain as well - saves an=20
>> extra non-JSON parse operation to split the x5c into chunks.
>>=20
>> 2. Saves space.
>>=20
>> 3. Makes better use of the existing JSON header structure.
>>=20
>>=20
>> I suppose the current format was influenced by how X.509 chains are=20
>> typically exported by programs for file transfer/storage. However, in=20
>> the case of JWS/JWE, the x5c parameter will be created=20
>> programmatically and there a JSON array fits better.
>>=20
>> What do you guys think?
>>=20
>> Cheers,
>>=20
>> Vladimir
>>=20
>> --
>> Vladimir Dzhuvinov : www.NimbusDS.com : vladimir@nimbusds.com=20
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org
>> https://www.ietf.org/mailman/listinfo/jose
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose

_______________________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose


