Re: [jose] I-D Action: draft-ietf-jose-json-web-encryption-09.txt

John Bradley <ve7jtb@ve7jtb.com> Thu, 25 April 2013 20:41 UTC

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 8BD2121F96CD for <jose@ietfa.amsl.com>; Thu, 25 Apr 2013 13:41:13 -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=[HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 052f7TMSf4Fk for <jose@ietfa.amsl.com>; Thu, 25 Apr 2013 13:41:12 -0700 (PDT)
Received: from mail-ia0-x22d.google.com (mail-ia0-x22d.google.com [IPv6:2607:f8b0:4001:c02::22d]) by ietfa.amsl.com (Postfix) with ESMTP id 42F4021F96CC for <jose@ietf.org>; Thu, 25 Apr 2013 13:41:09 -0700 (PDT)
Received: by mail-ia0-f173.google.com with SMTP id j5so3115639iaf.32 for <jose@ietf.org>; Thu, 25 Apr 2013 13:41:08 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:message-id:references:to:x-mailer:x-gm-message-state; bh=Eq96Pfs/h7N9lGNeCnOcnWJjinEZY/iFPBTVEiA64H0=; b=kJKTvL0BE/iFhnwt8fznmeMWX3Mh67HfQAKwyyJRv5I6KVTq/bhWaFP8RFBToj68qf tlsbWoTSdP1Px8s8P8RR4rmyUUgRwWYMorbi+SpXGPP+RT60RgzdM5dP1vAhbZQQnvxx gAEuHCLyIAQNwxIGyxwINQQ/D3dZrk+oguyAnEnrUe2hnR7u1AKB8KE3kNz9w5GC880G /qPpU/yXBCG9/hl585sL5cqzL24RZ0jrBCCOp4/R0xSO5Xlvp7tIB4+HH5RMqPcZEFeE XYWZCLB5nTVaCNkKaDgjo+QfNeUkBGGfmqrOYf91unukdre+oQunzodkcpHJTAExoNoM iLgw==
X-Received: by 10.42.155.66 with SMTP id t2mr22374476icw.10.1366922468735; Thu, 25 Apr 2013 13:41:08 -0700 (PDT)
Received: from [192.168.1.39] (190-20-16-122.baf.movistar.cl. [190.20.16.122]) by mx.google.com with ESMTPSA id p9sm36041384iga.7.2013.04.25.13.40.59 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Apr 2013 13:41:05 -0700 (PDT)
Content-Type: multipart/signed; boundary="Apple-Mail=_8AD86A83-989E-4F2A-A03C-0C2D05A2F56A"; protocol="application/pkcs7-signature"; micalg="sha1"
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
From: John Bradley <ve7jtb@ve7jtb.com>
In-Reply-To: <4E1F6AAD24975D4BA5B1680429673943676C0128@TK5EX14MBXC283.redmond.corp.microsoft.com>
Date: Thu, 25 Apr 2013 17:40:47 -0300
Message-Id: <E394275C-34D7-47C9-874A-0FC0A08C83E9@ve7jtb.com>
References: <20130424002901.19246.69134.idtracker@ietfa.amsl.com> <014201ce416a$82761a80$87624f80$@augustcellars.com> <4E1F6AAD24975D4BA5B1680429673943676ACD2E@TK5EX14MBXC284.redmond.corp.microsoft.com> <CAL02cgSDhjpPaW-rjbRSa9+0MRnsZ1B_eEvAppVd__h69OMOsQ@mail.gmail.com> <4E1F6AAD24975D4BA5B1680429673943676C0128@TK5EX14MBXC283.redmond.corp.microsoft.com>
To: Mike Jones <Michael.Jones@microsoft.com>
X-Mailer: Apple Mail (2.1503)
X-Gm-Message-State: ALoCoQlmQs8f6paxvVQjHjhN24xpQRn/vxRYClR5twZToHngsYcWDmUXvTxY+DQ0/RxJGKVXSzll
Cc: Richard Barnes <rlb@ipv.sx>, Jim Schaad <ietf@augustcellars.com>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] I-D Action: draft-ietf-jose-json-web-encryption-09.txt
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, 25 Apr 2013 20:41:13 -0000

For multiple recipients using GCM with a single CEK and IV we can logically have 0 AAD segments or 1 AAD segment.

That is just the reality of the situation.  

One possible solution is to the GCM issue is to have 1 AAD segment containing the envelope information for all recipients.
I understand for people wanting 0 AAD segments that will not be there first choice.

The downside of this is that you can't incrementally add recipients, they all need to be known upfront to include the info in the AAD.

What I don't know is if there is really any compelling use-case for incremental addition of recipients without re-encrypting (changing the IV atleast)

John B.
 .  

On 2013-04-25, at 4:14 PM, Mike Jones <Michael.Jones@microsoft.com> wrote:

> Hi Richard,
>  
> Actually, there are four goals in play:
>  
> 1.  GCM
> 2.  Efficient encoding for multiple recipients
> 3.  Header integrity protection
> 4.  Independent protection of each recipient’s headers
>  
> Per my response to Russ, by giving up 4, we can achieve 1, 2, and 3.  (Credit goes to John Bradley for this solution.)
>  
>                                                             -- Mike
>  
> From: Richard Barnes [mailto:rlb@ipv.sx] 
> Sent: Thursday, April 25, 2013 11:14 AM
> To: Mike Jones
> Cc: Jim Schaad; jose@ietf.org
> Subject: Re: [jose] I-D Action: draft-ietf-jose-json-web-encryption-09.txt
>  
> Mike, 
>  
> Your facts are right, but your conclusions are wrong.
>  
> We have three mutually incompatible goals here:
> 1. GCM
> 2. Efficient encoding for multiple recipients
> 3. Header integrity
>  
> We can have any two of these, but not all three.  If we try to do all three (JWE-08), then we end up with the vulnerability identified in the CFRG thread.  So we need to choose which one to get rid of.
>  
> Getting rid of GCM is clearly not the right answer, as evidenced by the reaction in this thread.  There are clear, concrete use reasons to support multiple recipients, but not for header integrity.  And header integrity can be "polyfilled" with an optional feature, for those who are willing to break the multiple recipient case.  Clearly, header integrity is the weakest link here.
>  
> JWE-09 is the reductio ad absurdum of header integrity.  Let's do the logical thing and stop the absurdity.
>  
> --Richard
>  
>  
>  
> 
> On Thu, Apr 25, 2013 at 2:48 AM, Mike Jones <Michael.Jones@microsoft.com> wrote:
> Jim - I am surprised that you would say that my co-authors Eric Rescorla or Joe Hildebrand or the working group would advocate using AES GCM in a way that would result in severe security vulnerabilities - in particular, allowing attackers to obtain the XOR of the messages to multiple recipients encrypted using GCM - a vulnerability identified by the CFRG.
> 
> Not stating this in the document would seem to me to be highly irresponsible, given the brittleness of GCM in this regard, as identified by the CRFG.  As I said to Richard Barnes over dinner last night, while unpleasant, and possibly surprising to those who aren't familiar to how GCM actually works, as an editor, I viewed including the statement that "AES GCM MUST NOT be used when using the JWE JSON Serialization for multiple recipients, since this would result in the same Initialization Vector and Plaintext values being used for multiple GCM encryptions" as necessary, and "truth in advertising".
> 
>                                 -- Mike
> 
> -----Original Message-----
> From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of Jim Schaad
> Sent: Wednesday, April 24, 2013 9:07 PM
> To: Mike Jones
> Cc: jose@ietf.org
> Subject: Re: [jose] I-D Action: draft-ietf-jose-json-web-encryption-09.txt
> 
> Mike,
> 
> AES GCM MUST NOT be used when using the JWE JSON Serialization for
>    multiple recipients, since this would result in the same
>    Initialization Vector and Plaintext values being used for multiple
>    GCM encryptions.
> 
> I doubt your co-authors would agree with this.
> I doubt the working group with agree with this.
> I know that at least one co-chair does not agree with this I can predict that the AD and IESG along with the security directorate would crucify me if I allowed this to stand in the document..
> 
> Jim
> 
> 
> 
> > -----Original Message-----
> > From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf
> > Of internet-drafts@ietf.org
> > Sent: Tuesday, April 23, 2013 5:29 PM
> > To: i-d-announce@ietf.org
> > Cc: jose@ietf.org
> > Subject: [jose] I-D Action: draft-ietf-jose-json-web-encryption-09.txt
> >
> >
> > A New Internet-Draft is available from the on-line Internet-Drafts
> directories.
> >  This draft is a work item of the Javascript Object Signing and
> > Encryption Working Group of the IETF.
> >
> >       Title           : JSON Web Encryption (JWE)
> >       Author(s)       : Michael B. Jones
> >                           Eric Rescorla
> >                           Joe Hildebrand
> >       Filename        : draft-ietf-jose-json-web-encryption-09.txt
> >       Pages           : 54
> >       Date            : 2013-04-23
> >
> > Abstract:
> >    JSON Web Encryption (JWE) is a means of representing encrypted
> >    content using JavaScript Object Notation (JSON) data structures.
> >    Cryptographic algorithms and identifiers for use with this
> >    specification are described in the separate JSON Web Algorithms (JWA)
> >    specification.  Related digital signature and MAC capabilities are
> >    described in the separate JSON Web Signature (JWS) specification.
> >
> >
> > The IETF datatracker status page for this draft is:
> > https://datatracker.ietf.org/doc/draft-ietf-jose-json-web-encryption
> >
> > There's also a htmlized version available at:
> > http://tools.ietf.org/html/draft-ietf-jose-json-web-encryption-09
> >
> > A diff from the previous version is available at:
> > http://www.ietf.org/rfcdiff?url2=draft-ietf-jose-json-web-encryption-0
> > 9
> >
> >
> > Internet-Drafts are also available by anonymous FTP at:
> > ftp://ftp.ietf.org/internet-drafts/
> >
> > _______________________________________________
> > 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
>  
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose