Re: [saag] i18n requirements (was: Re: NF* (Re: PKCS#11 URI slot attributes & last call))

Jan Pechanec <jan.pechanec@oracle.com> Tue, 13 January 2015 00:47 UTC

Return-Path: <jan.pechanec@oracle.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9472F1ACE3F; Mon, 12 Jan 2015 16:47:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level:
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, UNPARSEABLE_RELAY=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 733FsOTrdoG5; Mon, 12 Jan 2015 16:47:22 -0800 (PST)
Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F1A3A1ACE4B; Mon, 12 Jan 2015 16:47:21 -0800 (PST)
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t0D0k0d3015111 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 13 Jan 2015 00:46:01 GMT
Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t0D0jxDC007548 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Jan 2015 00:46:00 GMT
Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id t0D0jwof029416; Tue, 13 Jan 2015 00:45:58 GMT
Received: from keflavik.us.oracle.com (/10.132.148.214) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Jan 2015 16:45:58 -0800
Date: Mon, 12 Jan 2015 16:45:57 -0800
From: Jan Pechanec <jan.pechanec@oracle.com>
X-X-Sender: jpechane@keflavik
To: Nico Williams <nico@cryptonector.com>
Subject: Re: [saag] i18n requirements (was: Re: NF* (Re: PKCS#11 URI slot attributes & last call))
In-Reply-To: <20150113000854.GW16323@localhost>
Message-ID: <alpine.GSO.2.00.1501121636360.8555@keflavik>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF5744C@uxcn10-tdc05.UoA.auckland.ac.nz> <2A0EFB9C05D0164E98F19BB0AF3708C71D55675E67@USMBX1.msg.corp.akamai.com> <20150112045411.GD16323@localhost> <54B45A75.1050503@qti.qualcomm.com> <20150113000854.GW16323@localhost>
User-Agent: Alpine 2.00 (GSO 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
Archived-At: <http://mailarchive.ietf.org/arch/msg/ietf/o35fI-wB6j58kOQ-s5zathfN0C4>
Cc: "Salz, Rich" <rsalz@akamai.com>, Pete Resnick <presnick@qti.qualcomm.com>, Peter Gutmann <pgut001@cs.auckland.ac.nz>, "saag@ietf.org" <saag@ietf.org>, "ietf@ietf.org" <ietf@ietf.org>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jan 2015 00:47:25 -0000

On Mon, 12 Jan 2015, Nico Williams wrote:

>On Mon, Jan 12, 2015 at 05:36:21PM -0600, Pete Resnick wrote:
>> On 1/11/15 10:54 PM, Nico Williams wrote:
>> 
>> >On Sun, Jan 11, 2015 at 05:28:30PM -0500, Salz, Rich wrote:
>> >
>> >>>I'd go even further than that and just mandate MUST ASCII.
>> >>I don't know if the IETF is "allowed" to do that any more, but +1 for
>> >>the reasons you list.
>> >I'm not sure if the IESG will agree to that...
>> 
>> Given that this particular member of the IESG has (successfully)
>> argued vehemently for ASCII-only on multiple occasions in the recent
>> past, I would say that your worries on that score are overdone. :-)
>
>Well alright.  I'd love to see a set of guidelines for I18N activities.
>
>When should we try to support Unicode, and when should we not?  Is it
>one of those "I know it when I see it" kinds of guidelines?  That
>wouldn't be useful enough :(
>
>Mind you, IIRC PKCS#11 didn't even say anything about ASCII before.
>Token labels and such used to be fixed-sized octet strings containing
>character data.  Jan can correct me if I'm wrong.  I'm not sure even
>saying "ASCII-only" would necessarily be safe in that case...
>
>Fortunately the OASIS PKCS11 TC has clarified that these are UTF-8;
>unfortunately they left other I18N details out.

	hi Nico, the PKCS#11 specification says those strings are 
UTF-8 back in the last version that is still current (2.20) from 2004 
(didn't check earlier versions).  I don't think that OASIS PKCS11 TC 
has made any changes in that area to upcoming 2.40 and issues of 
normalization have never been brought up there either; I talked about 
it to Valerie Fenwick, one of the chairs of OASIS PKCS11 TC.

	I think that saying that characters from US-ASCII set SHOULD 
be used for labels and names since the PKCS#11 spec is not clear about 
the normalization should be safe here.

	which is what I did in draft 18 I've filed today and it 
contains the changes on how to deal with UTF-8 which have been 
discussed in the last couple of weeks.

https://tools.ietf.org/rfcdiff?url2=draft-pechanec-pkcs11uri-18.txt

	cheers, Jan.

-- 
Jan Pechanec <jan.pechanec@oracle.com>