Re: [jose] Working Group last call on draft-ietf-jose-jwk-thumbprint

stephen.farrell@cs.tcd.ie Sat, 24 January 2015 12:04 UTC

Return-Path: <stephen.farrell@cs.tcd.ie>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8E9751A1A7C for <jose@ietfa.amsl.com>; Sat, 24 Jan 2015 04:04:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IZzHqHNG9JDX for <jose@ietfa.amsl.com>; Sat, 24 Jan 2015 04:04:45 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3901E1A1A77 for <jose@ietf.org>; Sat, 24 Jan 2015 04:04:45 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 1007CBED1; Sat, 24 Jan 2015 12:04:43 +0000 (GMT)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
X-Amavis-Alert: BAD HEADER SECTION, Improper folded header field made up entirely of whitespace (char 20 hex): In-Reply-To: ...5@TK5EX14MBXC291.redmond.corp.microsoft.com>\n
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bp_55zUYw_Qu; Sat, 24 Jan 2015 12:04:37 +0000 (GMT)
Received: from [127.0.0.1] (unknown [86.42.29.136]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 81F86BE7D; Sat, 24 Jan 2015 12:04:37 +0000 (GMT)
X-Priority: 3
To: Michael.Jones@microsoft.com
From: stephen.farrell@cs.tcd.ie
In-Reply-To: <4E1F6AAD24975D4BA5B1680429673943A21ECFC5@TK5EX14MBXC291.redmond.corp.microsoft.com>
References: <046701d036af$c74ec7b0$55ec5710$@augustcellars.com> <CAL02cgSvp7d14B2Yan2-CHsi__ZedHfrvOAGbJRmnU93i33jbA@mail.gmail.com> <54C284C3.7070902@cisco.com> <601AAE53-0A77-4582-B56D-B126ECBEEFBE@ve7jtb.com> <4E1F6AAD24975D4BA5B1680429673943A21EB5D7@TK5EX14MBXC291.redmond.corp.microsoft.com> <CAL02cgQgV+b6rdOn9nHRS0cNgrb4-1A669vr9Q9L_XyMQ9BO6A@mail.gmail.com> <4E1F6AAD24975D4BA5B1680429673943A21EB6E9@TK5EX14MBXC291.redmond.corp.microsoft.com> <CAL02cgQQUo6P3XD7QDADNhrXkcmSL9X0oxMmXAiMkgJh78eQ-Q@mail.gmail.com> <4E1F6AAD24975D4BA5B1680429673943A21EBD4B@TK5EX14MBXC291.redmond.corp.microsoft.com> <325597BB-8A06-4410-85F8-E01906B399F4@ve7jtb.com> <54C2C223.2040302@cisco.com> <54C2D579.9000505@cs.tcd.ie> <4E1F6AAD24975D4BA5B1680429673943A21ECFC5@TK5EX14MBXC291.redmond.corp.microsoft.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Date: Sat, 24 Jan 2015 12:04:36 +0000
Message-ID: <iy4ljd.niok7p.2vaesf-qmf@mercury.scss.tcd.ie>
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/jose/_8MyKllazHH7fYKCeQ2bSyYITjw>
Cc: ve7jtb@ve7jtb.com, rlb@ipv.sx, ietf@augustcellars.com, jose@ietf.org, mamille2@cisco.com
Subject: Re: [jose] Working Group last call on draft-ietf-jose-jwk-thumbprint
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
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: Sat, 24 Jan 2015 12:04:50 -0000


On Sat Jan 24 02:12:10 2015 GMT, Mike Jones wrote:
> > -----Original Message-----
> > From: Stephen Farrell [mailto:stephen.farrell@cs.tcd.ie]
> > Sent: Friday, January 23, 2015 3:13 PM
> > To: ⌘ Matt Miller; John Bradley; Mike Jones
> > Cc: Richard Barnes; Jim Schaad; jose@ietf.org
> > Subject: Re: [jose] Working Group last call on draft-ietf-jose-jwk-thumbprint
> > 
> > On 23/01/15 21:50, ⌘ Matt Miller wrote:
> > > Or maybe we seriously consider SPKI.
> > 
> > Yes. It works. It's used elsewhere so offers better interop. All libraries
> > support it so coding up the thumbprint stuff with that is trivial and far less
> > error prone.
> 
> I believe you that you have SPKI support if you're writing in C/C++, Java, or C# but not necessarily if you're writing in JavaScript, Ruby, Python, etc.

Sorry I think you're wrong. Afaik all of em and php have this if they have crypto.  

S

> 
> > It avoids any need for (even more) pointless debate about
> > hash-input nitpicking. There's less spec text needed too. All useful
> > asymmetric algs will have a well defined SPKI for the next decade because
> > those are used in TLS and for the WebPKI which is not going away no matter
> > how much you want it to go away. That is a pile of advantages.
> > 
> > And, most important, there is zero advantage in pointlessly inventing a new
> > variation. Frankly the supposed advantages offered so far:
> > 
> > - - a line or two less code, (maybe, maybe not,
> >   unimportant in any case)
> > - - "not asn.1" (nonsense, SPKI needs no generic
> >   asn.1 support, we've known for decades how
> >   to do without that, and your library constructs
> >   the octets from the key already)
> > - - "it should be json" (more nonsense, it's a hash
> >   input and never sent or stored, nobody cares what
> >   format it has)
> > 
> > ...are utterly unconvincing in any rational view.
> 
> If you follow this line of reasoning to its logical conclusion, we would have insisted on people always using SPKI and/or X.509 key representations, rather than "pointlessly inventing a new variation" called JWK.  And for that matter, we would have insisted on people using CMS rather than developing JWS and JWE. ;-)
> 
> I'm not saying that it's not possible to construct SPKI hash inputs from JWKs in JavaScript, etc., but creating the one specified in the draft seems a lot more straightforward to me if what you already have is a JWK.
> 
> > PS: As another data point, the W3C sub-resource integrity spec [1] uses ni
> > URIs today. I've no idea if that's likely to last into a W3C REC or get deployed,
> > but seems to me like not-reinventing in this space is one sensible thing those
> > folks have
> > (sensibly:-) done, given the utter lack of benefit from re-inventing.
> > 
> > [1] http://www.w3.org/TR/SRI/
> 
> P.S.  There's nothing stopping someone from writing a very short draft also registering header parameter names for hashes of SPKI key values.  I'm all for that.  Then people can vote with their feet (with their code) on which they prefer to build and use.
> 
> 				-- Mike
> 
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>