Re: [Cbor] correctness of implied top level array?

John Mattsson <john.mattsson@ericsson.com> Wed, 13 March 2019 16:49 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 DB6181310B7 for <cbor@ietfa.amsl.com>; Wed, 13 Mar 2019 09:49:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.402
X-Spam-Level:
X-Spam-Status: No, score=-2.402 tagged_above=-999 required=5 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com header.b=VNbHzvsU; dkim=pass (1024-bit key) header.d=ericsson.com header.b=nCRvnQg5
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 EE8tl2tA2p1i for <cbor@ietfa.amsl.com>; Wed, 13 Mar 2019 09:49:44 -0700 (PDT)
Received: from sesbmg23.ericsson.net (sesbmg23.ericsson.net [193.180.251.37]) (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 9649C1310A0 for <cbor@ietf.org>; Wed, 13 Mar 2019 09:49:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/relaxed; q=dns/txt; i=@ericsson.com; t=1552495774; x=1555087774; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6hErp4gwiEpo9ynB7aOjJz0kkiYqyQOB/WYqfKsvgmM=; b=VNbHzvsUAHcH787Jx8sfnHzDaB7rvzGNitPKlQByanhnbp6M4xOKHLFY6lFO7icK /mOgtFFL7eaC0cYjjluIvZHu0dy45OygwJYjYl8QZElUSr+JNoLKYjcDO2PoxA/w eVU7UuHNM4f7Vcl4BG6/FtzFSrDBvFkWD32DySfNpeQ=;
X-AuditID: c1b4fb25-da1ff70000005ff7-95-5c89349e97db
Received: from ESESBMB505.ericsson.se (Unknown_Domain [153.88.183.118]) by sesbmg23.ericsson.net (Symantec Mail Security) with SMTP id 66.71.24567.E94398C5; Wed, 13 Mar 2019 17:49:34 +0100 (CET)
Received: from ESESBMR501.ericsson.se (153.88.183.129) by ESESBMB505.ericsson.se (153.88.183.188) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 13 Mar 2019 17:49:34 +0100
Received: from ESESBMB505.ericsson.se (153.88.183.172) by ESESBMR501.ericsson.se (153.88.183.129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 13 Mar 2019 17:49:34 +0100
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB505.ericsson.se (153.88.183.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Wed, 13 Mar 2019 17:49:33 +0100
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=6hErp4gwiEpo9ynB7aOjJz0kkiYqyQOB/WYqfKsvgmM=; b=nCRvnQg5bZRz8T9jGKJefROQ79Es6/AxowrB+58qSQ8MxvkHCNU0Lz1Rw2oO7SxoLiIUwfWE2rIeY+NshqxeUGECZmC5fuxq+WfoRWUYMRCToORwpXUCgNv1Qeygo8bRRYLBl+SUAHQAFnD/d4kAubIncO2krOi49V0wij9NDEs=
Received: from HE1PR07MB4169.eurprd07.prod.outlook.com (20.176.166.22) by HE1PR07MB3178.eurprd07.prod.outlook.com (10.170.245.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.5; Wed, 13 Mar 2019 16:49:33 +0000
Received: from HE1PR07MB4169.eurprd07.prod.outlook.com ([fe80::ace2:9258:766:85a8]) by HE1PR07MB4169.eurprd07.prod.outlook.com ([fe80::ace2:9258:766:85a8%3]) with mapi id 15.20.1709.011; Wed, 13 Mar 2019 16:49:33 +0000
From: John Mattsson <john.mattsson@ericsson.com>
To: "cbor@ietf.org" <cbor@ietf.org>
Thread-Topic: [Cbor] correctness of implied top level array?
Thread-Index: AQHU2by7czABdriimU2Tsqkq++U7DA==
Date: Wed, 13 Mar 2019 16:49:32 +0000
Message-ID: <C08C1F33-EE18-4E17-A6EA-96002A935DBD@ericsson.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.16.1.190220
authentication-results: spf=none (sender IP is ) smtp.mailfrom=john.mattsson@ericsson.com;
x-originating-ip: [192.176.1.85]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 7fcefe1b-81c8-4376-e009-08d6a7d3de65
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:HE1PR07MB3178;
x-ms-traffictypediagnostic: HE1PR07MB3178:
x-microsoft-antispam-prvs: <HE1PR07MB31786BFECC098BB2E7BBA8B6894A0@HE1PR07MB3178.eurprd07.prod.outlook.com>
x-forefront-prvs: 09752BC779
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(346002)(39860400002)(376002)(366004)(189003)(199004)(5660300002)(2906002)(6436002)(68736007)(2501003)(102836004)(6916009)(3846002)(6116002)(66066001)(2351001)(83716004)(36756003)(486006)(229853002)(4744005)(186003)(2616005)(6506007)(476003)(71200400001)(26005)(6486002)(71190400001)(6512007)(25786009)(478600001)(86362001)(99286004)(53936002)(5640700003)(82746002)(305945005)(256004)(316002)(7736002)(6246003)(58126008)(14454004)(44832011)(1730700003)(81166006)(81156014)(33656002)(8676002)(105586002)(106356001)(97736004)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3178; H:HE1PR07MB4169.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: 59xQ+fYDK34lfU17LMboQEkh0fbNzIRnRAPSJHJdBCPwy+q7YJrpHkaR4F+irCDtt8lvFJ53b+11DPYVi6PyoFwLf9/6tpDgTTn1JUqYFLJIv9b6q0zlvoC6sQ0GMniKyOHKAxTG8I3fEnl+gtO6hoiAhpGs/tSS0Lq6ZjVExrDVoEqdzEGPD0KpVFB+yHEKHzFTbqcd1ncFHD4au42+NIFFEbxk2t4xZtjyzxg27v9xpIZhMt/ZcMzL7cafCInPrnQC7KEBCc/K4zZmkF2twOt2BWu2+loe/h+odriEjwvTb5ulEk4ZvXw+7suV1rUISSaJ1pp2Xd2+sg+qNPxN307zygWwkpx+ySLYFgy40Xk4V9BjLZ942R7ySaHrDtUEDI2muM2z0vxKfViwbL5Ihs6UyyWApuQVX4ZgFtJq+H4=
Content-Type: text/plain; charset="utf-8"
Content-ID: <9FC1124F5D33EB4582E8101134BFD51E@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 7fcefe1b-81c8-4376-e009-08d6a7d3de65
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Mar 2019 16:49:32.6247 (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-Transport-CrossTenantHeadersStamped: HE1PR07MB3178
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnleLIzCtJLcpLzFFi42KZGbG9THeeSWeMwffvKhYzO6azODB6LFny kymAMYrLJiU1J7MstUjfLoEro7nrM2vBJNaKtTOusjQwNrB2MXJySAiYSPS+/8PcxcjFISRw hFHizPSNjBDON0aJbQfeMMM5809cYIdwljBJ3Fv0GCzDIjCBWeL0olusEJlJTBKr7m9jg3Ae AE2bfYMRZA2bgIHE3D0NbCC2iICyxNQph8FsYQFriRsHpzJDxG0klj3+AVWjJ7FhdhMTiM0i oCox5cZjsBpeAXuJG3vb2UFsRgExie+n1oDVMAuIS9x6Mp8J4iUBiSV7zjND2KISLx//A3tV VEBfYkvfAxaI3liJ1tbpQHEOoBoFiYdb/SDKZSUuze9mhLB9Je4t2w32i4TATUaJd1v2skDU a0n03amDMLMlHq9VhiiXkbi6oJsJovweq8ST9dPBzhQSSJVYvrYVaqacxKrehywQReeZJfbM 3cs4gVFnFpIXZgHNZRbQlFi/Sx8i7CFxfNkrZghbUWJK90P2WeCQEJQ4OfMJywJG1lWMosWp xUm56UbGeqlFmcnFxfl5enmpJZsYgcnj4JbfqjsYL79xPMQowMGoxMN7V7kzRog1say4MvcQ owQHs5IIb6geUIg3JbGyKrUoP76oNCe1+BCjNAeLkjjvHyHBGCGB9MSS1OzU1ILUIpgsEwen VAMjq0Xok0ajq4usAm9o9Uimv/93KGv+l/5dMxZy+M8PdXy+QVNL+r2wY9fiBWfY0z8kLbq4 9Na8V3Vuzb8KVwZfm7g1y1jpPaPi7n2+VlM+u6bmexV+6zRY73r/c9UmnydFyeUa6yUSXv+a JLAk6+Nc5TVNRvGyukf6X3SpsQiHFb4SDkxO685WYinOSDTUYi4qTgQA468a4RoDAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/FQy4fKFmsOQhdBsx9U9ABzV7sxU>
Subject: Re: [Cbor] correctness of implied top level array?
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: Wed, 13 Mar 2019 16:49:50 -0000

 Hi,

Great with a document that define a CBOR sequence. I have already made draft-bormann-cbor-sequence a normative reference in EDHOC.

I would like to see CDDL and CBOR diagnostic notation for a CBOR sequence. In lack of something better, EDHOC is currently using the CDDL group notation:

message_1 = (
  TYPE : int,
  SUITES_U : suite / [ index: uint, 2* suite ],
  X_U : bstr,
  C_U : bstr,
  ID_PSK : bstr / header_map,
  ? UAD_1 : bstr,
)

Cheers,
John