Re: [jose] Question on enc location

"Jim Schaad" <ietf@augustcellars.com> Tue, 23 July 2013 12:23 UTC

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 8E8B711E8105 for <jose@ietfa.amsl.com>; Tue, 23 Jul 2013 05:23:58 -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 ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NL-ACB4KERnU for <jose@ietfa.amsl.com>; Tue, 23 Jul 2013 05:23:52 -0700 (PDT)
Received: from smtp1.pacifier.net (smtp1.pacifier.net [64.255.237.171]) by ietfa.amsl.com (Postfix) with ESMTP id AD38321F9D8D for <jose@ietf.org>; Tue, 23 Jul 2013 05:23:52 -0700 (PDT)
Received: from Philemon (173-12-183-193-oregon.hfc.comcastbusiness.net [173.12.183.193]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jimsch@nwlink.com) by smtp1.pacifier.net (Postfix) with ESMTPSA id A40752CA39; Tue, 23 Jul 2013 05:23:50 -0700 (PDT)
From: Jim Schaad <ietf@augustcellars.com>
To: 'Richard Barnes' <rlb@ipv.sx>, 'Mike Jones' <Michael.Jones@microsoft.com>
References: <05a101ce8733$d96415e0$8c2c41a0$@augustcellars.com> <4E1F6AAD24975D4BA5B16804296739436B6FFED3@TK5EX14MBXC284.redmond.corp.microsoft.com> <CAL02cgRFsoVOu4=opCark=iY6EXZ4kscR5Q3v2KpcZu4_ubQQw@mail.gmail.com>
In-Reply-To: <CAL02cgRFsoVOu4=opCark=iY6EXZ4kscR5Q3v2KpcZu4_ubQQw@mail.gmail.com>
Date: Tue, 23 Jul 2013 05:22:47 -0700
Message-ID: <05fd01ce879f$581712a0$084537e0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_05FE_01CE8764.ABD167F0"
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQHQTpdhMabkoa5v2EltdYDF5I7dAAGP8XVaAsDOTjuZTBsWgA==
Content-Language: en-us
Cc: jose@ietf.org
Subject: Re: [jose] Question on enc location
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, 23 Jul 2013 12:23:58 -0000

As a follow up.   Is this legal?

 

{

  Header: <alg:"direct", enc:"AES-GCM"},

  IV: ., tag:., payload:.

}

 

Or is the line

 

Recipients:[{}],

 

Required?

 

From: Richard Barnes [mailto:rlb@ipv.sx] 
Sent: Tuesday, July 23, 2013 5:04 AM
To: Mike Jones
Cc: Jim Schaad; jose@ietf.org
Subject: Re: [jose] Question on enc location

 

In which case, it seems like it should be in the top level header, to avoid
having it repeated every time. 

 

In general, it seems like there are "content" parameters (e.g., enc, zip,
cty) that should go at the top level, and "key" parameters that should be
per-recipient (e.g., alg, epk, salt).  It would be helpful to implementors
to be clear about what goes where. 

 



On Monday, July 22, 2013, Mike Jones wrote:

No - just that the "enc" field for all recipients be the same.

 

From: jose-bounces@ietf.org
<javascript:_e(%7b%7d,%20'cvml',%20'jose-bounces@ietf.org');>
[mailto:jose-bounces@ietf.org
<javascript:_e(%7b%7d,%20'cvml',%20'jose-bounces@ietf.org');> ] On Behalf Of
Jim Schaad
Sent: Monday, July 22, 2013 4:33 PM
To: jose@ietf.org <javascript:_e(%7b%7d,%20'cvml',%20'jose@ietf.org');> 
Subject: [jose] Question on enc location

 

Is there supposed to be a requirement in the JWE specification that the enc
field be in the common protected (or unprotected) header and no in the
individual recipient header information?

 

Jim