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

Jim Schaad <ietf@augustcellars.com> Sun, 24 March 2019 14:16 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 631F412796F for <cose@ietfa.amsl.com>; Sun, 24 Mar 2019 07:16:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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 c3Wydn_DSDFx for <cose@ietfa.amsl.com>; Sun, 24 Mar 2019 07:16:14 -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 E78BD1277C9 for <cose@ietf.org>; Sun, 24 Mar 2019 07:16:13 -0700 (PDT)
Received: from Jude (31.133.136.100) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 24 Mar 2019 07:16:04 -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>
In-Reply-To: <20190324134808.GL77890@kduck.mit.edu>
Date: Sun, 24 Mar 2019 15:16:02 +0100
Message-ID: <02d601d4e24c$1eea2400$5cbe6c00$@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/0xSBkWJphI5Zg67wj20UyRgMJo53YAeXJj5UCFRbBy6bnJ4tw
Content-Language: en-us
X-Originating-IP: [31.133.136.100]
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/55GU9LOqgaEv4kOlQ3TsKLHVu80>
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: Sun, 24 Mar 2019 14:16:17 -0000

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.

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