Re: [apps-discuss] draft-farrell-decade-ni-02: glitch in examples
Stephen Farrell <stephen.farrell@cs.tcd.ie> Tue, 10 April 2012 07:48 UTC
Return-Path: <stephen.farrell@cs.tcd.ie>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CCD0221F8757 for <apps-discuss@ietfa.amsl.com>; Tue, 10 Apr 2012 00:48:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.416
X-Spam-Level:
X-Spam-Status: No, score=-103.416 tagged_above=-999 required=5 tests=[AWL=-2.213, BAYES_00=-2.599, MIME_QP_LONG_LINE=1.396, USER_IN_WHITELIST=-100]
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 LTBG9qDpDJ30 for <apps-discuss@ietfa.amsl.com>; Tue, 10 Apr 2012 00:48:43 -0700 (PDT)
Received: from scss.tcd.ie (hermes.scss.tcd.ie [IPv6:2001:770:10:200:889f:cdff:fe8d:ccd2]) by ietfa.amsl.com (Postfix) with ESMTP id CC9CE21F8741 for <apps-discuss@ietf.org>; Tue, 10 Apr 2012 00:48:42 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by hermes.scss.tcd.ie (Postfix) with ESMTP id 870D6171474; Tue, 10 Apr 2012 08:48:39 +0100 (IST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.tcd.ie; h=date :subject:from:x-mailer:message-id:content-type :content-transfer-encoding:mime-version:in-reply-to:references :received:received:x-virus-scanned; s=cs; t=1334044119; bh=UFi3a TwWG4uZRta2+z7l3R7gQQjkvIWYh3ABqtrg3dk=; b=bQSI2oujx/NHJSG/hXHil eFyNeOLzRy15yvRDLw/IqINB5s36mWZUzca4/37JNu8m974TDhBLtXafeRUqHXfk MfVH0TO1l61aZyWsJhoAQqxWRs0H9j96h5YCxthYEeGUytRuPmw9dEdwRSVZKgnf elTGwN98sSbLsDrhboCzKGyFYMdBah5F6ZOWyYj5Eo1GM3JiYDijlP5NZaPNueEv 8xoPYQ0HrGisdyYFx2FPvqZsvuHNGOiAUibwFcOj7t/UGWWlhJPWpXqiGYTQbqKc bh50rx3fMm0GiynBcpuGSs7LM+Dix56o1RJC1elOXme6aw/uNR2MuoUZfQgtKQ3U Q==
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from scss.tcd.ie ([127.0.0.1]) by localhost (scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id 4cy4C9-Fl24g; Tue, 10 Apr 2012 08:48:39 +0100 (IST)
Received: from [10.87.48.6] (unknown [86.46.27.125]) by smtp.scss.tcd.ie (Postfix) with ESMTPSA id 09655171473; Tue, 10 Apr 2012 08:48:33 +0100 (IST)
References: <4F7DFC47.2020604@cs.tcd.ie> <DDCD3226-782B-46E5-9CEB-61E4773CE0B2@tzi.org> <255B9BB34FB7D647A506DC292726F6E114F0499619@WSMSG3153V.srv.dir.telstra.com>
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E114F0499619@WSMSG3153V.srv.dir.telstra.com>
Mime-Version: 1.0 (1.0)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="us-ascii"
Message-Id: <EB918E7B-8C36-44C7-A2FB-7E535F2220A5@cs.tcd.ie>
X-Mailer: iPhone Mail (9B176)
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Date: Tue, 10 Apr 2012 08:48:30 +0100
To: "Manger, James H" <James.H.Manger@team.telstra.com>
Cc: Apps Discuss <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] draft-farrell-decade-ni-02: glitch in examples
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Apr 2012 07:48:43 -0000
Thanks James. Looks odd ok, will check it out & get back, Good catch though, Cheers, S On 10 Apr 2012, at 05:08, "Manger, James H" <James.H.Manger@team.telstra.com> wrote: > Stephen, > > A couple of "typos" in draft-farrell-decade-ni-02: > > The example SubjectPublicKeyInfo is shown in a strange way: each pair of bytes is shown in the opposite order to bytes on the wire (and the offset at the start of the line is in nibbles). The first few bytes of the BER-encoding are 30 820122, while the example starts: > 0000000 8230 2201 0d30 0906 862a 8648 0df7 0101 > > The BER-encoding is actually: > 30 820122 > 30 0D > 06 09 2A86 > ... > > Half of the example names are wrong, almost certainly due to this strange format. > > The 120-bit "Binary Name" in figure 6 is wrong. It swaps the order of bytes (after the first). It should be: > 03 53269057 E12FE2B7 4BA07C89 2560A2 > > The human-readable names (120-bit and 32-bit) are wrong. They have base32-encoded pairs of bytes in the wrong order. They should be: > sha-256-120;kmtjav7bf7rlos5apseskyfc;???? > sha-256-32;kmtjavy;???? > > I am not sure what the correct checksums are. > > The example checksums (eokv and csdh) look wrong. I assume the 4 base32 chars in the checksum should encode 5+5+5+1 bits respectively of the 16-bit CRC. Hence the last char encodes 1 bit, padded with 4 zeros: either 00000 or 10000, which should give 'a' or 'q' (not 'v' or 'h'). > > P.S. A CRC16 is calculated over an array of bytes. However the input is defined as a text string. I guess ASCII/UTF-8 encoding is assumed. It might be better to calculate the CRC over the bytes of the truncated hash. > > > -- > James Manger >
- [apps-discuss] draft-farrell-decade-ni-02 - we th… Stephen Farrell
- Re: [apps-discuss] draft-farrell-decade-ni-02 - w… Peter Saint-Andre
- Re: [apps-discuss] draft-farrell-decade-ni-02 - w… Martin Thomson
- Re: [apps-discuss] draft-farrell-decade-ni-02 - w… Stephen Farrell
- Re: [apps-discuss] draft-farrell-decade-ni-02 - w… Martin Thomson
- Re: [apps-discuss] draft-farrell-decade-ni-02 - w… Carsten Bormann
- Re: [apps-discuss] draft-farrell-decade-ni-02 - w… Stephen Farrell
- Re: [apps-discuss] draft-farrell-decade-ni-02 - w… Stephen Farrell
- Re: [apps-discuss] draft-farrell-decade-ni-02 - w… Carsten Bormann
- Re: [apps-discuss] draft-farrell-decade-ni-02 - w… Stephen Farrell
- Re: [apps-discuss] draft-farrell-decade-ni-02 - w… Stephen Farrell
- [apps-discuss] draft-farrell-decade-ni-02: glitch… Manger, James H
- Re: [apps-discuss] draft-farrell-decade-ni-02: gl… Stephen Farrell
- Re: [apps-discuss] draft-farrell-decade-ni-02: gl… Stephen Farrell
- Re: [apps-discuss] draft-farrell-decade-ni-02: gl… Ari Keranen