Re: [COSE] [Technical Errata Reported] RFC8152 (5669)

Jim Schaad <ietf@augustcellars.com> Mon, 25 March 2019 21:37 UTC

Return-Path: <ietf@augustcellars.com>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6AC9D1200F6 for <cose@ietfa.amsl.com>; Mon, 25 Mar 2019 14:37:17 -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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 rm3WzpWlG8RB for <cose@ietfa.amsl.com>; Mon, 25 Mar 2019 14:37:15 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C56721200F5 for <cose@ietf.org>; Mon, 25 Mar 2019 14:37:14 -0700 (PDT)
Received: from Jude (31.133.145.82) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 25 Mar 2019 14:37:01 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: 'Benjamin Kaduk' <kaduk@mit.edu>
CC: 'RFC Errata System' <rfc-editor@rfc-editor.org>, ekr@rtfm.com, ivaylo@ackl.io, linuxwolf+ietf@outer-planes.net, marco.tiloca@ri.se, cose@ietf.org
References: <20190323172649.46604B81B5D@rfc-editor.org> <20190323221119.GJ88959@kduck.mit.edu> <02bc01d4e21b$7b5f6230$721e2690$@augustcellars.com> <20190324134808.GL77890@kduck.mit.edu> <02d601d4e24c$1eea2400$5cbe6c00$@augustcellars.com> <20190325204936.GN77890@kduck.mit.edu>
In-Reply-To: <20190325204936.GN77890@kduck.mit.edu>
Date: Mon, 25 Mar 2019 22:36:45 +0100
Message-ID: <03e401d4e352$e2225030$a666f090$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQFSpi/0xSBkWJphI5Zg67wj20UyRgMJo53YAeXJj5UCFRbBywG7gbnIAa4JZ1amzeisMA==
Content-Language: en-us
X-Originating-IP: [31.133.145.82]
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/tCer-T4Tf5Lf7voPgGEwFytIePM>
Subject: Re: [COSE] [Technical Errata Reported] RFC8152 (5669)
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cose>, <mailto:cose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose/>
List-Post: <mailto:cose@ietf.org>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cose>, <mailto:cose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 25 Mar 2019 21:37:17 -0000

Yes, I will then make the appropriate edits and ensure that everything is
right, even if it is not exactly what the errata says.

> -----Original Message-----
> From: Benjamin Kaduk <kaduk@mit.edu>
> Sent: Monday, March 25, 2019 9:50 PM
> To: Jim Schaad <ietf@augustcellars.com>
> Cc: 'RFC Errata System' <rfc-editor@rfc-editor.org>; ekr@rtfm.com;
> ivaylo@ackl.io; linuxwolf+ietf@outer-planes.net; marco.tiloca@ri.se;
> cose@ietf.org
> Subject: Re: [Technical Errata Reported] RFC8152 (5669)
> 
> On Sun, Mar 24, 2019 at 03:16:02PM +0100, Jim Schaad wrote:
> > Yeah, that is a cut and paste error.  I just make everything be the
> > generic type and forgot to clean them down.
> >
> > Should do that as part of the bis update.
> 
> Okay.  So it sounds like we do intend for this to be uint, so I should
take the
> errata as-is?
> 
> Thanks,
> 
> Ben
> 
> > Jim
> >
> >
> > > -----Original Message-----
> > > From: Benjamin Kaduk <kaduk@mit.edu>
> > > Sent: Sunday, March 24, 2019 2:48 PM
> > > To: Jim Schaad <ietf@augustcellars.com>
> > > Cc: 'RFC Errata System' <rfc-editor@rfc-editor.org>; ekr@rtfm.com;
> > > ivaylo@ackl.io; linuxwolf+ietf@outer-planes.net; marco.tiloca@ri.se;
> > > cose@ietf.org
> > > Subject: Re: [Technical Errata Reported] RFC8152 (5669)
> > >
> > > On Sun, Mar 24, 2019 at 09:27:50AM +0100, Jim Schaad wrote:
> > > > In the CBOR encoding it is pretty simple as non-negative integers
> > > > and negative integers are encoded as separate types.
> > >
> > > Right.  But if I look at, e.g.,
> > >
> > >    COSE_Key = {
> > >        1 => tstr / int,          ; kty
> > >        ? 2 => bstr,              ; kid
> > >        ? 3 => tstr / int,        ; alg
> > >        ? 4 => [+ (tstr / int) ], ; key_ops
> > >        ? 5 => bstr,              ; Base IV
> > >        * label => values
> > >    }
> > >
> > > that has 'kty' as tstr / int, and 'int' is defined as either an
> > > unsigned
> > integer or a
> > > negative integer, so that doesn't really force it to be in the
> > > unsigned
> > space.
> > >
> > > (I'm not terribly sure that that's the right CDDL in which values
> > > from the registry go, though.)
> > >
> > > -Ben
> >