Re: [Cbor] draft-ietf-cbor-cddl-control-00 should add CDDL notation for CBOR Sequences
John Mattsson <john.mattsson@ericsson.com> Thu, 05 November 2020 15:10 UTC
Return-Path: <john.mattsson@ericsson.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 8C83A3A12AC for <cbor@ietfa.amsl.com>; Thu, 5 Nov 2020 07:10:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.102
X-Spam-Level:
X-Spam-Status: No, score=-2.102 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com
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 Rho3pm5Yw5Pa for <cbor@ietfa.amsl.com>; Thu, 5 Nov 2020 07:10:38 -0800 (PST)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130084.outbound.protection.outlook.com [40.107.13.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6AE833A129D for <cbor@ietf.org>; Thu, 5 Nov 2020 07:10:38 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YC0uoXfD3xpsyXa7A+IxDvvUQRi/D/hNxfb72JmtPnwQJlSYGPShHHpCSJzm4CqfwSUcXsyX06OittW3gMT/8tH5bDtr7HEHFtnaiNluG33txjnMHwcB4dmRbKhFwVAAm+IYMEUMGvAdllBOOH9FB8MD25JO/iSWD65TMnikN+6F+FPxPRVpKGEvzsrOHXO7WTLq1pdkCph973v0MlCLQxd7JQMqNB6R+2+2/IMBBkSFzdZbkUg8Ibp1v5hP7DLgJcxK20+0IzwxcBX5gGz2clYwLwHQNPCmCzysZHJ9rZIJQ9wj8Znh0RBAXJE/+QtilAwfAypMjkEGxZg/LyB1cw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I3tZmvtbpNvNhK5gRQXzcVdz2xYlTckYGlXcgv3PAFw=; b=fMJj48NYR9Z2eZMZQiULyYu1y8AlDt5LGz0J/lYZ3UNSQIC1OEcI1ghXOMqWvoccNPel5D+cyzxp3q5eotA0UFHYLRYdzkZuPIxTWpNfBt+K2pug9MKb0TnZQtl9xwtNcnQ6O597J8EKyP81NooWrzHaFqeOxC7k0QSZGaS/hFvWsbryQSS54X+XwihJfV7JfWeu3k1fxXY+3GDXwre4Vp29g0ApcMdrHb5vJBD0JEtv0I8Xv1ruc6oOLP3ra08WBLwnzMAn37hc9JNt0LWksKDsfZ6dhW0xHgQPaXVaAa/eKAfqHknBBaZaaXFb0fwSwgcYNUQat9C7zzrfTUqCww==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I3tZmvtbpNvNhK5gRQXzcVdz2xYlTckYGlXcgv3PAFw=; b=L0aV1qP3tYUkFg3YVBlTgIptIM8kor4TEQmRVvjgivI3GWwW0HGOPV6NWIJxI95iXwU72Vje2XRiVxklKn6WNFU2q8f2++ngWNa1b2kivGeFFXG/+cFHKb5ploSG1pZ+YQLxxfzgF1EaLOGAbj8LGiLYdOASuFoq4tEtjn8akc4=
Received: from AM6PR07MB4584.eurprd07.prod.outlook.com (2603:10a6:20b:17::24) by AM7PR07MB6674.eurprd07.prod.outlook.com (2603:10a6:20b:18f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.10; Thu, 5 Nov 2020 15:10:35 +0000
Received: from AM6PR07MB4584.eurprd07.prod.outlook.com ([fe80::951:a4c3:7f39:e39c]) by AM6PR07MB4584.eurprd07.prod.outlook.com ([fe80::951:a4c3:7f39:e39c%5]) with mapi id 15.20.3541.019; Thu, 5 Nov 2020 15:10:35 +0000
From: John Mattsson <john.mattsson@ericsson.com>
To: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>, "cbor@ietf.org" <cbor@ietf.org>
Thread-Topic: [Cbor] draft-ietf-cbor-cddl-control-00 should add CDDL notation for CBOR Sequences
Thread-Index: AQHWs3IlKka0ymeJ+0erUQMYOdAYWam5mQIAgAAX5gD///F2AIAAEyCA
Date: Thu, 05 Nov 2020 15:10:35 +0000
Message-ID: <B63CB2BF-1F68-4ECB-851B-CD794D1203D9@ericsson.com>
References: <317AB3AB-B1E9-4AD9-911E-559D166E2788@ericsson.com> <d45672c4-b42c-fb0f-3ab5-0fcd7712f29b@sit.fraunhofer.de> <FCE40691-EC98-4A0C-9C3E-59F9018A15C8@ericsson.com> <3f63613d-9571-f739-d517-042b4ca9398d@sit.fraunhofer.de>
In-Reply-To: <3f63613d-9571-f739-d517-042b4ca9398d@sit.fraunhofer.de>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.42.20101102
authentication-results: sit.fraunhofer.de; dkim=none (message not signed) header.d=none;sit.fraunhofer.de; dmarc=none action=none header.from=ericsson.com;
x-originating-ip: [81.225.97.222]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 8f10ec73-01f2-40c0-c057-08d8819cf2a7
x-ms-traffictypediagnostic: AM7PR07MB6674:
x-microsoft-antispam-prvs: <AM7PR07MB6674D577612CA3EFF0F2B4EC89EE0@AM7PR07MB6674.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Xey8UMrOn2gg50WNKuWuA8nL33kTP8UfZHUENd/iKW3rgnu0yoWPa359RQDgUzgzTUbseKTB9yO3C50COUyDflHc+1WOzO3z+HOd+QMqhfT8eGwV/c/2tNWpUiczQRUUoufAadGdnfCfhub6yF/KBGykzgyEUN81aU/pRQv2ePJnkm0aI4U3Ydzr6UVabKJN079k/GaAC+pgL74n3zJZdQTZCKIG7sdvRUq46UcV9B0jzhgliuQdvuo6vf0Ht9+xTetDLaDI+5m4eF8jshdNnfUCW11fWdcrx0qmHzSoJiS9f2ifM2O7bNw8Dbz+rXsLbPYPp5ukR7bTNFHG6IoXUB137Y5RqovQK+QF+skhY6xJXK/AegqWGpK3qMn8qy++3CsqU6ngd90BUxRBCa3Gww==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR07MB4584.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(39860400002)(366004)(136003)(91956017)(478600001)(966005)(8676002)(5660300002)(6512007)(83380400001)(2616005)(316002)(86362001)(66476007)(2906002)(64756008)(66446008)(44832011)(33656002)(110136005)(76116006)(36756003)(26005)(6486002)(66946007)(8936002)(71200400001)(6506007)(66556008)(186003)(53546011); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: RiKHYhAOPvh3xIj3g9LsWuYhYrkuDiaVwf7BCdINT2gsIweG5aRtgAX1RdJZDALePZuI5Ptc4kthIpkqHrPu8zDmfPHJGbtfaikLazKM9CF9gOaa9iMeJGgDeZf/q69GpgRVhSPcbif2XK3Mqg0RPF0th5HAMw2hLE+Z02f9UFDi43Ybe+a9pFvFKtFqtVKPjtyrzsvNhBLS3M0fv18OzaLGZZi9FBJ2wJhKTumrYElri7srZ8zdFag7ebH8TVNHa7/OUpBeZogAgW6GEu3HDkmcwVn9FiOv9xtrrVqOJDjYIjawG+BHnyze2fYVdXolqTpnXQ4gvFg4NBMOpFQodb7dHTYXiOCB4D5y1S+nSKq+YZg+1gMWgPfTWoQ73oAqOHQ88c/jy5PsDcor+lK/QnwwhKT5XehUnfZlf/AzGZEdl9oPlvQad61T7Hfj0a/sr7O6oGq+y0SMv3Hkyho375P95U8JQQQ7Hx1Xh9P7rCC/G2aM3xmm1VGhvUjERr/xSUz728HbctGggDnTw3XlQ7sQ+Xu6z2kwb4+uglLQI6j8J0PzRmCaWxP6EJmf7uqemtFHpQ/YnzJVMmAvn0Plem6cXXGB8TEewubkVeMfujPtBqLXpCbpoomKWABtX4C57tDXF+oxT7w8LFL+H0Okew==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <041164F1D1FF5547843A36EEFE36378C@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM6PR07MB4584.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 8f10ec73-01f2-40c0-c057-08d8819cf2a7
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2020 15:10:35.8346 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: KK6H0kg+1/40A1pd8BwLc9elhDUYMOxjqWNmXwB/q3TDo48+Pud94HDmT0emU9FZfrOB1TuQnH5nmBLiugFzQ7+084MSkNGwjsqP3X8sLaw=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6674
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/kGvNZkaHgpqLe-oXFkS372h87X8>
Subject: Re: [Cbor] draft-ietf-cbor-cddl-control-00 should add CDDL notation for CBOR Sequences
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: Thu, 05 Nov 2020 15:10:41 -0000
Hi Henk, The CDDL my-embedded-cbor-seq = bytes .cborseq my-array mathches a CBOR sequence wrapped in a byte string. I.e. "bytes .cborseq [ 1, 2 ]" would match the CBOR encoding 0x420102 All the document I cited use unadorned CBOR Sequences (i.e. not wrapped in a byte string). As far as I know there is no way to write CDDL that matches the unadorned CBOR Sequence 0x0102 ( 1, 2 ). I think this needs to be fixed. John -----Original Message----- From: Henk Birkholz <henk.birkholz@sit.fraunhofer.de> Date: Thursday, 5 November 2020 at 16:02 To: John Mattsson <john.mattsson@ericsson.com>, "cbor@ietf.org" <cbor@ietf.org> Subject: Re: [Cbor] draft-ietf-cbor-cddl-control-00 should add CDDL notation for CBOR Sequences Hi John, I might be totally missing something obvious here - it's just that I am having a hard time visualizing your problem at the moment. Maybe asking the obvious can help (me getting a grasp of the issue). Why does the following recommendation from RFC8764 not help you? > my-embedded-cbor-seq = bytes .cborseq my-array > my-array = [* my-element] > my-element = my-foo / my-bar Viele Grüße, Henk On 05.11.20 15:54, John Mattsson wrote: > Hi Henk, > > To quote RFC 8764 > > 1) "CBOR Sequences are already supported as contents of byte strings using the ".cborseq" control operator" > 2) "CDDL does not provide for unadorned CBOR Sequences as a top-level subject of a specification" > > All the document I cited do 2) not 1) .cborseq as currently specified is not a solution. > > Cheers, > John > > -----Original Message----- > From: Henk Birkholz <henk.birkholz@sit.fraunhofer.de> > Date: Thursday, 5 November 2020 at 15:29 > To: John Mattsson <john.mattsson@ericsson.com>, "cbor@ietf.org" <cbor@ietf.org> > Subject: Re: [Cbor] draft-ietf-cbor-cddl-control-00 should add CDDL notation for CBOR Sequences > > Hi John, > > as the control for cborseq is introduced in: > >> https://tools.ietf.org/html/rfc8610#section-3.8.4 > > and RFC8742 states that: > >> Currently, CDDL does not provide for unadorned CBOR Sequences as a >> top-level subject of a specification. For now, the suggestion is to >> use an array for the top-level rule, as is used for the ".cborseq" >> control operator, and add English text that explains that the >> specification is really about a CBOR Sequence with the elements of >> the array > > it seems to me that you are asking for a specific CDDL notation that can > represent a cborseq as a top-level subject. Why is using an array here > not good enough in your case? > > Viele Grüße, > > Henk > > On 05.11.20 13:49, John Mattsson wrote: >> Hi, >> >> I the most important missing piece in RFC 8610 is the lack of CDDL for CBOR Sequences (RFC 8742) and I think draft-ietf-cbor-cddl-control would be a good place to add CDDL for that. >> >> CBOR sequences has already been standardized in RFC 8742. CBOR sequences are used quite heavily in IETF documents such as RFC 8769, draft-ietf-6tisch-minimal-security, draft-ietf-lake-edhoc, draft-palombini-core-oscore-edhoc, draft-mattsson-cose-cbor-cert-compress, etc. >> >> I don't understand all the complexities of CDDL formalism, but this seems like a quite easy thing to solve. I do not care exactly which notation is used, but could we please just agree on something and put in a draft. >> >> The notation could be something like: >> >> - reuse the CDDL notation for group ( ... ) >> - reuse the Diagnostic Notation for CBOR sequences << ... >> >> - Some modification of the CDDL array notation ] ... [ >> - Something looking like symbol swearing #$%@#$% ... #$%@#$% >> ... >> >> Cheers, >> John >> >> >> >> >> >> >> >> _______________________________________________ >> CBOR mailing list >> CBOR@ietf.org >> https://www.ietf.org/mailman/listinfo/cbor >> >
- Re: [Cbor] draft-ietf-cbor-cddl-control-00 should… Henk Birkholz
- [Cbor] draft-ietf-cbor-cddl-control-00 should add… John Mattsson
- Re: [Cbor] draft-ietf-cbor-cddl-control-00 should… Henk Birkholz
- Re: [Cbor] draft-ietf-cbor-cddl-control-00 should… John Mattsson
- Re: [Cbor] draft-ietf-cbor-cddl-control-00 should… John Mattsson
- Re: [Cbor] draft-ietf-cbor-cddl-control-00 should… Carsten Bormann
- Re: [Cbor] draft-ietf-cbor-cddl-control-00 should… Henk Birkholz
- Re: [Cbor] draft-ietf-cbor-cddl-control-00 should… Henk Birkholz
- Re: [Cbor] draft-ietf-cbor-cddl-control-00 should… John Mattsson
- Re: [Cbor] draft-ietf-cbor-cddl-control-00 should… Carsten Bormann
- Re: [Cbor] draft-ietf-cbor-cddl-control-00 should… Andrew Weiss
- Re: [Cbor] draft-ietf-cbor-cddl-control-00 should… Andrew Weiss