Re: [jose] WG Last Call Comments: draft-ietf-jose-json-web-algorithms-25
Mike Jones <Michael.Jones@microsoft.com> Mon, 07 April 2014 21:58 UTC
Return-Path: <Michael.Jones@microsoft.com>
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 F28521A02CB for <jose@ietfa.amsl.com>; Mon, 7 Apr 2014 14:58:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 GyGOd-Rnskdf for <jose@ietfa.amsl.com>; Mon, 7 Apr 2014 14:58:24 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1lp0140.outbound.protection.outlook.com [207.46.163.140]) by ietfa.amsl.com (Postfix) with ESMTP id 7BE641A0326 for <jose@ietf.org>; Mon, 7 Apr 2014 14:58:08 -0700 (PDT)
Received: from BL2PR03CA021.namprd03.prod.outlook.com (10.141.66.29) by BL2PR03MB115.namprd03.prod.outlook.com (10.255.230.26) with Microsoft SMTP Server (TLS) id 15.0.913.9; Mon, 7 Apr 2014 21:58:00 +0000
Received: from BL2FFO11FD037.protection.gbl (2a01:111:f400:7c09::161) by BL2PR03CA021.outlook.office365.com (2a01:111:e400:c1b::29) with Microsoft SMTP Server (TLS) id 15.0.898.11 via Frontend Transport; Mon, 7 Apr 2014 21:58:01 +0000
Received: from mail.microsoft.com (131.107.125.37) by BL2FFO11FD037.mail.protection.outlook.com (10.173.161.133) with Microsoft SMTP Server (TLS) id 15.0.918.6 via Frontend Transport; Mon, 7 Apr 2014 21:58:00 +0000
Received: from TK5EX14MBXC286.redmond.corp.microsoft.com ([169.254.1.232]) by TK5EX14HUBC106.redmond.corp.microsoft.com ([157.54.80.61]) with mapi id 14.03.0181.007; Mon, 7 Apr 2014 21:57:22 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: "Hollenbeck, Scott" <shollenbeck@verisign.com>, "jose@ietf.org" <jose@ietf.org>
Thread-Topic: WG Last Call Comments: draft-ietf-jose-json-web-algorithms-25
Thread-Index: Ac9QaAE5gHZEnqC9QEeRd+6hBwR9wACMih2A
Date: Mon, 07 Apr 2014 21:57:22 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439A14AE99@TK5EX14MBXC286.redmond.corp.microsoft.com>
References: <831693C2CDA2E849A7D7A712B24E257F49398196@BRN1WNEXMBX01.vcorp.ad.vrsn.com>
In-Reply-To: <831693C2CDA2E849A7D7A712B24E257F49398196@BRN1WNEXMBX01.vcorp.ad.vrsn.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [157.54.51.78]
Content-Type: multipart/mixed; boundary="_004_4E1F6AAD24975D4BA5B16804296739439A14AE99TK5EX14MBXC286r_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009001)(438001)(377454003)(51914003)(199002)(189002)(13464003)(83072002)(512954002)(33656001)(54356001)(93516002)(85852003)(74366001)(76786001)(86362001)(93136001)(76796001)(94316002)(74876001)(19300405004)(92566001)(54316002)(74706001)(56776001)(15202345003)(92726001)(76482001)(95666003)(81542001)(81342001)(71186001)(83322001)(44976005)(55846006)(19580395003)(19580405001)(47736001)(97186001)(95416001)(97336001)(49866001)(6806004)(47976001)(16236675002)(53806001)(50986001)(84676001)(46102001)(4396001)(47446002)(74502001)(65816001)(80976001)(97736001)(15975445006)(66066001)(2009001)(80022001)(74662001)(85306002)(56816005)(20776003)(63696002)(84326002)(568964001)(90146001)(87266001)(79102001)(81686001)(87936001)(59766001)(81816001)(99396002)(2656002)(77096001)(98676001)(69226001)(31966008)(77982001)(94946001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB115; H:mail.microsoft.com; FPR:EE26F5FD.ACF2DB13.F0F2BDCB.4EEB7178.204CE; MLV:sfv; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en;
X-O365ENT-EOP-Header: Message processed by - O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 0174BD4BDA
Received-SPF: Pass (: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=; client-ip=131.107.125.37; helo=mail.microsoft.com;
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/TjJ5R5E0JpAFvq0BRFb47P1itmY
Cc: "Kaliski, Burt" <bkaliski@verisign.com>
Subject: Re: [jose] WG Last Call Comments: draft-ietf-jose-json-web-algorithms-25
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: Mon, 07 Apr 2014 21:58:33 -0000
Thanks for the useful reviews, Scott and Burt. Replies are inline. -----Original Message----- From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Hollenbeck, Scott Sent: Friday, April 04, 2014 5:43 PM To: jose@ietf.org Cc: Kaliski, Burt Subject: [jose] WG Last Call Comments: draft-ietf-jose-json-web-algorithms-25 Sec. 3.4: For ECDSA P-521 SHA-512, as noted, "R and S will be 521 bits each, resulting in a 132-octet sequence." Unclear how R and S are to be converted into respective 66-octet values (pad with 0 bits on the left versus right). Should be consistent with practice in other specifications, e.g., IEEE 1363. Per http://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-25#section-6.2.1.2, this is specified by the SEC1 specification, which the "x" and "y" definitions reference. (SEC1 specifies padding on the left in Section 2.3.1 - "BitString-to-OctetString Conversion".) Sec. 4.1: Any interest in RSA-KEM as a CEK-determination method, e.g., as specified in RFC 5990? RFC 5990 only provides a key-wrapping version (output of KDF, i.e., the KEK, is used to wrap the CEK), but the specification could be adapted to a "direct" version where the output of the KDF itself is used as a CEK. The set of algorithms included in JWA are based upon a survey done of the algorithms that are actually widely deployed across common development tools, and will therefore result in interoperable implementations. The results of that survey are captured in the attached spreadsheet. During the survey, no one made the case that RSA-KEM was widely deployed, and therefore should be included in the standard set of algorithms. That being said, there's nothing stopping people from writing a spec defining an RSA-KEM algorithm identifier and registering it in the JSON Web Signature and Encryption Algorithms Registry if it's useful in their application context. Sec. 4.3: RSAES-OAEP as defined in RFC 3447 allows other hash functions and MGFs than the default (MGF1 with SHA-1). Because SHA1 is being phased out for other purposes (though not necessarily unsuitable for MGF1 or OAEP purposes), should SHA256/384/512 options also be specified here? No algorithm identifiers / OIDs would need to be defined, just the JWK parameter syntax, e.g., in additional header parameters, or with a new "alg" header parameter. This was discussed early in the working group. Again, because the focus of the algorithms chosen is on ones that are actually widely deployed, the default OAEP settings were chosen. Many implementations don't provide a way of specifying non-default OAEP parameters, and as you point out, SHA-1 for OAEP purposes is not unsuitable. Again, if people want to define new algorithm identifiers for OAEP with different parameters, they can, but this won't necessarily result in widely interoperable implementations. Sec. 4.6.2: The AlgorithmID value is derived from either the "enc" or the "alg" header parameter value. It is not clear whether the UTF-8 parameter value includes the tag as well as the value, or just the value. In the latter case, to ensure cryptographic separation between the two cases, it should be stated elsewhere that the set of allowed "enc" and "alg" header parameter values should be distinct from one another. The text says: In the Direct Key Agreement case, Data is set to the octets of the UTF-8 representation of the "enc" Header Parameter value. In the Key Agreement with Key Wrapping case, Data is set to the octets of the UTF-8 representation of the "alg" Header Parameter value. "Header Parameter value" as used in JWE is just the value - not also the name, which is called "Header Parameter name". Per your second comment, the "Direct Key Agreement case" only occurs when "alg" is "dir", so there's no actual ambiguity. Burt and Scott Best wishes, -- Mike _______________________________________________ jose mailing list jose@ietf.org<mailto:jose@ietf.org> https://www.ietf.org/mailman/listinfo/jose
- [jose] WG Last Call Comments: draft-ietf-jose-jso… Hollenbeck, Scott
- Re: [jose] WG Last Call Comments: draft-ietf-jose… Mike Jones
- Re: [jose] WG Last Call Comments: draft-ietf-jose… Brian Campbell
- Re: [jose] WG Last Call Comments: draft-ietf-jose… Mike Jones
- Re: [jose] WG Last Call Comments: draft-ietf-jose… Hollenbeck, Scott
- Re: [jose] WG Last Call Comments: draft-ietf-jose… Mike Jones
- Re: [jose] WG Last Call Comments: draft-ietf-jose… Hollenbeck, Scott