Re: [jose] Feedback request on jose tracker issue#11: Should we use RFC 5116 and remove the JWE Integrity Value field?

Matt Miller <mamille2@cisco.com> Mon, 15 April 2013 16:58 UTC

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 3695B21F95DF for <jose@ietfa.amsl.com>; Mon, 15 Apr 2013 09:58:16 -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 ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qJUQtW3np0Nq for <jose@ietfa.amsl.com>; Mon, 15 Apr 2013 09:58:15 -0700 (PDT)
Received: from mtv-iport-3.cisco.com (mtv-iport-3.cisco.com [173.36.130.14]) by ietfa.amsl.com (Postfix) with ESMTP id 0B15F21F9590 for <jose@ietf.org>; Mon, 15 Apr 2013 09:58:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5012; q=dns/txt; s=iport; t=1366045095; x=1367254695; h=mime-version:subject:from:in-reply-to:date:cc:message-id: references:to; bh=Cs6J/dXTWh/iW/jah1GLKe57u70eL/wbwAC9+ifSODw=; b=FUat68F7dCt81bI8EnCZoC67Waua/s7na4MD6f0/SmRS8GbKdLF+orru Tfsl8rHUDn/mVFhDCdBJ0o5NkW+DyAzq+LSDdINex7UA/pX4a/3xqZYtR De3JeC0uA5+VgXVvMLowMllH4cLzBgDp93PjcTDtOu2uAPgiuNiY8H8aQ I=;
X-Files: smime.p7s : 2283
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AlQFAIowbFGrRDoJ/2dsb2JhbABQgwbBOoEHFnSCHwEBAQMBeQULCzsLAlUGE4gCAwkFsg4diU2PFweCYGEDiQWGT4cxhgWLDIFVgVUd
X-IronPort-AV: E=Sophos; i="4.87,476,1363132800"; d="p7s'?scan'208"; a="76146801"
Received: from mtv-core-4.cisco.com ([171.68.58.9]) by mtv-iport-3.cisco.com with ESMTP; 15 Apr 2013 16:58:13 +0000
Received: from [10.129.24.59] ([10.129.24.59]) by mtv-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id r3FGwCOh013167 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 15 Apr 2013 16:58:12 GMT
Content-Type: multipart/signed; boundary="Apple-Mail=_42251A08-1271-45C1-8DDC-EBD1FCB964A5"; protocol="application/pkcs7-signature"; micalg="sha1"
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
From: Matt Miller <mamille2@cisco.com>
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E1150C5F1446@WSMSG3153V.srv.dir.telstra.com>
Date: Mon, 15 Apr 2013 10:58:11 -0600
Message-Id: <C5ABA644-1E84-421E-A7BF-328898CE5D67@cisco.com>
References: <51674E3D.7030004@isoc.org> <255B9BB34FB7D647A506DC292726F6E1150C5F1446@WSMSG3153V.srv.dir.telstra.com>
To: "Manger, James H" <James.H.Manger@team.telstra.com>
X-Mailer: Apple Mail (2.1503)
Cc: "jose@ietf.org" <jose@ietf.org>, "odonoghue@isoc.org" <odonoghue@isoc.org>
Subject: Re: [jose] Feedback request on jose tracker issue#11: Should we use RFC 5116 and remove the JWE Integrity Value field?
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, 15 Apr 2013 16:58:16 -0000

On Apr 11, 2013, at 8:37 PM, "Manger, James H" <James.H.Manger@team.telstra.com> wrote:

> Karen,
> I think this poll conflates 2 issues: a) making the integrity check value part of the ciphertext (as per RFC 5116); and b) not treating the IV in CBC-HMAC as an (app-supplied) AEAD nonce, but as part of the randomized (crypto-library-supplied) ciphertext (as per draft-mcgrew-aead-aes-cbc-hmac-sha2).
> 
> RFC 5116 “An interface and algorithms for authenticated encryption” has a nonce (N) and a separate field to the ciphertext. N is a separate input to the encryption and decryption operations.
> draft-mcgrew-aead-aes-cbc-hmac-sha2 defines AEAD algorithms that take a zero-length nonce, but prefix the ciphertext with a random IV.
> 
> 
> So my answer to the poll:
> 
> 2b.
> Switch to using RFC 5116.
> A JWE should have separate nonce and ciphertext fields (but no separate integrity value field).
> JWE should use the term “nonce”, instead of “initialization vector”.
> Any integrity value that an algorithm creates should be part of the ciphertext.
> When draft-mcgrew-aead-aes-cbc-hmac-sha2 is used as the AEAD algorithm the nonce field will be empty, and the ciphertext field will be a concatenation of an IV, AES output, and the truncated HMAC output.
> 

My preference is also this 2b (or would it be 3?).


- m&m

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