Re: [Suit] Packed CBOR

Carsten Bormann <cabo@tzi.org> Thu, 30 July 2020 22:03 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: suit@ietfa.amsl.com
Delivered-To: suit@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 633393A0DC4 for <suit@ietfa.amsl.com>; Thu, 30 Jul 2020 15:03:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.92
X-Spam-Level:
X-Spam-Status: No, score=-1.92 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, 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 uHyjGd83Ww3f for <suit@ietfa.amsl.com>; Thu, 30 Jul 2020 15:03:22 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E95CA3A0DBC for <suit@ietf.org>; Thu, 30 Jul 2020 15:03:21 -0700 (PDT)
Received: from [192.168.217.116] (p5089ae91.dip0.t-ipconnect.de [80.137.174.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4BHktw3gk8zygh; Fri, 31 Jul 2020 00:03:20 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <03b101d6669a$0d2c1d80$27845880$@augustcellars.com>
Date: Fri, 31 Jul 2020 00:03:19 +0200
Cc: Brendan Moran <Brendan.Moran@arm.com>, Russ Housley <housley@vigilsec.com>, suit <suit@ietf.org>
X-Mao-Original-Outgoing-Id: 617839399.445407-5e3abd58d0f92c15fcfec1a934093bc7
Content-Transfer-Encoding: quoted-printable
Message-Id: <7A5370E9-B24F-4749-B39E-B92603BB4549@tzi.org>
References: <7C066E44-8C55-4229-993A-28FD0572992B@arm.com> <7A2CA643-5784-428A-8771-08BAC9CA7D0E@vigilsec.com> <8F44F248-5181-487F-85BF-A1DCB5037428@arm.com> <03b101d6669a$0d2c1d80$27845880$@augustcellars.com>
To: Jim Schaad <ietf@augustcellars.com>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/P9CjxMIyS7F2xD5Z2xuQ55VrU8c>
Subject: Re: [Suit] Packed CBOR
X-BeenThere: suit@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Software Updates for Internet of Things <suit.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/suit>, <mailto:suit-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/suit/>
List-Post: <mailto:suit@ietf.org>
List-Help: <mailto:suit-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/suit>, <mailto:suit-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 30 Jul 2020 22:03:25 -0000

> 
> 2.  I cannot answer about all CBOR implementations, but I would expect that the ones that I regularly work with are very likely to adopt it.  

Some implementations would only provide the unpacker, some would provide (various complexity levels of) packing as well.  Note that a CBOR library that does not implement any of this still enables doing the pointer-chasing in the application, so the actual coverage may be greater.

> There are some ideas around things like dictionaries which have not been thought through with any degree of completeness.   My personal expectation is that 18 months would be an earliest possible date but others may disagree with that.

The design space is huge, which tends to slow down development.  I think we will design this in a way that the basic tag 6 packing can be combined with other tags to achieve the more esoteric feature sets.  If we manage to get the interface to these (future) tags right, we might not need those 18 months.  (Anything below 12 months to RFC is certainly unlikely.)

Grüße, Carsten