Re: [Cbor] Combination tags and CBOR Packed

Jim Schaad <ietf@augustcellars.com> Fri, 28 August 2020 23:04 UTC

Return-Path: <ietf@augustcellars.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8E59C3A0D81; Fri, 28 Aug 2020 16:04:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, 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 sGtIkmjBsBTj; Fri, 28 Aug 2020 16:04:44 -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 3B8333A0D5F; Fri, 28 Aug 2020 16:04:44 -0700 (PDT)
Received: from Jude (73.180.8.170) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Aug 2020 16:04:37 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: 'Carsten Bormann' <cabo@tzi.org>
CC: draft-bormann-cbor-packed@ietf.org, cbor@ietf.org
References: <015c01d67d8b$45aefb70$d10cf250$@augustcellars.com> <E6687019-64BF-4F8E-955B-AB6913DBAAA4@tzi.org>
In-Reply-To: <E6687019-64BF-4F8E-955B-AB6913DBAAA4@tzi.org>
Date: Fri, 28 Aug 2020 16:04:35 -0700
Message-ID: <016501d67d8f$9b2b7480$d1825d80$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 16.0
Content-Language: en-us
Thread-Index: AQFGgqOyKmrua/OttujfhS5auzsACwIYTJ/gql1XDsA=
X-Originating-IP: [73.180.8.170]
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/O6K9nwala-NWmKi-3ZUlmipeDT0>
Subject: Re: [Cbor] Combination tags and CBOR Packed
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Aug 2020 23:04:46 -0000


-----Original Message-----
From: Carsten Bormann <cabo@tzi.org> 
Sent: Friday, August 28, 2020 3:40 PM
To: Jim Schaad <ietf@augustcellars.com>
Cc: draft-bormann-cbor-packed@ietf.org; cbor@ietf.org
Subject: Re: [Cbor] Combination tags and CBOR Packed

On 2020-08-29, at 00:33, Jim Schaad <ietf@augustcellars.com> wrote:
> 
> Is it legal to stack up packing tags into a single item?   Is
> 6.229(6.232(simple(1)) legal and does it do what I would expect it to do.
> Specifically it would concatenate three different value that are 
> extracted from the packing tables.

Yes.

(This has approximately the same complexity as an indefinite length string with three components.)
[JLS] No this has much more complexity that the CBOR indefinite string.  It has the complexity of the ASN.1 indefinite string since each of the first two elements could them selves be composite items of multiple components.

(In diagnostic notation, you don’t write the “6.” — that is for CDDL “#6.”....
Apologies for this discontinuity.)
[JLS] And should really know this.  I guess I need to start writing CDDL more often.

Jim


Grüße, Carsten