
From nobody Tue May  4 04:49:58 2021
Return-Path: <cabo@tzi.org>
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 50B263A3125; Tue,  4 May 2021 04:49:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.219
X-Spam-Level: 
X-Spam-Status: No, score=-4.219 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 qqitRxZMYowg; Tue,  4 May 2021 04:49:45 -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 6B7273A3124; Tue,  4 May 2021 04:49:44 -0700 (PDT)
Received: from [192.168.217.118] (p548dcb12.dip0.t-ipconnect.de [84.141.203.18]) (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 4FZJ6Y3h7TzyWg; Tue,  4 May 2021 13:49:41 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <9e811395-2f56-f2b2-b4a6-c686544cb1ef@codalogic.com>
Date: Tue, 4 May 2021 13:49:41 +0200
Cc: Daniel P <danielaparker@gmail.com>, JSON WG <json@ietf.org>, cbor@ietf.org
X-Mao-Original-Outgoing-Id: 641821781.044234-a5949ef69ac687f8a061feab3db8a667
Content-Transfer-Encoding: quoted-printable
Message-Id: <DC77FE0A-E0E1-4A92-AD7D-4522E450BED4@tzi.org>
References: <CA+mwktLWwDRYtF9BFSRnF4e7_v=e3F4HERS5yHptSksxGBysnQ@mail.gmail.com> <F1A006F9-8743-4930-B879-F83339A38485@tzi.org> <9e811395-2f56-f2b2-b4a6-c686544cb1ef@codalogic.com>
To: Pete Cordell <petejson@codalogic.com>
X-Mailer: Apple Mail (2.3608.120.23.2.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/0byabTP4ZyKsXoMWHdQE2TfOgzE>
Subject: Re: [Cbor] [Json] Update Standard to support ECMA-262 BigInt
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: Tue, 04 May 2021 11:49:51 -0000

Hi Pete,

> Firstly, Carsten, do you or anyone else knows of any IETF WGs using =
CDDL to define JSON data?

Sure.

I=E2=80=99m not keeping a list, and the info is a bit scattered, but you =
can start from=20

https://datatracker.ietf.org/doc/rfc8610/referencedby/

E.g.,

https://datatracker.ietf.org/doc/draft-ietf-asdf-sdf/
https://datatracker.ietf.org/doc/draft-ietf-ace-aif/
https://datatracker.ietf.org/doc/draft-ietf-ace-mqtt-tls-profile/
=
https://datatracker.ietf.org/doc/draft-ietf-anima-bootstrapping-keyinfra/

Sorry, I stopped at WGs starting with =E2=80=9Ca=E2=80=9D, but you can =
continue if you want=E2=80=A6

(The data is skewed a bit because WGs that are aware about CDDL often =
also are aware about CBOR and are using that for encoding what would =
maybe have been encoded in JSON otherwise.)

If you want to get started with using CDDL for JSON, RFC 8610 has a =
little appendix with a worked example for the JSON in RFC 7071:
https://www.rfc-editor.org/rfc/rfc8610.html#appendix-H

> As for what I think JCR offers that I don't think CDDL currently =
offers:
>=20
> 1.
> JCR has a simple way to combine multiple rulesets.  In one ruleset you =
might have:
>=20
>   #ruleset-id org.ietf.example1
>=20
>   $foo =3D int32
>=20
> Then in another ruleset:
>=20
>   #import org.ietf.example1 as ex1
>=20
>   {
>      "id" : $ex1.foo
>   }
>=20
> Here, $ex1.foo refers to $foo defined in the ruleset with id =
org.ietf.example1.

Yep, the top item on the list for CDDL 2.0, probably this year.
Right now, you have to concatenate by hand.

(As we already did before with CDDL =E2=80=9Cgroups=E2=80=9D (*), we are =
certainly going to learn from JCR when defining the CDDL =
import/export/module feature.  We are certainly also going to learn from =
YANG, the other IETF data definition language.)

> 2.
> Although possibly not formally released, we were considering a way of =
declaring that a string had to adhere to an arbitrary format.  This was =
a way of adding additional string based types (as there is no other =
option in JSON for extended types!) without adding new base types (like =
int32, date-http etc).  So, in a ruleset you could specify something =
like:
>=20
>   #ruleset-id org.ietf.extended-types
>=20
>   $rfc2822-date-time =3D
>         @{format org.ietf.extended-types.rfc2822.date-time} string
>=20
> Then use it as:
>=20
>   #import org.ietf.extended-types as iet
>=20
>   {
>      "start-time" : $iet.rfc2822-date-time,
>      "end-time" : $iet.rfc2822-date-time
>   }
>=20
> The spec for the "org.ietf.extended-types.rfc2822.date-time" format =
might read something like:
>=20
>   Formatted according to the RFC2822 date-time ABNF but omitting
>   the trailing [CFWS] term.

I don=E2=80=99t think one ever, ever wants to use RFC 2822 (5322) =
date-time, but here is a snippet from =
https://datatracker.ietf.org/doc/draft-ietf-cbor-cddl-control/, which is =
in pre-WGLC review (with X and Y for things that are not relevant here):

   X =3D text .abnf full-date
   Y =3D text .abnf date-time

   full-date =3D "full-date" .det rfc3339
   date-time =3D "date-time" .det rfc3339

   ; Note the trick of idiomatically starting with a newline, separating
   ;   off the element in the concatenations above from the rule-list
   rfc3339 =3D '
      date-fullyear   =3D 4DIGIT
      date-month      =3D 2DIGIT  ; 01-12
      date-mday       =3D 2DIGIT  ; 01-28, 01-29, 01-30, 01-31 based on
                                ; month/year
      time-hour       =3D 2DIGIT  ; 00-23
      time-minute     =3D 2DIGIT  ; 00-59
      time-second     =3D 2DIGIT  ; 00-58, 00-59, 00-60 based on leap =
sec
                                ; rules
      time-secfrac    =3D "." 1*DIGIT
      time-numoffset  =3D ("+" / "-") time-hour ":" time-minute
      time-offset     =3D "Z" / time-numoffset

      partial-time    =3D time-hour ":" time-minute ":" time-second
                        [time-secfrac]
      full-date       =3D date-fullyear "-" date-month "-" date-mday
      full-time       =3D partial-time time-offset

      date-time       =3D full-date "T" full-time
   ' .cat rfc5234-core

   rfc5234-core =3D '
      DIGIT          =3D  %x30-39 ; 0-9
      ; abbreviated here
   '

These are some examples the cddl tool generates for X:

"6962-26-77"
"7578-39-91"
"5073-91-77"
"1258-31-15"
"9316-20-59"
"8308-23-92"
"2131-42-71"
"6573-08-96"
"3120-88-30"
"4322-41-98=E2=80=9D

Well, the ABNF is a bit loose :-)

RFC 8610 also has a .regexp control operator (using W3C XSD regexps, but =
other flavors can be added as needed).

[=E2=80=A6]

> currently my gut feeling is that if those sorts of features are =
supported in CDDL, it would be worth adopting CDDL for JSON format =
specification. =20

Indeed.

> Primarily because it has a formally published spec!

It also is pretty alive and responding to user requirements.

Gr=C3=BC=C3=9Fe, Carsten

(*) =46rom RFC 8610:

Acknowledgements

   Inspiration was taken from the C and Pascal languages, MPEG's
   conventions for describing structures in the ISO base media file
   format, RELAX NG and its compact syntax [RELAXNG], and, in
   particular, Andrew Lee Newton's early proposals on JSON Content Rules
   (JCR) as found in draft version four (-04) of [JCR].



From nobody Tue May  4 06:06:09 2021
Return-Path: <petejson@codalogic.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 CAF273A0765 for <cbor@ietfa.amsl.com>; Tue,  4 May 2021 06:06:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable 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 hqbtWiwFoNoL for <cbor@ietfa.amsl.com>; Tue,  4 May 2021 06:05:59 -0700 (PDT)
Received: from ppsa-online.com (ppsa-online.com [217.199.162.192]) (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 80AF33A0766 for <cbor@ietf.org>; Tue,  4 May 2021 06:05:58 -0700 (PDT)
Received: (qmail 11793 invoked from network); 4 May 2021 14:05:56 +0100
Received: from host31-49-16-155.range31-49.btcentralplus.com (HELO ?192.168.1.72?) (31.49.16.155) by lvps217-199-162-217.vps.webfusion.co.uk with ESMTPS (TLS_AES_128_GCM_SHA256 encrypted, authenticated); 4 May 2021 13:05:56 -0000
To: Carsten Bormann <cabo@tzi.org>
Cc: Daniel P <danielaparker@gmail.com>, JSON WG <json@ietf.org>, cbor@ietf.org
References: <CA+mwktLWwDRYtF9BFSRnF4e7_v=e3F4HERS5yHptSksxGBysnQ@mail.gmail.com> <F1A006F9-8743-4930-B879-F83339A38485@tzi.org> <9e811395-2f56-f2b2-b4a6-c686544cb1ef@codalogic.com> <DC77FE0A-E0E1-4A92-AD7D-4522E450BED4@tzi.org>
From: Pete Cordell <petejson@codalogic.com>
Message-ID: <9771fc21-0193-1338-a128-fb9bdf00db66@codalogic.com>
Date: Tue, 4 May 2021 14:05:56 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0
MIME-Version: 1.0
In-Reply-To: <DC77FE0A-E0E1-4A92-AD7D-4522E450BED4@tzi.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/eiqRZUtLDUSrbLerMLyJ6Akc-3I>
Subject: Re: [Cbor] [Json] Update Standard to support ECMA-262 BigInt
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: Tue, 04 May 2021 13:06:06 -0000

Thanks Carsten,

Comments below...

On 04/05/2021 12:49, Carsten Bormann wrote:
>>...
>>
>> 2.
>> Although possibly not formally released, we were considering a way of declaring that a string had to adhere to an arbitrary format.  This was a way of adding additional string based types (as there is no other option in JSON for extended types!) without adding new base types (like int32, date-http etc).  So, in a ruleset you could specify something like:
>>
>>    #ruleset-id org.ietf.extended-types
>>
>>    $rfc2822-date-time =
>>          @{format org.ietf.extended-types.rfc2822.date-time} string
>>
>> Then use it as:
>>
>>    #import org.ietf.extended-types as iet
>>
>>    {
>>       "start-time" : $iet.rfc2822-date-time,
>>       "end-time" : $iet.rfc2822-date-time
>>    }
>>
>> The spec for the "org.ietf.extended-types.rfc2822.date-time" format might read something like:
>>
>>    Formatted according to the RFC2822 date-time ABNF but omitting
>>    the trailing [CFWS] term.
> 
> I don’t think one ever, ever wants to use RFC 2822 (5322) date-time, but here is a snippet from https://datatracker.ietf.org/doc/draft-ietf-cbor-cddl-control/, which is in pre-WGLC review (with X and Y for things that are not relevant here):

Indeed.  I picked an intentionally grizzly example that you wouldn't 
want to capture in a regular expression or similar.

>     X = text .abnf full-date
>     Y = text .abnf date-time
> 
>     full-date = "full-date" .det rfc3339
>     date-time = "date-time" .det rfc3339
> 
>     ; Note the trick of idiomatically starting with a newline, separating
>     ;   off the element in the concatenations above from the rule-list
>     rfc3339 = '
>        date-fullyear   = 4DIGIT
>... >
> These are some examples the cddl tool generates for X:
> 
> "6962-26-77"
> "7578-39-91"
> "5073-91-77"
> "1258-31-15"
> "9316-20-59"
> "8308-23-92"
> "2131-42-71"
> "6573-08-96"
> "3120-88-30"
> "4322-41-98”
> 
> Well, the ABNF is a bit loose :-)

That's where the concept of @{format 
org.ietf.extended-types.rfc2822.date-time} has extra mileage.  (Or 
.format org.ietf.extended-types.rfc2822.date-time if translated to CDDL.)

The example wasn't intended to be about ABNF, but saying specifying 
formats in purely machine readable ways usually ends up being 
insufficient.  Having provision for human understood formats done in 
such a way that a machine can ask 'does this value conform to this 
format that you, smart human, have coded?' allows a simple way to 
side-step that problem.

So in addition to the ABNF (or any other equivalent you might choose) 
you can also include to narratively define the constraints on say, 
date-mday etc.

Humans can then write code just for that format, such as:

   class Rfc3339FullDateValiadtor
     def IsValidFormat str
       # Code goes here
       return true or false
     end
   end

Then inject it into a validator:

   cddl_validator = CDDLValidator.new
   cddl_validator.add_type_validator 'org.ietf.rfc3339fulldate', 
Rfc3339FullDateValiadtor.new

which puts the data into a hash of string => object.

When cddl_validator finds a value that should be .format 
org.ietf.rfc3339fulldate it does:

   is_valid_external_type 'org.ietf.rfc3339fulldate', value

where:

   def is_valid_external_type format_key, value
      if @external_validators.include? format_key
         return @external_validators[format_key].IsValidFormat value
      end
      return ???
   end

I hope that all makes sense!

> RFC 8610 also has a .regexp control operator (using W3C XSD regexps, but other flavors can be added as needed).
>...
> 
> (*) From RFC 8610:
> 
> Acknowledgements
> 
>     Inspiration was taken from the C and Pascal languages, MPEG's
>     conventions for describing structures in the ISO base media file
>     format, RELAX NG and its compact syntax [RELAXNG], and, in
>     particular, Andrew Lee Newton's early proposals on JSON Content Rules
>     (JCR) as found in draft version four (-04) of [JCR].

A nice touch :)

Pete.
-- 
---------------------------------------------------------------------
Pete Cordell
Codalogic Ltd
C++ tools for C++ programmers, http://codalogic.com
Read & write XML in C++, http://www.xml2cpp.com
---------------------------------------------------------------------


From nobody Tue May  4 06:38:40 2021
Return-Path: <cabo@tzi.org>
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 505163A0AE8; Tue,  4 May 2021 06:38:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.918
X-Spam-Level: 
X-Spam-Status: No, score=-1.918 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 c77XPJBirkzy; Tue,  4 May 2021 06:38:34 -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 C44093A0AEE; Tue,  4 May 2021 06:38:33 -0700 (PDT)
Received: from [192.168.217.118] (p548dcb12.dip0.t-ipconnect.de [84.141.203.18]) (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 4FZLX64k8lzyV6; Tue,  4 May 2021 15:38:30 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <9771fc21-0193-1338-a128-fb9bdf00db66@codalogic.com>
Date: Tue, 4 May 2021 15:38:30 +0200
Cc: cbor@ietf.org, JSON WG <json@ietf.org>, Daniel P <danielaparker@gmail.com>
X-Mao-Original-Outgoing-Id: 641828310.162697-8fbb037fbffc0b1df239fb2a2318519d
Content-Transfer-Encoding: quoted-printable
Message-Id: <881D79CF-3CA2-46B4-8D9C-CC0D3D817403@tzi.org>
References: <CA+mwktLWwDRYtF9BFSRnF4e7_v=e3F4HERS5yHptSksxGBysnQ@mail.gmail.com> <F1A006F9-8743-4930-B879-F83339A38485@tzi.org> <9e811395-2f56-f2b2-b4a6-c686544cb1ef@codalogic.com> <DC77FE0A-E0E1-4A92-AD7D-4522E450BED4@tzi.org> <9771fc21-0193-1338-a128-fb9bdf00db66@codalogic.com>
To: Pete Cordell <petejson@codalogic.com>
X-Mailer: Apple Mail (2.3608.120.23.2.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/h6QeFy8cBbvs9BOGin9jPsdXYWA>
Subject: Re: [Cbor] [Json] Update Standard to support ECMA-262 BigInt
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: Tue, 04 May 2021 13:38:38 -0000

On 2021-05-04, at 15:05, Pete Cordell <petejson@codalogic.com> wrote:
>=20
> The example wasn't intended to be about ABNF, but saying specifying =
formats in purely machine readable ways usually ends up being =
insufficient.  Having provision for human understood formats done in =
such a way that a machine can ask 'does this value conform to this =
format that you, smart human, have coded?' allows a simple way to =
side-step that problem.
>=20
> So in addition to the ABNF (or any other equivalent you might choose) =
you can also include to narratively define the constraints on say, =
date-mday etc.

Sure, we can add something like that, that is an interesting thought.

I=E2=80=99m mostly in favor of also providing a machine-executable form, =
which may not cover all the bases (if I say there is a =E2=80=9Csignature=E2=
=80=9D of type =E2=80=9Cbstr=E2=80=9D, I won=E2=80=99t be able to =
specify in CDDL what exactly I want from that :-).

Gr=C3=BC=C3=9Fe, Carsten


From nobody Tue May  4 07:55:04 2021
Return-Path: <barryleiba@gmail.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 D8DCC3A0812 for <cbor@ietfa.amsl.com>; Tue,  4 May 2021 07:55:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.401
X-Spam-Level: 
X-Spam-Status: No, score=-1.401 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 PZ0-whpr5dSF for <cbor@ietfa.amsl.com>; Tue,  4 May 2021 07:54:58 -0700 (PDT)
Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B0C223A0809 for <cbor@ietf.org>; Tue,  4 May 2021 07:54:58 -0700 (PDT)
Received: by mail-lf1-f46.google.com with SMTP id t11so12194802lfl.11 for <cbor@ietf.org>; Tue, 04 May 2021 07:54:58 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OP+jqYckWBDX+nmy905H6/u6yn61vEiLPHZ1/LNYN6E=; b=Udu1+bV9CSDv+358Q1wlLV8FsM8oIapKo7VJBwYc9jDmbMz4v4Xt8GcGJrjNbr/i1d ixWtHg5aKOXnp9gXoqVvcv+qTJSBiR/bazks9yxZBUUPRcluRZQEJgul3f8w1n9UFc2C Nd1T/pqPMWQnOMb3bsa40tVfVSUcWyD/5kptXcyeYaA1u3KxOWezZpUb6WxWUXajkWXy g0h6VuScTkgC7wLKuNpvxdM7+rnmissBo28wyeDNhgWPXVMHF2I7bHlN2n2lIM+0QsCf geXi1xAqsun+A5CYfKoKPBK6vz1beoHWo/oI6tV7vICfWq/lCfP5M2X9Psu5VMPvrBVS cCtw==
X-Gm-Message-State: AOAM532Fn6p2VFvYmZJ43sKARDNZzgOU6vmERcDIVOFS/bTTgt5F64RG bVDrkvCsLlU4EuQC5PQg9ijGjOvZ2wC7kw/9Umni+TyZg6mvXw==
X-Google-Smtp-Source: ABdhPJxJln4/Sre8ySsKARJb/C4kgh5D3dUwKW7Kem0a7RCjbB52D87bvNEEUMGoLRytcdDA2GTW5oXtH+O5JcwwTk4=
X-Received: by 2002:a05:6512:224c:: with SMTP id i12mr3955076lfu.643.1620140096083;  Tue, 04 May 2021 07:54:56 -0700 (PDT)
MIME-Version: 1.0
From: Barry Leiba <barryleiba@computer.org>
Date: Tue, 4 May 2021 10:54:44 -0400
Message-ID: <CALaySJ+=WzgeMRpPqNkJcN7g7VY8HeTm2LLEc0PjtnKX8cVmVQ@mail.gmail.com>
To: cbor@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/H8aI4xDfodEvlN-BbUP82zYsBZU>
Subject: [Cbor] Reminder: bi-weekly CBOR conference call on 5 May
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: Tue, 04 May 2021 14:55:03 -0000

We'll have our regular bi-weekly CBOR conference call on
Wednesday, 5 May, at 1600 UTC.  Various pointers are here:
https://datatracker.ietf.org/meeting/interim-2021-cbor-08/session/cbor

In particular, see the agenda here:
https://codimd.ietf.org/notes-ietf-interim-2021-cbor-08-cbor

Please edit the agenda to flesh it out and propose specific discussions.


Meeting link: https://ietf.webex.com/ietf/j.php?MTID=m3ed3d0309a5f216c8a4d8463130b07cb
Meeting number: 178 745 7694
Password: VDkAMXjG443


From nobody Tue May  4 09:56:41 2021
Return-Path: <petejson@codalogic.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 47A643A10C3 for <cbor@ietfa.amsl.com>; Tue,  4 May 2021 09:56:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-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 PEzxCmsgUIWu for <cbor@ietfa.amsl.com>; Tue,  4 May 2021 09:56:35 -0700 (PDT)
Received: from ppsa-online.com (ppsa-online.com [217.199.162.192]) (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 014BF3A125C for <cbor@ietf.org>; Tue,  4 May 2021 09:56:34 -0700 (PDT)
Received: (qmail 7005 invoked from network); 4 May 2021 17:56:26 +0100
Received: from host31-49-16-155.range31-49.btcentralplus.com (HELO ?192.168.1.72?) (31.49.16.155) by lvps217-199-162-217.vps.webfusion.co.uk with ESMTPS (TLS_AES_128_GCM_SHA256 encrypted, authenticated); 4 May 2021 16:56:26 -0000
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org, JSON WG <json@ietf.org>, Daniel P <danielaparker@gmail.com>
References: <CA+mwktLWwDRYtF9BFSRnF4e7_v=e3F4HERS5yHptSksxGBysnQ@mail.gmail.com> <F1A006F9-8743-4930-B879-F83339A38485@tzi.org> <9e811395-2f56-f2b2-b4a6-c686544cb1ef@codalogic.com> <DC77FE0A-E0E1-4A92-AD7D-4522E450BED4@tzi.org> <9771fc21-0193-1338-a128-fb9bdf00db66@codalogic.com> <881D79CF-3CA2-46B4-8D9C-CC0D3D817403@tzi.org>
From: Pete Cordell <petejson@codalogic.com>
Message-ID: <f1e29330-f71a-ee0c-5b9e-77b262d46905@codalogic.com>
Date: Tue, 4 May 2021 17:56:25 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0
MIME-Version: 1.0
In-Reply-To: <881D79CF-3CA2-46B4-8D9C-CC0D3D817403@tzi.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/PPl5YbtUurb7ZNoanxRSqBqqnCI>
Subject: Re: [Cbor] [Json] Update Standard to support ECMA-262 BigInt
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: Tue, 04 May 2021 16:56:40 -0000

On 04/05/2021 14:38, Carsten Bormann wrote:
> On 2021-05-04, at 15:05, Pete Cordell <petejson@codalogic.com> wrote:
>>
>> The example wasn't intended to be about ABNF, but saying specifying formats in purely machine readable ways usually ends up being insufficient.  Having provision for human understood formats done in such a way that a machine can ask 'does this value conform to this format that you, smart human, have coded?' allows a simple way to side-step that problem.
>>
>> So in addition to the ABNF (or any other equivalent you might choose) you can also include to narratively define the constraints on say, date-mday etc.
> 
> Sure, we can add something like that, that is an interesting thought.
> 
> I’m mostly in favor of also providing a machine-executable form, which may not cover all the bases (if I say there is a “signature” of type “bstr”, I won’t be able to specify in CDDL what exactly I want from that :-).

I agree that an ABNF option is good.  In fact, if I had to choose 
between ABNF and regex, I'd go with ABNF.

But your example did make me think, did you consider HEREDOC format in 
CDDL? e.g. something like:

    rfc3339 = <<ABNFEND
       date-fullyear   = 4DIGIT
       date-month      = 2DIGIT  ; 01-12
       date-mday       = 2DIGIT  ; 01-28, 01-29, 01-30, 01-31 based on
                                 ; month/year
       time-hour       = 2DIGIT  ; 00-23
       time-minute     = 2DIGIT  ; 00-59
       time-second     = 2DIGIT  ; 00-58, 00-59, 00-60 based on leap sec
                                 ; rules
       time-secfrac    = "." 1*DIGIT
       time-numoffset  = ("+" / "-") time-hour ":" time-minute
       time-offset     = "Z" / time-numoffset

       partial-time    = time-hour ":" time-minute ":" time-second
                         [time-secfrac]
       full-date       = date-fullyear "-" date-month "-" date-mday
       full-time       = partial-time time-offset

       date-time       = full-date "T" full-time
    ABNFEND .cat rfc5234-core

    rfc5234-core = <<ABNFEND
       DIGIT          =  %x30-39 ; 0-9
       ; abbreviated here
    ABNFEND

(I think HEREDOCs would normally end when only the end token appears on 
its own line, but CDDL could say it has to be the first token on the 
line ad other tokens could follow so you can get your .cat rfc5234-core in.)

And I forgot earlier to say thanks for the links to WGs using CDDL for 
JSON.  So thanks for that.  I'll have a look at them.

Looking forward to the the ability to combine multiple CDDL files 
together being in place.

Cheers,

Pete.
-- 
---------------------------------------------------------------------
Pete Cordell
Codalogic Ltd
C++ tools for C++ programmers, http://codalogic.com
Read & write XML in C++, http://www.xml2cpp.com
---------------------------------------------------------------------


From nobody Tue May  4 12:18:40 2021
Return-Path: <cabo@tzi.org>
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 D85A23A0E0D for <cbor@ietfa.amsl.com>; Tue,  4 May 2021 12:18:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.919
X-Spam-Level: 
X-Spam-Status: No, score=-1.919 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, 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 J7AyXEOqbei7 for <cbor@ietfa.amsl.com>; Tue,  4 May 2021 12:18:34 -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 034D53A0E09 for <cbor@ietf.org>; Tue,  4 May 2021 12:18:33 -0700 (PDT)
Received: from [192.168.217.118] (p548dcb12.dip0.t-ipconnect.de [84.141.203.18]) (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 4FZV4Q6RYKzyhD; Tue,  4 May 2021 21:18:30 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CALaySJ+=WzgeMRpPqNkJcN7g7VY8HeTm2LLEc0PjtnKX8cVmVQ@mail.gmail.com>
Date: Tue, 4 May 2021 21:18:30 +0200
X-Mao-Original-Outgoing-Id: 641848710.44985-2d3fb94eaa4abe21d2ff147ebe463397
Content-Transfer-Encoding: quoted-printable
Message-Id: <4330628E-0829-4399-8115-FDA2804497DD@tzi.org>
References: <CALaySJ+=WzgeMRpPqNkJcN7g7VY8HeTm2LLEc0PjtnKX8cVmVQ@mail.gmail.com>
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/x0lFCFZ5j6N21JWDiABHQNn0ccA>
Subject: Re: [Cbor] Reminder: bi-weekly CBOR conference call on 5 May
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: Tue, 04 May 2021 19:18:39 -0000

On 2021-05-04, at 16:54, Barry Leiba <barryleiba@computer.org> wrote:
>=20
> https://codimd.ietf.org/notes-ietf-interim-2021-cbor-08-cbor

I finally managed to get a version of the cbor-packed gem out.

Best to use with cbor-diag, e.g.

$ echo '[1, 2, 2, 4711, 4711]' | diag2diag.rb -p
51([[4711], [], [], [1, 2, 2, simple(0), simple(0)]])
$ echo '[1, 2, 2, 4711, 4711]' | diag2diag.rb -pq
[1, 2, 2, 4711, 4711]

(OK, that is not great compression when adding in the compression tag =
overhead, but it does show that 2 is not shared while 4711 is.)

-p =3D pack
-q =3D unpack (u was taken=E2=80=A6)

echo '["https://tzi.de", "http://ietf.org", "https://www.facebook.com", =
"https://www.twitter.com", "https://tzi.de"]' | diag2diag.rb -p
51([[225("tzi.de")],=20
    ["http", 6("s://"), 225("www.")],=20
    [],=20
    [simple(0), 6("://ietf.org"), 226("facebook.com"), =
226("twitter.com"), simple(0)]])

As you can see, the compressor is a bit simple-minded, and it doesn=E2=80=99=
t do suffixes at all yet (should do =E2=80=9C.com"!), or prefixes for =
anything but strings.

Let the bug reports flow in=E2=80=A6
(And let=E2=80=99s discuss this tomorrow.)

Gr=C3=BC=C3=9Fe, Carsten


From nobody Tue May  4 12:40:51 2021
Return-Path: <cabo@tzi.org>
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 6E01A3A0FB0; Tue,  4 May 2021 12:40:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.219
X-Spam-Level: 
X-Spam-Status: No, score=-4.219 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 KqD4XH1dlJfE; Tue,  4 May 2021 12:40:46 -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 8A7573A0FAF; Tue,  4 May 2021 12:40:46 -0700 (PDT)
Received: from [192.168.217.118] (p548dcb12.dip0.t-ipconnect.de [84.141.203.18]) (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 4FZVZ31hzszyRF; Tue,  4 May 2021 21:40:43 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <f1e29330-f71a-ee0c-5b9e-77b262d46905@codalogic.com>
Date: Tue, 4 May 2021 21:40:42 +0200
Cc: cbor@ietf.org, JSON WG <json@ietf.org>, Daniel P <danielaparker@gmail.com>
X-Mao-Original-Outgoing-Id: 641850042.7453001-a7d30ad2ab7dbb0ecaf2dc5a0b67e85c
Content-Transfer-Encoding: quoted-printable
Message-Id: <0472A232-51F2-4173-9A1C-EF9C3A9D3405@tzi.org>
References: <CA+mwktLWwDRYtF9BFSRnF4e7_v=e3F4HERS5yHptSksxGBysnQ@mail.gmail.com> <F1A006F9-8743-4930-B879-F83339A38485@tzi.org> <9e811395-2f56-f2b2-b4a6-c686544cb1ef@codalogic.com> <DC77FE0A-E0E1-4A92-AD7D-4522E450BED4@tzi.org> <9771fc21-0193-1338-a128-fb9bdf00db66@codalogic.com> <881D79CF-3CA2-46B4-8D9C-CC0D3D817403@tzi.org> <f1e29330-f71a-ee0c-5b9e-77b262d46905@codalogic.com>
To: Pete Cordell <petejson@codalogic.com>
X-Mailer: Apple Mail (2.3608.120.23.2.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/u4Fl22lGWaodkgduEDZ5y_m25sA>
Subject: Re: [Cbor] [Json] Update Standard to support ECMA-262 BigInt
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: Tue, 04 May 2021 19:40:50 -0000

On 2021-05-04, at 18:56, Pete Cordell <petejson@codalogic.com> wrote:
>=20
> But your example did make me think, did you consider HEREDOC format in =
CDDL? e.g. something like:

For the .abnf/.abnfb control operators, we tried to make do with what we =
had in RFC 8610 (no changes in the syntax, just two new control =
operators =E2=80=94 and a third, .det, which is needed to handle =
ABNF=E2=80=99s indentation intolerance).

A CDDL 2.0 might have a HEREDOC-style mechanism, if people find that =
useful.

Gr=C3=BC=C3=9Fe, Carsten


From nobody Tue May  4 21:56:39 2021
Return-Path: <cabo@tzi.org>
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 67CEF3A0AD8; Tue,  4 May 2021 21:56:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.219
X-Spam-Level: 
X-Spam-Status: No, score=-4.219 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 BCDmC_nGWixP; Tue,  4 May 2021 21:56:32 -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 C70643A0AD7; Tue,  4 May 2021 21:56:31 -0700 (PDT)
Received: from smtpclient.apple (p548dcb12.dip0.t-ipconnect.de [84.141.203.18]) (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 4FZkvD4qHSz105p; Wed,  5 May 2021 06:56:24 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <f1e29330-f71a-ee0c-5b9e-77b262d46905@codalogic.com>
Date: Wed, 5 May 2021 06:56:19 +0200
Cc: cbor@ietf.org, Daniel P <danielaparker@gmail.com>, JSON WG <json@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <DF6D8582-2028-4E16-853E-FA9BB25F151B@tzi.org>
References: <CA+mwktLWwDRYtF9BFSRnF4e7_v=e3F4HERS5yHptSksxGBysnQ@mail.gmail.com> <F1A006F9-8743-4930-B879-F83339A38485@tzi.org> <9e811395-2f56-f2b2-b4a6-c686544cb1ef@codalogic.com> <DC77FE0A-E0E1-4A92-AD7D-4522E450BED4@tzi.org> <9771fc21-0193-1338-a128-fb9bdf00db66@codalogic.com> <881D79CF-3CA2-46B4-8D9C-CC0D3D817403@tzi.org> <f1e29330-f71a-ee0c-5b9e-77b262d46905@codalogic.com>
To: Pete Cordell <petejson@codalogic.com>
X-Mailer: Apple Mail (2.3654.80.0.2.43)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/E8QBmmeotqUodKcpcHCQDO0wRbQ>
Subject: Re: [Cbor] [Json] Update Standard to support ECMA-262 BigInt
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, 05 May 2021 04:56:37 -0000

Ah, I missed this point:

> On 4. May 2021, at 18:56, Pete Cordell <petejson@codalogic.com> wrote:
>=20
>   rfc3339 =3D <<ABNFEND
>      date-fullyear   =3D 4DIGIT
>      date-month      =3D 2DIGIT  ; 01-12
> [=E2=80=A6]
>      date-time       =3D full-date "T" full-time
>   ABNFEND .cat rfc5234-core
>=20
>   rfc5234-core =3D <<ABNFEND
>      DIGIT          =3D  %x30-39 ; 0-9
>      ; abbreviated here
>   ABNFEND
>=20
> (I think HEREDOCs would normally end when only the end token appears =
on its own line, but CDDL could say it has to be the first token on the =
line ad other tokens could follow so you can get your .cat rfc5234-core =
in.)

Using classical HEREDOC syntax, this would actually be:

>   rfc3339 =3D <<ABNFEND .cat rfc5234-core
>      date-fullyear   =3D 4DIGIT
>      date-month      =3D 2DIGIT  ; 01-12
> [=E2=80=A6]
>      date-time       =3D full-date "T" full-time
>   ABNFEND

=E2=80=A6which is maybe the best reason why one might want to prefer =
HEREDOCs over strings (or not!).

Gr=C3=BC=C3=9Fe, Carsten


From nobody Tue May  4 22:04:53 2021
Return-Path: <cabo@tzi.org>
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 6B2363A0B9F for <cbor@ietfa.amsl.com>; Tue,  4 May 2021 22:04:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.219
X-Spam-Level: 
X-Spam-Status: No, score=-4.219 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 A9g39HuIHwCH for <cbor@ietfa.amsl.com>; Tue,  4 May 2021 22:04:47 -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 D560E3A0B9E for <cbor@ietf.org>; Tue,  4 May 2021 22:04:46 -0700 (PDT)
Received: from smtpclient.apple (p548dcb12.dip0.t-ipconnect.de [84.141.203.18]) (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 4FZl4s2jm7z10BJ; Wed,  5 May 2021 07:04:45 +0200 (CEST)
From: Carsten Bormann <cabo@tzi.org>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\))
Date: Wed, 5 May 2021 07:04:44 +0200
Cc: Kris Zyp <kriszyp@gmail.com>
To: cbor@ietf.org
Message-Id: <8421F43D-E9ED-444F-A915-415F3AE59FA0@tzi.org>
X-Mailer: Apple Mail (2.3654.80.0.2.43)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/IEfXAOBMYPfA8s5UACxCUNk0ddU>
Subject: [Cbor] Record proposal
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, 05 May 2021 05:04:51 -0000

Kris Zyp put together a proposal for adding tags for records:

https://github.com/kriszyp/cbor-records

Note that this has some of the problems alluded to in=E2=80=A6

https://www.rfc-editor.org/rfc/rfc8949.html#section-3.4-10

=E2=80=A6which could be solved here (usage mostly in arrays) by defining =
a partial order that the usage of the tags defined on the fly would need =
to follow.

As Kris pointed out, my visceral reaction (below) has the limitation =
that it would only work for homogeneous arrays of records (and you have =
to ascertain homogeneity of the whole array before tagging).

Let=E2=80=99s have a quick discussion in the meeting later today.

Gr=C3=BC=C3=9Fe, Carsten


JSON example:

[
   { "name": "one", "value": 1 },
   { "name": "two", "value": 2 },
   { "name": "three", "value": 3 }
]

Potential representations:

TBD([[=E2=80=9Cname=E2=80=9D, =E2=80=9Cvalue=E2=80=9D],
    [=E2=80=9Cone=E2=80=9D, 1], [=E2=80=9Ctwo", 2], [=E2=80=9Cthree", =
3]])
(=E2=80=9CCSV style=E2=80=9D)

TBD([[=E2=80=9Cname=E2=80=9D, =E2=80=9Cvalue=E2=80=9D],
    [[=E2=80=9Cone=E2=80=9D, 1], [=E2=80=9Ctwo", 2], [=E2=80=9Cthree", =
3]]])
(=E2=80=9CExplicit=E2=80=9D)

TBD([[=E2=80=9Cname=E2=80=9D, =E2=80=9Cvalue=E2=80=9D],
    [=E2=80=9Cone=E2=80=9D, 1, =E2=80=9Ctwo", 2, =E2=80=9Cthree", 3]])
(=E2=80=9CTight=E2=80=9D)

TBD([[=E2=80=9Cname=E2=80=9D, =E2=80=9Cvalue=E2=80=9D],
    =E2=80=9Cone=E2=80=9D, 1, =E2=80=9Ctwo", 2, =E2=80=9Cthree", 3])
(=E2=80=9CToo tight=E2=80=9D)



From nobody Wed May  5 04:17:00 2021
Return-Path: <christian@amsuess.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 086333A10DC for <cbor@ietfa.amsl.com>; Wed,  5 May 2021 04:16:59 -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, 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 045bD5PkF8HB for <cbor@ietfa.amsl.com>; Wed,  5 May 2021 04:16:56 -0700 (PDT)
Received: from prometheus.amsuess.com (alt.prometheus.amsuess.com [IPv6:2a01:4f8:190:3064::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 01E693A10CB for <cbor@ietf.org>; Wed,  5 May 2021 04:16:55 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by prometheus.amsuess.com (Postfix) with ESMTPS id 76CF440621; Wed,  5 May 2021 13:16:51 +0200 (CEST)
Received: from poseidon-mailbox.amsuess.com (poseidon-mailbox.amsuess.com [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bf]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 8A9CFD3; Wed,  5 May 2021 13:16:49 +0200 (CEST)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:b2e:305e:7b91:a098]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 3E7D0110; Wed,  5 May 2021 13:16:49 +0200 (CEST)
Received: (nullmailer pid 3721001 invoked by uid 1000); Wed, 05 May 2021 11:16:48 -0000
Date: Wed, 5 May 2021 13:16:48 +0200
From: Christian =?iso-8859-1?Q?Ams=FCss?= <christian@amsuess.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org, Kris Zyp <kriszyp@gmail.com>
Message-ID: <YJJ+oJZ5YF/c14sv@hephaistos.amsuess.com>
References: <8421F43D-E9ED-444F-A915-415F3AE59FA0@tzi.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="41qbauQkIxbrVT5Q"
Content-Disposition: inline
In-Reply-To: <8421F43D-E9ED-444F-A915-415F3AE59FA0@tzi.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/tR1haGUXmi475vJiqn5QPB1-85I>
Subject: Re: [Cbor] Record proposal
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, 05 May 2021 11:16:59 -0000

--41qbauQkIxbrVT5Q
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> Let=E2=80=99s have a quick discussion in the meeting later today.

Thanks, taken up on the agenda.

(And as much as I dislike being "the person to whom everything looks
like a nail", I'll probably ask about whether this fits in the general
model of packed CBOR, with the first entity setting up a single table
entry, and then the entries expanding a [] to a {}).

BR
c

--=20
To use raw power is to make yourself infinitely vulnerable to greater power=
s.
  -- Bene Gesserit axiom

--41qbauQkIxbrVT5Q
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECM1tElX6OodcH7CWOY0REtOkveEFAmCSfp0ACgkQOY0REtOk
veEDHg//XLzqiE/Q2gTWrY6OZLFp0tDvH0LKsH1FP33RMsk6+9PRUrNOan/SgOcX
Y66auUTpqClC1o2GA7SmUjjaqS+EFoPDDHbXWf0aPnrbe5dYl7bJSra0dg7H0EM0
RixOwZSc0aDD56TgFJFNEyiogtpEglJZ4JCyUY2cgcS35g0LWmNsU9Xr6RX5iHmw
PMBG81LfyjI48AHYOhpqnPwa1VuYTsW+GwD3TyEd2oxHssyhl3DC5Bx0DNVVVpsk
Wv/FOsJRpweDsiiuxX0sRggsoIThhuknOfG3S1OO11SdmTl7CuQGZ1hKYwdn0v/N
xFgDnm8KIy6vnr5lagxlRMN0hhg1q4MR7EH7C6GJMGFsB3RNhLxukq3e9JVf3/7H
RE0LzABJI/cfBMtIqAw3o3cgkb3tmSqSxGttRkZgfi50ijXRSCBR2qaFFGsBNaAu
OX9nXahpICOK0eBNrT49MfangY+dOT/4HqbJ5wv2xHH6jIwNN15va+205sQO6VCo
5sY+U/KwPBFWqmhBXR+QXVlhNOFcybEKPv/Zu1yXcUhoMr3W6zSbqw6kDF8Q1c2N
aOZ5MH+vSVaDRRPPjmfrnVjN/6zbxKPGXSDa84rZE2MjhYjEVtvlBsXwpG+k413S
TfQhLv936KT/iUmOCr8lk6OLktDdHWcO1cozOwS2Jyp+J57Gv2Q=
=LtwJ
-----END PGP SIGNATURE-----

--41qbauQkIxbrVT5Q--


From nobody Wed May  5 05:50:26 2021
Return-Path: <cabo@tzi.org>
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 C4FA83A16ED for <cbor@ietfa.amsl.com>; Wed,  5 May 2021 05:50:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.219
X-Spam-Level: 
X-Spam-Status: No, score=-4.219 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 3EnNRKpSd7xd for <cbor@ietfa.amsl.com>; Wed,  5 May 2021 05:50:20 -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 8149B3A16EF for <cbor@ietf.org>; Wed,  5 May 2021 05:50:20 -0700 (PDT)
Received: from [192.168.217.118] (p548dcb12.dip0.t-ipconnect.de [84.141.203.18]) (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 4FZxQ16zR8zyV5; Wed,  5 May 2021 14:50:17 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <YJJ+oJZ5YF/c14sv@hephaistos.amsuess.com>
Date: Wed, 5 May 2021 14:50:17 +0200
Cc: cbor@ietf.org, Kris Zyp <kriszyp@gmail.com>
X-Mao-Original-Outgoing-Id: 641911817.486241-cc049bf4d5437aa39228390c4b979aaf
Content-Transfer-Encoding: quoted-printable
Message-Id: <41C02CBE-E7EC-4E61-889B-779EE561C632@tzi.org>
References: <8421F43D-E9ED-444F-A915-415F3AE59FA0@tzi.org> <YJJ+oJZ5YF/c14sv@hephaistos.amsuess.com>
To: =?utf-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>
X-Mailer: Apple Mail (2.3608.120.23.2.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/WmOurJydphRy_u6MjRY9oeb-0yM>
Subject: Re: [Cbor] Record proposal
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, 05 May 2021 12:50:25 -0000

On 2021-05-05, at 13:16, Christian Ams=C3=BCss <christian@amsuess.com> =
wrote:
>=20
> (And as much as I dislike being "the person to whom everything looks
> like a nail", I'll probably ask about whether this fits in the general
> model of packed CBOR, with the first entity setting up a single table
> entry, and then the entries expanding a [] to a {}).

There are two potential aspects to the proposed tag:

* a more compact representation (which is all that cbor-packed is about)

* semantic indication that a specific kind of record is being used

Proposed Tag 105 currently does not have a place for further semantic =
indications, but one could be added.

By the way, cbor-packed turns the example I gave in the referenced email =
into

51([["value", "name"], [], [],=20
   [{simple(1): "one", simple(0): 1},=20
    {simple(1): "two", simple(0): 2}, {simple(1): "three", simple(0): =
3}]])

Encoding-wise, the last array looks like this:

      83                  # array(3)
         a2               # map(2)
            e1            # primitive(1)
            63            # text(3)
               6f6e65     # "one"
            e0            # primitive(0)
            01            # unsigned(1)
         a2               # map(2)
            e1            # primitive(1)
            63            # text(3)
               74776f     # "two"
            e0            # primitive(0)
            02            # unsigned(2)
         a2               # map(2)
            e1            # primitive(1)
            65            # text(5)
               7468726565 # "three"
            e0            # primitive(0)
            03            # unsigned(3)

So the overhead here is one map head and two simple values per row.
(Of course, that assumes that one-byte simple values are still available =
in the greater context this is in.)

Even with a form of circumfix compression (e.g., mapping tables with =
parameters [1]), this is hard to beat encoding wise.
The record proposal as is takes four bytes per row (1+2 tag, 1 array).
This can be optimized significantly further only by amortizing the tag =
over more than one row, as my =E2=80=9CCSV style=E2=80=9D does, but that =
requires homogeneity.

Gr=C3=BC=C3=9Fe, Carsten

[1]: https://datatracker.ietf.org/doc/draft-bormann-lpwan-cbor-template/


From nobody Thu May  6 21:49:07 2021
Return-Path: <cabo@tzi.org>
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 EAD203A178E for <cbor@ietfa.amsl.com>; Thu,  6 May 2021 21:49:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.219
X-Spam-Level: 
X-Spam-Status: No, score=-4.219 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 2adfyp9ObpW8 for <cbor@ietfa.amsl.com>; Thu,  6 May 2021 21:49:01 -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 921A73A175E for <cbor@ietf.org>; Thu,  6 May 2021 21:46:33 -0700 (PDT)
Received: from smtpclient.apple (p548dcb12.dip0.t-ipconnect.de [84.141.203.18]) (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 4FbyZv09QPzyRg; Fri,  7 May 2021 06:46:31 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <20210506235220.437A7F40791@rfc-editor.org>
Date: Fri, 7 May 2021 06:46:30 +0200
Cc: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>, christoph.vigano@uni-bremen.de, superuser@gmail.com, Francesca Palombini <francesca.palombini@ericsson.com>, Barry Leiba <barryleiba@computer.org>, christian@amsuess.com, lgl@island-resort.com, cbor@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <21654B6B-65E0-4772-8B6D-149FC2CB5021@tzi.org>
References: <20210506235220.437A7F40791@rfc-editor.org>
To: RFC Errata System <rfc-editor@rfc-editor.org>
X-Mailer: Apple Mail (2.3654.80.0.2.43)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/0fhPGMaG1-TPmKlgKnP7iA2lb9M>
Subject: Re: [Cbor] [Technical Errata Reported] RFC8610 (6575)
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, 07 May 2021 04:49:06 -0000

Well, representation types for tags are explained in 3.6, so 2.2.3 =
should have a forward reference to 3.6 instead of trying to restate 3.6 =
(which it only manages by half).
(Note that the text doesn=E2=80=99t say what #6.24 without parentheses =
means =E2=80=94 the ABNF suggests that the number after the dot should =
be ai not argument.
In hindsight, maybe using a different character than =E2=80=9C.=E2=80=9D =
for tag/argument would have been more suggestive.)

I=E2=80=99d say, this is "hold for document update=E2=80=9D so we get a =
chance to cover the corner case, but it is worth saying now that 3.6 is =
the detailed description of the exception for #6.nn(tt).

Gr=C3=BC=C3=9Fe, Carsten


> On 7. May 2021, at 01:52, RFC Errata System =
<rfc-editor@rfc-editor.org> wrote:
>=20
> The following errata report has been submitted for RFC8610,
> "Concise Data Definition Language (CDDL): A Notational Convention to =
Express Concise Binary Object Representation (CBOR) and JSON Data =
Structures".
>=20
> --------------------------------------
> You may review the report below and at:
> https://www.rfc-editor.org/errata/eid6575
>=20
> --------------------------------------
> Type: Technical
> Reported by: Laurence Lundblade <lgl@island-resort.com>
>=20
> Section: 2.2.3
>=20
> Original Text
> -------------
> Where a major type of 6 (Tag) is used, the type
>   of the tagged item can be specified by appending it in parentheses.
>=20
> Corrected Text
> --------------
> Where a major type of 6 (Tag) is used, the type of the tagged item can =
be specified by appending it in parentheses. Additionally,
> for major type 6 the value of the argument, not the additional info is =
what follows the dot.
>=20
> Notes
> -----
> The text at the top of page 50 is correct. The examples in 2.2.3 are =
also correct.
>=20
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party =20
> can log in to change the status and edit the report, if necessary.=20
>=20
> --------------------------------------
> RFC8610 (draft-ietf-cbor-cddl-08)
> --------------------------------------
> Title               : Concise Data Definition Language (CDDL): A =
Notational Convention to Express Concise Binary Object Representation =
(CBOR) and JSON Data Structures
> Publication Date    : June 2019
> Author(s)           : H. Birkholz, C. Vigano, C. Bormann
> Category            : PROPOSED STANDARD
> Source              : Concise Binary Object Representation Maintenance =
and Extensions
> Area                : Applications and Real-Time
> Stream              : IETF
> Verifying Party     : IESG


From nobody Mon May 10 08:02:36 2021
Return-Path: <wwwrun@rfc-editor.org>
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 443093A11AF for <cbor@ietfa.amsl.com>; Thu,  6 May 2021 16:52:50 -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, RCVD_IN_DNSWL_BLOCKED=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 ox0dvT5WJqqj for <cbor@ietfa.amsl.com>; Thu,  6 May 2021 16:52:45 -0700 (PDT)
Received: from rfc-editor.org (rfc-editor.org [4.31.198.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 99FFB3A11AD for <cbor@ietf.org>; Thu,  6 May 2021 16:52:45 -0700 (PDT)
Received: by rfc-editor.org (Postfix, from userid 30) id 437A7F40791; Thu,  6 May 2021 16:52:20 -0700 (PDT)
To: henk.birkholz@sit.fraunhofer.de, christoph.vigano@uni-bremen.de, cabo@tzi.org, superuser@gmail.com, francesca.palombini@ericsson.com, barryleiba@computer.org, christian@amsuess.com
X-PHP-Originating-Script: 1005:errata_mail_lib.php
From: RFC Errata System <rfc-editor@rfc-editor.org>
Cc: lgl@island-resort.com, cbor@ietf.org, rfc-editor@rfc-editor.org
Content-Type: text/plain; charset=UTF-8
Message-Id: <20210506235220.437A7F40791@rfc-editor.org>
Date: Thu,  6 May 2021 16:52:20 -0700 (PDT)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/9Uh0Mi2ytf1h1jSGcrIxG0WimiQ>
X-Mailman-Approved-At: Mon, 10 May 2021 08:02:35 -0700
Subject: [Cbor] [Technical Errata Reported] RFC8610 (6575)
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, 06 May 2021 23:52:50 -0000

The following errata report has been submitted for RFC8610,
"Concise Data Definition Language (CDDL): A Notational Convention to Express Concise Binary Object Representation (CBOR) and JSON Data Structures".

--------------------------------------
You may review the report below and at:
https://www.rfc-editor.org/errata/eid6575

--------------------------------------
Type: Technical
Reported by: Laurence Lundblade <lgl@island-resort.com>

Section: 2.2.3

Original Text
-------------
Where a major type of 6 (Tag) is used, the type
   of the tagged item can be specified by appending it in parentheses.

Corrected Text
--------------
Where a major type of 6 (Tag) is used, the type of the tagged item can be specified by appending it in parentheses. Additionally,
for major type 6 the value of the argument, not the additional info is what follows the dot.

Notes
-----
The text at the top of page 50 is correct. The examples in 2.2.3 are also correct.

Instructions:
-------------
This erratum is currently posted as "Reported". If necessary, please
use "Reply All" to discuss whether it should be verified or
rejected. When a decision is reached, the verifying party  
can log in to change the status and edit the report, if necessary. 

--------------------------------------
RFC8610 (draft-ietf-cbor-cddl-08)
--------------------------------------
Title               : Concise Data Definition Language (CDDL): A Notational Convention to Express Concise Binary Object Representation (CBOR) and JSON Data Structures
Publication Date    : June 2019
Author(s)           : H. Birkholz, C. Vigano, C. Bormann
Category            : PROPOSED STANDARD
Source              : Concise Binary Object Representation Maintenance and Extensions
Area                : Applications and Real-Time
Stream              : IETF
Verifying Party     : IESG


From nobody Mon May 17 07:01:53 2021
Return-Path: <barryleiba@gmail.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 0E6893A38D5 for <cbor@ietfa.amsl.com>; Mon, 17 May 2021 07:01:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.402
X-Spam-Level: 
X-Spam-Status: No, score=-1.402 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 UySi2Knhz_7c for <cbor@ietfa.amsl.com>; Mon, 17 May 2021 07:01:46 -0700 (PDT)
Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5B6083A38D4 for <cbor@ietf.org>; Mon, 17 May 2021 07:01:46 -0700 (PDT)
Received: by mail-lf1-f53.google.com with SMTP id x19so8986714lfa.2 for <cbor@ietf.org>; Mon, 17 May 2021 07:01:46 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=E5viW6DMO5X/v4zhB2KDNsEBYWt/XjpOcVqFzkrTN4s=; b=pxpLKy0QYhCvyM5OLsk+Miwv49NsUQB4tuUBsegqViCJcyfuBfu9SxJNpAPEx93ZD3 dVrGGGQRWK0rzTbei5JVcUc/2QeoBBJbiIgXKKEr8RTZyX3b0INc2RaebHoQvJ8qS0jG YMjemdf8kyhzpYCjgHjXI8TVmeQk8hlQSCo2ayppiaGOTok0DCu8Ny8jN6zGsDIqPcRZ ok9RAiAaCdbqjyt0slQRR0mmZymaPrlB4TqtVveu/C3d+dPDoRfLJk9AIYr2BKULVwxa 8AzXIdOCf61a8R75OrZL8ofIr9nYTt40qyvTJ5rsTlKq2gbnLd1wDinMFC7HP0uNl9kN Plkw==
X-Gm-Message-State: AOAM532O5mlff7kgylkLtdZ1Zoq+erK9mqUXWXn/Rwpwn6WV2CuBNJjC Iq/hoB2rLFzrS6B6FSa9gdsvGR1xtmwmxU2rnKIL+rL0xEDbdw==
X-Google-Smtp-Source: ABdhPJxb5ujvbvhvyAYq9A4Od0uexllXaJFlvvkTDIYhq/sMMhCSA6b78LlWc9ONAQeF6kCKo9ebl570Qhh+nfK3C88=
X-Received: by 2002:a19:f611:: with SMTP id x17mr25709lfe.313.1621260103576; Mon, 17 May 2021 07:01:43 -0700 (PDT)
MIME-Version: 1.0
References: <CALaySJ+=WzgeMRpPqNkJcN7g7VY8HeTm2LLEc0PjtnKX8cVmVQ@mail.gmail.com>
In-Reply-To: <CALaySJ+=WzgeMRpPqNkJcN7g7VY8HeTm2LLEc0PjtnKX8cVmVQ@mail.gmail.com>
From: Barry Leiba <barryleiba@computer.org>
Date: Mon, 17 May 2021 10:01:32 -0400
Message-ID: <CALaySJ+1g98dPDBRZtgHrU_ff+89dcZDF8MzPd28bkyyAJRACA@mail.gmail.com>
To: cbor@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/j5-90mqDQS3ZeuGFKp1ViGE5Mvo>
Subject: [Cbor] Reminder: bi-weekly CBOR conference call on 19 May
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: Mon, 17 May 2021 14:01:51 -0000

We'll have our regular bi-weekly CBOR conference call on
Wednesday, 19 May, at 1600 UTC.  Various pointers are here:
https://datatracker.ietf.org/meeting/interim-2021-cbor-09/session/cbor

In particular, see the agenda here:
https://codimd.ietf.org/notes-ietf-interim-2021-cbor-09-cbor

Please edit the agenda to flesh it out and propose specific discussions.


Meeting link: https://ietf.webex.com/ietf/j.php?MTID=m3ed3d0309a5f216c8a4d8463130b07cb
Meeting number: 178 745 7694
Password: VDkAMXjG443


From nobody Wed May 19 07:24:52 2021
Return-Path: <internet-drafts@ietf.org>
X-Original-To: cbor@ietf.org
Delivered-To: cbor@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 9029F3A11D6; Wed, 19 May 2021 07:24:46 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: cbor@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 7.29.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: cbor@ietf.org
Message-ID: <162143428649.17446.2895580491108625603@ietfa.amsl.com>
Date: Wed, 19 May 2021 07:24:46 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Xf62x_HihU255YdTuSS4gVRsh98>
Subject: [Cbor] I-D Action: draft-ietf-cbor-tags-oid-07.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 19 May 2021 14:24:47 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Concise Binary Object Representation Maintenance and Extensions WG of the IETF.

        Title           : Concise Binary Object Representation (CBOR) Tags for Object Identifiers
        Author          : Carsten Bormann
	Filename        : draft-ietf-cbor-tags-oid-07.txt
	Pages           : 17
	Date            : 2021-05-19

Abstract:
   The Concise Binary Object Representation (CBOR, RFC 8949) is a data
   format whose design goals include the possibility of extremely small
   code size, fairly small message size, and extensibility without the
   need for version negotiation.

   The present document defines CBOR tags for object identifiers (OIDs).
   It is intended as the reference document for the IANA registration of
   the CBOR tags so defined.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-cbor-tags-oid/

There is also an HTML version available at:
https://www.ietf.org/archive/id/draft-ietf-cbor-tags-oid-07.html

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-ietf-cbor-tags-oid-07


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/



From nobody Wed May 19 07:32:34 2021
Return-Path: <cabo@tzi.org>
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 9BC843A1215; Wed, 19 May 2021 07:32:31 -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 N5oUlRqezXN4; Wed, 19 May 2021 07:32:27 -0700 (PDT)
Received: from gabriel-vm-1.zfn.uni-bremen.de (gabriel-vm-1.zfn.uni-bremen.de [134.102.50.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EBA343A1211; Wed, 19 May 2021 07:32:23 -0700 (PDT)
Received: from [192.168.217.118] (p548dcc89.dip0.t-ipconnect.de [84.141.204.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-1.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4Flb1J5c0gz2xNG; Wed, 19 May 2021 16:32:20 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <F32E1CFE-D37B-438C-BABF-9139F926EDA9@tzi.org>
Date: Wed, 19 May 2021 16:32:20 +0200
Cc: The IESG <iesg@ietf.org>, draft-ietf-cbor-tags-oid@ietf.org, CBOR Working Group <cbor-chairs@ietf.org>, cbor@ietf.org, =?utf-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>
X-Mao-Original-Outgoing-Id: 643127540.392779-c21e2a7a16b346244f3d0a047df6db76
Content-Transfer-Encoding: quoted-printable
Message-Id: <90BA30C5-1F1A-446A-961D-BC89003A2746@tzi.org>
References: <161783417685.27338.2878236772630764165@ietfa.amsl.com> <F32E1CFE-D37B-438C-BABF-9139F926EDA9@tzi.org>
To: Benjamin Kaduk <kaduk@mit.edu>
X-Mailer: Apple Mail (2.3608.120.23.2.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/K7K-OqEP26OG55jx_ggyTztUg6c>
Subject: Re: [Cbor] Benjamin Kaduk's No Objection on draft-ietf-cbor-tags-oid-06: (with COMMENT)
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, 19 May 2021 14:32:32 -0000

On 2021-04-08, at 10:00, Carsten Bormann <cabo@tzi.org> wrote:
>=20
>> Section 2
>>=20
>>  Tag TBD110: tags a byte string as the [X.690] encoding of a relative
>>  object identifier (also "relative OID").  Since the encoding of each
>>  number is the same as for [RFC6256] Self-Delimiting Numeric Values
>>  (SDNVs), this tag can also be used for tagging a byte string that
>>  contains a sequence of zero or more SDNVs.
>>=20
>> I did not think that CBOR was prone to reusing tag values for types =
that
>> are semantically different but happen to have the same binary =
encoding
>> rules.  Should generic SDNVs get a dedicated tag?
>=20
> Relative OIDs by their nature need context to interpret them.
> The same kind of context could say that they are really SDNV sequences =
outside the OID mechanism.
> Saying =E2=80=9Cthis is an SDNV sequence but I won=E2=80=99t tell you =
how to use it=E2=80=9D isn=E2=80=99t particularly useful.
> New tags could be allocated when specific non-OID SDNV usage patterns =
emerge.

And, after some more discussion today in the CBOR interim today, we made =
a small change to make this more obvious:

https://github.com/cbor-wg/cbor-oid/commit/64af0b#diff-9c4233

 Since the encoding of each
 number is the same as for {{-sdnv}} Self-Delimiting Numeric Values
 (SDNVs), this tag can also be used for tagging a byte string that
-contains a sequence of zero or more SDNVs.
+contains a sequence of zero or more SDNVs (or a more
+application-specific tag can be created for such an application).

Thank you for bringing this up; this is clearly a detail many would have =
missed!

Gr=C3=BC=C3=9Fe, Carsten


From nobody Wed May 19 07:37:36 2021
Return-Path: <noreply@ietf.org>
X-Original-To: cbor@ietf.org
Delivered-To: cbor@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 186463A1257; Wed, 19 May 2021 07:37:34 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: Robert Wilton via Datatracker <noreply@ietf.org>
To: "The IESG" <iesg@ietf.org>
Cc: draft-ietf-cbor-tags-oid@ietf.org, cbor-chairs@ietf.org, cbor@ietf.org, christian@amsuess.com, christian@amsuess.com
X-Test-IDTracker: no
X-IETF-IDTracker: 7.29.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: Robert Wilton <rwilton@cisco.com>
Message-ID: <162143505407.15221.7422176268539069811@ietfa.amsl.com>
Date: Wed, 19 May 2021 07:37:34 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/PhieWchrRxnk3_kC5dmFgAhGB_g>
Subject: [Cbor] Robert Wilton's No Objection on draft-ietf-cbor-tags-oid-07: (with COMMENT)
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 19 May 2021 14:37:34 -0000

Robert Wilton has entered the following ballot position for
draft-ietf-cbor-tags-oid-07: No Objection

When responding, please keep the subject line intact and reply to all
email addresses included in the To and CC lines. (Feel free to cut this
introductory paragraph, however.)


Please refer to https://www.ietf.org/iesg/statement/discuss-criteria.html
for more information about DISCUSS and COMMENT positions.


The document, along with other ballot positions, can be found here:
https://datatracker.ietf.org/doc/draft-ietf-cbor-tags-oid/



----------------------------------------------------------------------
COMMENT:
----------------------------------------------------------------------

Clearing discuss based on -07 version of the document.

----

I found this document to be interesting because I knew from the title that it
was going to only be 4 pages long and say that OIDs are obviously encoded as a
tagged array, hence I was surprised to see that was not the solution and it
uses BER encoded OIDs instead.

The document explains, and I think that I understand why this has been done,
but I question whether the title of the document and name of the tags is right.
 Is it really a CBOR representation of OIDs, or is it actually a CBOR
representation of BER encoded OIDs?  I.e., it is plausible that there would
ever be a requirement for non BER encoded OIDs.  E.g., I'm not an ASN.1 expert,
but say if somewhat wanted to do a CBOR encoding of ASN.1, then it is not
obvious to me that they would use a BER encoding for OIDs.  Hence the
suggestion is to make the title, abstract, and name of the tags clear that it
is about the CBOR encoding or BER encoded OIDs.

In the introduction:
   Since the semantics of absolute and relative object identifiers
   differ, this specification defines two tags, collectively called the
   "OID tags" here:

I presume that this should be three tags?

In section 4.1.  Tag Factoring Example: X.500 Distinguished Name:

The diagram uses a mix of single letters (e.g. c for country), and a full name
"street".  Is this how the X.500 attributes are defined?  Otherwise it might be
clearer to always use their full names.

    The country and street RDNs are single-valued. The second and fourth RDNs
    are multi-valued.

Perhaps:  "The country (first) and street (third) RDNs are single-valued. The
second and fourth RDNs are multi-valued."

    h'550407': "Los Angeles", h'550408': "CA",

I think that the example would be more clear by splitting the city and county
onto separate lines.

Finally, the document contains these two sentences that seem to somewhat
conflict with each other:

"While these sequences can easily be represented in CBOR arrays of unsigned
integers, a more compact representation can often be achieved by adopting the
widely used representation of object identifiers defined in BER; this
representation may also be more amenable to processing by other software that
makes use of object identifiers."

compared to:

"Staying close to the way object identifiers are encoded in ASN.1 BER makes
back-and-forth translation easy; otherwise we would choose a more efficient
encoding."

Regards,
Rob




From nobody Wed May 19 07:43:15 2021
Return-Path: <cabo@tzi.org>
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 F37453A1290; Wed, 19 May 2021 07:43:13 -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 sTzBo_RGd39A; Wed, 19 May 2021 07:43:10 -0700 (PDT)
Received: from gabriel-vm-1.zfn.uni-bremen.de (gabriel-vm-1.zfn.uni-bremen.de [134.102.50.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 642CF3A128F; Wed, 19 May 2021 07:43:10 -0700 (PDT)
Received: from [192.168.217.118] (p548dcc89.dip0.t-ipconnect.de [84.141.204.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-1.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4FlbFl6XDTz2xMy; Wed, 19 May 2021 16:43:07 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <161788356811.31539.2139615008210880278@ietfa.amsl.com>
Date: Wed, 19 May 2021 16:43:07 +0200
Cc: The IESG <iesg@ietf.org>, draft-ietf-cbor-tags-oid@ietf.org, cbor-chairs@ietf.org, cbor@ietf.org, =?utf-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>
X-Mao-Original-Outgoing-Id: 643128187.4881901-0805e95d9c656e3c3f71c9e831d750f2
Content-Transfer-Encoding: quoted-printable
Message-Id: <6EE767E5-9F97-4D74-B154-C8333D5E8778@tzi.org>
References: <161788356811.31539.2139615008210880278@ietfa.amsl.com>
To: Robert Wilton <rwilton@cisco.com>
X-Mailer: Apple Mail (2.3608.120.23.2.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Ow7KiAx61ohnDVM4h6HsFa51y0c>
Subject: Re: [Cbor] Robert Wilton's Discuss on draft-ietf-cbor-tags-oid-06: (with DISCUSS and COMMENT)
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, 19 May 2021 14:43:14 -0000

Hi Rob,

apologies for taking so long to reply to this, but you did raise a very =
good point that needed some discussion in the WG before we could resolve =
it.

## Question that took us a while to decide in the WG

> I would like to please see some more clarity or guidance about when =
TAG TBD112
> should be used, given that there are two possible encodings of =
absolute OIDs
> below "1.3.6.1.4.1".
>=20
> Specifically, the questions that I have, that probably need to be =
clarified are:
> - is a CBOR encoder allowed to optimize a TBD110 tag into a TBD112 =
tag?
> - Should CBOR decoder clients always expect to be able to handle both =
TBD110
> and TBD112 tags? - Or, it the decision over whether to use TBD110 or =
TBD112
> down to the application and the application needs to agree which is =
use.

This is indeed a good question (about TBD111 vs. TBD112, actually).

We went for handling this as an issue about preferred serializations, =
and added Sections 2.2 and 4.1.

## Major items in the COMMENTs

> I found this document to be interesting because I knew from the title =
that it
> was going to only be 4 pages long and say that OIDs are obviously =
encoded as a
> tagged array, hence I was surprised to see that was not the solution =
and it
> uses BER encoded OIDs instead.
>=20
> The document explains, and I think that I understand why this has been =
done,
> but I question whether the title of the document and name of the tags =
is right.
> Is it really a CBOR representation of OIDs, or is it actually a CBOR
> representation of BER encoded OIDs? =20

The first, using the technical approach named in the second.

> I.e., it is plausible that there would
> ever be a requirement for non BER encoded OIDs.  E.g., I'm not an =
ASN.1 expert,
> but say if somewhat wanted to do a CBOR encoding of ASN.1, then it is =
not
> obvious to me that they would use a BER encoding for OIDs. =20

One example for a CBOR encoding of something that previously has been =
encoded in ASN.1 is draft-mattsson-cose-cbor-cert-compress, which =
normatively references the tags-oid spec.  The certificate spec actually =
goes ahead and registers translation tables between likely OIDs and =
small integers.  But if the full range of OIDs is needed, the byte =
string derived from the BER content indeed is the representation chosen. =
 (As the C509 certificates are schema-driven, they do not need the =
actual tags defined here.)

> Hence the
> suggestion is to make the title, abstract, and name of the tags clear =
that it
> is about the CBOR encoding or BER encoded OIDs.

The specification proposes to use BER in a number of tags for binary =
encoding of OIDs.
The BERness is not a feature that the OIDs already need to have before =
these tags apply.
So a title "CBOR encoding of BER encoded OIDs=E2=80=9D (which is what I =
think Rob wanted to say) would be a restriction beyond what this spec is =
about.

## More COMMENTs

> In the introduction:
>  Since the semantics of absolute and relative object identifiers
>  differ, this specification defines two tags, collectively called the
>  "OID tags" here:
>=20
> I presume that this should be three tags?

(Fixed by Ben=E2=80=99s PR, https://github.com/cbor-wg/cbor-oid/pull/9 =
.)

> In section 4.1.  Tag Factoring Example: X.500 Distinguished Name:
>=20
> The diagram uses a mix of single letters (e.g. c for country), and a =
full name
> "street".  Is this how the X.500 attributes are defined? =20

This uses the naming defined e.g. in RFC 4519, section 2.2 and section =
2.34, which has been derived from X.520 and is quite ubiquitous, going =
back to Table 1 of RFC 1779.

>   The country and street RDNs are single-valued. The second and fourth =
RDNs
>   are multi-valued.
>=20
> Perhaps:  "The country (first) and street (third) RDNs are =
single-valued. The
> second and fourth RDNs are multi-valued.=E2=80=9D

Included in -07 via https://github.com/cbor-wg/cbor-oid/commit/3d0fd8b .

>   h'550407': "Los Angeles", h'550408': "CA",
>=20
> I think that the example would be more clear by splitting the city and =
county
> onto separate lines.

Included in -07 via https://github.com/cbor-wg/cbor-oid/commit/3d0fd8b .

> Finally, the document contains these two sentences that seem to =
somewhat
> conflict with each other:
>=20
> "While these sequences can easily be represented in CBOR arrays of =
unsigned
> integers, a more compact representation can often be achieved by =
adopting the
> widely used representation of object identifiers defined in BER; this
> representation may also be more amenable to processing by other =
software that
> makes use of object identifiers."
>=20
> compared to:
>=20
> "Staying close to the way object identifiers are encoded in ASN.1 BER =
makes
> back-and-forth translation easy; otherwise we would choose a more =
efficient
> encoding."


While the BER form is reasonably efficient, a more efficient =
representation of sequences of unsigned integers that roughly follow =
Zipf=E2=80=99s law in distribution has been described in  =
<https://mailarchive.ietf.org/arch/msg/cbor/9owRyOcXdsK7Ooc1S3D9-AImDdU>, =
which would for instance represent 1.3.6.1.4.1 as 0x136141 and does not =
need a special case to make absolute OIDs efficient.

The WG instead decided to follow the existing BER representation because =
it is so widely implemented and is compatible with SDNVs, which are used =
in additional applications and often have good platform support (e.g., =
Ruby pack/unpack(=E2=80=9Cw*=E2=80=9D)).
For OID-style applications, BER content is often still more compact than =
a CBOR array of unsigned integers.

Tagged (homogeneous) arrays of arcs don=E2=80=99t help as the OID arcs =
vary widely in their range; e.g., the common OID 1.2.840.113549.1.1.1 =
(*, 2+9 bytes in BER) would need to be an array of seven 32-bit integers =
(2tag+2head+28 bytes) instead of a basic CBOR array of unsigned integers =
of 14 bytes.

In general, I don=E2=80=99t think we need to discuss an extensive set of =
alternative approaches (paths not taken) in this specification.

Gr=C3=BC=C3=9Fe, Carsten

(*) {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1) =
rsaEncryption(1)}


From nobody Wed May 19 09:04:00 2021
Return-Path: <internet-drafts@ietf.org>
X-Original-To: cbor@ietf.org
Delivered-To: cbor@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 15DF33A15F0; Wed, 19 May 2021 09:03:55 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: cbor@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 7.29.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: cbor@ietf.org
Message-ID: <162144023503.20207.1442490993929198630@ietfa.amsl.com>
Date: Wed, 19 May 2021 09:03:55 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/u-l7RR1xyvq3PfuAQ6jKubJ7ZEI>
Subject: [Cbor] I-D Action: draft-ietf-cbor-time-tag-00.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 19 May 2021 16:03:55 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Concise Binary Object Representation Maintenance and Extensions WG of the IETF.

        Title           : Concise Binary Object Representation (CBOR) Tags for Time, Duration, and Period
        Authors         : Carsten Bormann
                          Ben Gamari
                          Henk Birkholz
	Filename        : draft-ietf-cbor-time-tag-00.txt
	Pages           : 11
	Date            : 2021-05-19

Abstract:
   The Concise Binary Object Representation (CBOR, RFC 8949) is a data
   format whose design goals include the possibility of extremely small
   code size, fairly small message size, and extensibility without the
   need for version negotiation.

   In CBOR, one point of extensibility is the definition of CBOR tags.
   RFC 8949 defines two tags for time: CBOR tag 0 (RFC3339 time as a
   string) and tag 1 (Posix time as int or float).  Since then,
   additional requirements have become known.  The present document
   defines a CBOR tag for time that allows a more elaborate
   representation of time, as well as related CBOR tags for duration and
   time period.  It is intended as the reference document for the IANA
   registration of the CBOR tags defined.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-cbor-time-tag/

There is also an HTML version available at:
https://www.ietf.org/archive/id/draft-ietf-cbor-time-tag-00.html


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/



From nobody Thu May 20 12:37:47 2021
Return-Path: <lgl@island-resort.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 E0A353A234C for <cbor@ietfa.amsl.com>; Thu, 20 May 2021 12:37:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level: 
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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 yRkT1ybCl7_6 for <cbor@ietfa.amsl.com>; Thu, 20 May 2021 12:37:44 -0700 (PDT)
Received: from p3plsmtpa09-10.prod.phx3.secureserver.net (p3plsmtpa09-10.prod.phx3.secureserver.net [173.201.193.239]) (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 5CE6E3A234E for <cbor@ietf.org>; Thu, 20 May 2021 12:37:44 -0700 (PDT)
Received: from [192.168.1.81] ([76.167.193.86]) by :SMTPAUTH: with ESMTPA id joUJlFYu04jcHjoUJlFVCl; Thu, 20 May 2021 12:37:43 -0700
X-CMAE-Analysis: v=2.4 cv=GqeHRm5C c=1 sm=1 tr=0 ts=60a6ba87 a=t2DvPg6iSvRzsOFYbaV4uQ==:117 a=t2DvPg6iSvRzsOFYbaV4uQ==:17 a=0XtbOteLAAAA:20 a=eNxEihdiSrps5bonez0A:9 a=QEXdDO2ut3YA:10 a=K5BRns4txGll-pm6:21 a=_W_S_7VecoQA:10 a=WQnItmPV2fbdzLaCP6-h:22 a=Z5ABNNGmrOfJ6cZ5bIyy:22 a=bWyr8ysk75zN3GCy5bjg:22
X-SECURESERVER-ACCT: lgl@island-resort.com
From: Laurence Lundblade <lgl@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_E0890120-D62D-4550-8D65-F5263DEA1B8C"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\))
Message-Id: <2AE5612D-B305-4F2C-BC1A-F36F0093F0C0@island-resort.com>
Date: Thu, 20 May 2021 12:37:43 -0700
Cc: rats@ietf.org
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3445.104.17)
X-CMAE-Envelope: MS4xfMwib5FLSGXr0yB1S6lLrQzAplQu6md+c3w4HipDt0oSp/N9cJmg2/+i48YdyDyXKhznw1Ard7PD3zSzk5BkRtJsOr52ZhWCMWVULW/NGpf0tWUUhlPI 7wsTKUW75J5JpiuvBbJ91brbV4OjPkJSyMvnIMxAGykDDPBy/OEacPiSGMova5eBqEaNR2vykckc36+adNqjG2jRmZBwKRGpvk4=
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/xZP_46B2VE9ehfgrUlio7THFvF4>
Subject: [Cbor] Combining CBOR protocol libraries
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, 20 May 2021 19:37:46 -0000

--Apple-Mail=_E0890120-D62D-4550-8D65-F5263DEA1B8C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

This is in the context of defining how CoSWID should be integrated into =
EAT <https://github.com/ietf-rats-wg/eat/pull/102>, but seems like a =
general CBOR protocol library implementation issue.

Let=E2=80=99s say you have a CoSWID library that uses tinyCBOR for CBOR =
decoding. Further let=E2=80=99s say all you have is a header and lib, no =
source. You have a .h file and a .a file.

Same for an EAT implementation, but it uses QCBOR for CBOR decoding.

I assume the input to the CoSWID decoding library is a binary byte =
string with the encoded CBOR. Can=E2=80=99t really be anything else, can =
it?

How to you take the binary encoded CoSWID out of the EAT and feed it to =
the CoSWID library?

If the EAT claim to hold a CoSWID is defined like this

eat_coswid_claim =3D (
    coswid =3D> concise-swid-tag
)

it is truly not possible to feed the CoSWID from the EAT to the CoSWID =
library. QCBOR, and as far as I know, most CBOR decoders do not provide =
access to a still-encoded sub-chunk of the CBOR they are decoding. =
There=E2=80=99s no way to get the binary CBOR encoded byte string out of =
the EAT.

It seems the only possibility here is byte string wrapping like this:

eat_coswid_claim =3D (
    coswid =3D> bstr .cbor concise-swid-tag
)

I think this generalizes to just about every CBOR protocol that includes =
another CBOR protocol. Every time you put a CBOR protocol message inside =
another different CBOR protocol message is MUST be byte string wrapped!

OK, well maybe there can be some exceptions, but I don=E2=80=99t think =
they are universal enough that they can be assumed in CBOR protocol =
design.

If the two libraries use the same CBOR decoder, then EAT=E2=80=99s =
decoder instance can be handed to the CoSWID decoder for temporary use =
to decode the CoSWID. Or similarly, if the two protocols=E2=80=99s being =
combined always go hand-in-hand and thus will rarely be implemented by =
separate libraries, then implementations will usually use the same CBOR =
decoder.

Note that this doesn=E2=80=99t really arise for COSE payloads because =
they are always byte-string wrapped.

Seems like the CBOR-based X.509 certificates going into COSE headers =
partially have this problem. In a lot of cases the COSE library and the =
CBOR-based X.509 cert library will go hand-in-hand and use the same =
decoder. But note that without byte-string wrapping of CBOR-based cert, =
they will always have to go hand-in-hand. You will not be able to =
integrate a CBOR-Cert library that uses one CBOR decoder in with a COSE =
library that uses a different decoder.

So the up shot for me here is that best practice for a CBOR protocol =
that is embedded in another CBOR protocol is byte-string wrapping.

LL


--Apple-Mail=_E0890120-D62D-4550-8D65-F5263DEA1B8C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D"">This is in the =
context of defining how&nbsp;<a =
href=3D"https://github.com/ietf-rats-wg/eat/pull/102" class=3D"">CoSWID =
should be integrated into EAT</a>, but seems like a general CBOR =
protocol library implementation issue.<div class=3D""><br =
class=3D""></div><div class=3D"">Let=E2=80=99s say you have a CoSWID =
library that uses tinyCBOR for CBOR decoding. Further let=E2=80=99s say =
all you have is a header and lib, no source. You have a .h file and a .a =
file.</div><div class=3D""><br class=3D""></div><div class=3D"">Same for =
an EAT implementation, but it uses QCBOR for CBOR decoding.</div><div =
class=3D""><br class=3D""></div><div class=3D"">I assume the input to =
the CoSWID decoding library is a binary byte string with the encoded =
CBOR. Can=E2=80=99t really be anything else, can it?</div><div =
class=3D""><br class=3D""></div><div class=3D"">How to you take the =
binary encoded CoSWID out of the EAT and feed it to the CoSWID =
library?</div><div class=3D""><br class=3D""></div><div class=3D"">If =
the EAT claim to hold a CoSWID is defined like this</div><div =
class=3D""><br class=3D""></div><blockquote style=3D"margin: 0 0 0 40px; =
border: none; padding: 0px;" class=3D""><font face=3D"Courier" =
class=3D"">eat_coswid_claim =3D (<br class=3D"">&nbsp; &nbsp; coswid =
=3D&gt;&nbsp;concise-swid-tag<br class=3D"">)</font></blockquote><div =
class=3D""><br class=3D""></div><div class=3D"">it is truly not possible =
to feed the CoSWID from the EAT to the CoSWID library. QCBOR, and as far =
as I know, most CBOR decoders do not provide access to a still-encoded =
sub-chunk of the CBOR they are decoding. There=E2=80=99s no way to get =
the binary CBOR encoded byte string out of the EAT.</div><div =
class=3D""><br class=3D""></div><div class=3D"">It seems the only =
possibility here is byte string wrapping like this:</div><div =
class=3D""><br class=3D""></div><blockquote style=3D"margin: 0 0 0 40px; =
border: none; padding: 0px;" class=3D""><div class=3D""><font =
face=3D"Courier" class=3D"">eat_coswid_claim =3D (</font></div><div =
class=3D""><font face=3D"Courier" class=3D"">&nbsp; &nbsp; coswid =3D&gt; =
bstr .cbor&nbsp;concise-swid-tag</font></div><div class=3D""><font =
face=3D"Courier" class=3D"">)</font></div></blockquote><div class=3D""><br=
 class=3D""></div><div class=3D"">I think this generalizes to just about =
every CBOR protocol that includes another CBOR protocol. Every time you =
put a CBOR protocol message inside another different CBOR protocol =
message is MUST be byte string wrapped!</div><div class=3D""><br =
class=3D""></div><div class=3D"">OK, well maybe there can be some =
exceptions, but I don=E2=80=99t think they are universal enough that =
they can be assumed in CBOR protocol design.</div><div class=3D""><br =
class=3D""></div><div class=3D"">If the two libraries use the same CBOR =
decoder, then EAT=E2=80=99s decoder instance can be handed to the CoSWID =
decoder for temporary use to decode the CoSWID. Or similarly, if the two =
protocols=E2=80=99s being combined always go hand-in-hand and thus will =
rarely be implemented by separate libraries, then implementations will =
usually use the same CBOR decoder.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Note that this doesn=E2=80=99t really =
arise for COSE payloads because they are always byte-string =
wrapped.</div><div class=3D""><br class=3D""></div><div class=3D"">Seems =
like the CBOR-based X.509 certificates going into COSE headers partially =
have this problem. In a lot of cases the COSE library and the CBOR-based =
X.509 cert library will go hand-in-hand and use the same decoder. But =
note that without byte-string wrapping of CBOR-based cert, they will =
always have to go hand-in-hand. You will not be able to integrate a =
CBOR-Cert library that uses one CBOR decoder in with a COSE library that =
uses a different decoder.</div><div class=3D""><br class=3D""></div><div =
class=3D"">So the up shot for me here is that best practice for a CBOR =
protocol that is embedded in another CBOR protocol is byte-string =
wrapping.</div><div class=3D""><br class=3D""></div><div =
class=3D"">LL</div><div class=3D""><br class=3D""></div></body></html>=

--Apple-Mail=_E0890120-D62D-4550-8D65-F5263DEA1B8C--


From nobody Thu May 20 13:14:42 2021
Return-Path: <Thomas.Fossati@arm.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 A5F8B3A2458; Thu, 20 May 2021 13:14:36 -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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=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=armh.onmicrosoft.com header.b=N8UphjFy; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=N8UphjFy
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 wiK_1CLhwWRd; Thu, 20 May 2021 13:14:32 -0700 (PDT)
Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70085.outbound.protection.outlook.com [40.107.7.85]) (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 11CE13A2456; Thu, 20 May 2021 13:14:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com;  s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5ceK6irckqP4PWbX6R+SJCQRS7cVaq2XeC9rrysfgYE=; b=N8UphjFyAZLYueGLZ3gItiJC3kV4yuoCN+Fv41QrLa4vy9SGnqiCk2nQjjowLUS/Eljz1e/CtS5NenubayHwFeHWSEya5ZODYtu8sIssor28w4UJHCUjoOY0ybVYD0JRdU4p9srrEwV2R8wYCsiSKM3eqdHoKMZO4as1vmieGiE=
Received: from AM0PR01CA0087.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::28) by VE1PR08MB4814.eurprd08.prod.outlook.com (2603:10a6:802:ad::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Thu, 20 May 2021 20:14:28 +0000
Received: from AM5EUR03FT014.eop-EUR03.prod.protection.outlook.com (2603:10a6:208:10e:cafe::71) by AM0PR01CA0087.outlook.office365.com (2603:10a6:208:10e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23 via Frontend Transport; Thu, 20 May 2021 20:14:27 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; ietf.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;ietf.org; dmarc=pass action=none header.from=arm.com;
Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com;
Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT014.mail.protection.outlook.com (10.152.16.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Thu, 20 May 2021 20:14:26 +0000
Received: ("Tessian outbound ea2c9a942a09:v92"); Thu, 20 May 2021 20:14:26 +0000
X-CheckRecipientChecked: true
X-CR-MTA-CID: 3c2b8e52f63404d6
X-CR-MTA-TID: 64aa7808
Received: from b7097b24e2d4.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 3DB4848F-263F-4207-9623-D17F0B537724.1;  Thu, 20 May 2021 20:14:20 +0000
Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b7097b24e2d4.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 20 May 2021 20:14:20 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i0urH0cuAM4JAY48UxyfBjZlpZ08K7xDlt2U4i9X0cl17Sdndd9WlBJYOlHXQUP8DqNecxI13YmB44Nxi0ZZSZ/FB4LMtZZ1Bo4NGDE3nKj+48T/+JMOq0sqbFokzHdlmW0gjY9DDRVTyrdWOTkcBuxqa3EUhlCxtxclN6lzJBt6vnKQ79rJDMPt7AZjsKBWMJ/q/XPPHW2O/jIg6iB7IkaWBLbsP5bmXjQwg2LJoDZhkgJ/eOn3Uf8zV2oZSbAI0RiU253epoN2ikhKH+kPruzRUiJDqLIUvdyx5BCfo/uOHeK9yz0I3zKPawNhvqNUEDkOHCfbYgUy83ug7tUrDw==
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=5ceK6irckqP4PWbX6R+SJCQRS7cVaq2XeC9rrysfgYE=; b=k2DtfEG/WJv/VvADklN8wyXIfr4CW5PQIBzfI6yIUbtU/iLwRcWK1QJfJeiBmbr5kdNXgax7BA8jnevnlnzzP/iLWZzL7BIWGVgGSv8VanLoxkjU8oAEYHIfaluT8v8YP5cZTGYQ2o8/YhOkbn15kapA2gSbRRVHlLvNNhL+5uS9Cw0HmXWwP7Ss2eccUZE/NFWr2d/Fb5a6LOWkLue7akRQzB0DdWoDi24XwZ1syvdXaNz7bkDFwlXYKeoZEYylxHo+YfJhh0XO5fqVCsNElrSc9h9PXwTeiMxBbpvYHeVzVMSkhPoIcidaakfHkSUyqHK3JWNr9PF7pPiZx5qsRw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com;  s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5ceK6irckqP4PWbX6R+SJCQRS7cVaq2XeC9rrysfgYE=; b=N8UphjFyAZLYueGLZ3gItiJC3kV4yuoCN+Fv41QrLa4vy9SGnqiCk2nQjjowLUS/Eljz1e/CtS5NenubayHwFeHWSEya5ZODYtu8sIssor28w4UJHCUjoOY0ybVYD0JRdU4p9srrEwV2R8wYCsiSKM3eqdHoKMZO4as1vmieGiE=
Received: from DB9PR08MB6524.eurprd08.prod.outlook.com (2603:10a6:10:251::8) by DB6PR0801MB1927.eurprd08.prod.outlook.com (2603:10a6:4:75::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Thu, 20 May 2021 20:14:20 +0000
Received: from DB9PR08MB6524.eurprd08.prod.outlook.com ([fe80::e9e7:ea3a:3bca:5b3c]) by DB9PR08MB6524.eurprd08.prod.outlook.com ([fe80::e9e7:ea3a:3bca:5b3c%7]) with mapi id 15.20.4150.023; Thu, 20 May 2021 20:14:19 +0000
From: Thomas Fossati <Thomas.Fossati@arm.com>
To: Laurence Lundblade <lgl@island-resort.com>, "cbor@ietf.org" <cbor@ietf.org>
CC: "rats@ietf.org" <rats@ietf.org>, Thomas Fossati <Thomas.Fossati@arm.com>
Thread-Topic: [Rats] Combining CBOR protocol libraries
Thread-Index: AQHXTa+n/Am9dSiwdEa6W3h4yY1PfKrs3tKA
Date: Thu, 20 May 2021 20:14:19 +0000
Message-ID: <3382F797-49C8-4ECC-AA86-08AD53240D73@arm.com>
References: <2AE5612D-B305-4F2C-BC1A-F36F0093F0C0@island-resort.com>
In-Reply-To: <2AE5612D-B305-4F2C-BC1A-F36F0093F0C0@island-resort.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/16.49.21050901
Authentication-Results-Original: island-resort.com; dkim=none (message not signed) header.d=none;island-resort.com; dmarc=none action=none header.from=arm.com;
x-originating-ip: [82.12.10.179]
x-ms-publictraffictype: Email
X-MS-Office365-Filtering-Correlation-Id: 9ebab0de-7914-479f-17e6-08d91bcbde35
x-ms-traffictypediagnostic: DB6PR0801MB1927:|VE1PR08MB4814:
x-ms-exchange-transport-forked: True
X-Microsoft-Antispam-PRVS: <VE1PR08MB4814E4A95B09E344909A46C79C2A9@VE1PR08MB4814.eurprd08.prod.outlook.com>
x-checkrecipientrouted: true
nodisclaimer: true
x-ms-oob-tlc-oobclassifiers: OLM:1923;OLM:6430;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam-Untrusted: BCL:0;
X-Microsoft-Antispam-Message-Info-Original: V68urQGMAcjDQSPDOyH5XTEC4ziABsYulYqY8/vZ4m7vAM7wHZC19Nqe+ZRih31QFleI6HTI3a9XSxjxoNWGtABIvcR2Ccb3xFYNsk2316A+XayK/TTmxsPX+tSvIp+aNWPHtWUzJc9UrR2PEKDyGlwT1AVavwNgHunuXohgITQa1COfP9OnV48SxDAnWopVQanqWgPxaRWLqdtDmEHA23njZHuoo81pyp6SOJQyq4DUXC9jdaXOboLMjXiK6wEeD4YiIkqtuO4WEzkqMZK4uzAYu8BST4peXGHK9nSuUHpfgHNJ4pA8UIulhQ7otJZ6PP/EUuUfigfto0EQmHXTP53+ZjRYq6Gjga/znPboZ7BtcNrCVzk1M5fLYRcxyTYz3d2PgZ9jbSM+33KOk4vcL+r3Ws/i11d0zP6YhOq0ygF90oR8yfIz+oCYKYgKs2zPl0ksSeiS4C3il2uXyD3PXOCcsUjcOQf4KwZZK2UmA9qrKHDGGJIywwFVDCbAS78nbZ5rM1bPeUViK5ykOIbTE5v4yK09jWHY/Xs5Ul8gvfSFatvpp3xEbN6HfOHI3rh+yxKFr32CW5F72h+cIsaXYlQ7cpjn0g1eDGbJKOmCdwsuUajrJNb6vErQU/ixZrY/76muBNx0GI0qzgrEDKKIxpW77/1bvOI50xg3P+KMwx0jg08JF35aNmp4DbxIki7FGB2EqkcqwpPA7NyC3sdborw8koW7aiZvHefc7ebgBZh0pbWp2imLMv5fxOwyw5cC
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB6524.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(396003)(39850400004)(376002)(366004)(6506007)(86362001)(2616005)(2906002)(91956017)(53546011)(76116006)(186003)(316002)(6512007)(36756003)(71200400001)(83380400001)(66446008)(66556008)(66476007)(64756008)(8936002)(478600001)(110136005)(54906003)(66946007)(26005)(122000001)(966005)(38100700002)(6486002)(5660300002)(4326008)(8676002)(33656002)(45980500001); DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata: =?utf-8?B?WG1pQU93TFRHMktJL3JReUNPMEtRd3cxVVVTQjJRdExpRncxYXhJeHlwSER3?= =?utf-8?B?eTl5U1k1YnZsdnFtVUhxT1E5TGFQTFEvSmJHVnFnK2RPbkx4U1VQMnJrbW51?= =?utf-8?B?MGY0Z0lQVzk2aEt2RGR5ZlNPeEd3RDUwWjZvNncrM0FNN3FxZGUzOG55WGpy?= =?utf-8?B?RjFtcjNmL2pXYUpHQXIyZVRLdzlSUTdJZm02Nzlvb0lUa3pzTDQyazFXSjlC?= =?utf-8?B?bTNLQXZvbjJ0bk8xTUVTajZxRFRmdTN6cjRUTjc5b3JSaVEvZzVBd1dUZDNx?= =?utf-8?B?NXlVQW5lTG51MVZvTHJNREl3c2xXVXBwdHZuaktESEZrWmEyL3RRT1liY2wv?= =?utf-8?B?TXNkcVczL3ZkTzA5SXBmRXNDVmVqUHM4MlFKOWVwWUc3VkJTSytZRllQVkFH?= =?utf-8?B?c3VqNVVLOHRSVFpKVzJ6RlRrQnMycTVZaHdORm8rUkpsdEl4QzBibUFnNUNp?= =?utf-8?B?MnBnaVltZWYxTGpUY2NIa3RoeWJLTnVONGtDREcxeHk4cDd0YmgwOW5WdG9t?= =?utf-8?B?OG9yV2VjR0lpdm15aGpkSUw2aHRSK2Q2bWQ0VHQxQ0xiRDB0ZWZ1MllEckFk?= =?utf-8?B?dmtkNVI0V0xYbGNEQVhTdDBqUW5veldWdndrN2laS2N0WnpwZXZpOFlQOWMx?= =?utf-8?B?Zm5uSjZEVTRZL0JJQWFGYVQyYjFZeVFWSEZlay9GUXNjVUxIRm9ScHNoR0U5?= =?utf-8?B?M1RsK3BUMlJwTGtSM0VhaVRzaFQ4bW9xdUFRYmtyZ2lldXpOWFU4bDNlUGdQ?= =?utf-8?B?TUlWYUQ1RDhmNU45c3pZOFU2eFpibzdyaUdNUUlGVFJlQ0U3TVA5eFBpTDN5?= =?utf-8?B?cWpaQlgyNmlmR0ZaTVVFNnE3MG0vSmc2M3BTMzUyakdvL1V2d0JPZThUbS9Z?= =?utf-8?B?dnhYRjQ4Z2pBUmtBSXBBcGJ2K3ZIQWcyaEUxN2gyclAxMm81NXFxSmNrRHQy?= =?utf-8?B?N0kvWVFjUlV4WmEwV3F2bm5wVC9XSG9NVEdLK2pjWm9WTE03aFJDMit5K3U3?= =?utf-8?B?YmRyNnJvWkR5TzN3VE5lcDdFTmFzdTErUlJUWUJFUUl5ZGhGNS8rQ3lUOFQw?= =?utf-8?B?cmxQcnF1b0tEMHJTOGxKdXNiV1pFRWRhN0F6NmVrbGtlV1hpbGFJRTFTMExt?= =?utf-8?B?MEwzZnhqYnlZeWVUb3RpZGdJYUlpMkowVWduaUJTYVR3N1djT29MNUF3UnN4?= =?utf-8?B?c2VvRjJhcXMyUEcxYTFOUWZaeldBV2VtZSs2bVExaVJlWHhmM1d0L2lKN01N?= =?utf-8?B?aFViRjhFNFZjOG5Hc1dacDJVRGZZbEtYS3lyODYyUU8wSXUvR3R1TmpPTDVk?= =?utf-8?B?NnhaR1h6aEhHSTZrMkMwTytzWUpFVzgxL3NZL0RxR2tjb0d1YkJvbGR0Nkgy?= =?utf-8?B?d2xma2Eyd0M3MnI2OS9ZejBJL3VpWUJzNkN1eCtNSUZEMTRFU1ZEL0NHTUQ1?= =?utf-8?B?MlRDTTVwNU9iQy9Tcmt0RUR5cXlFTk13elp5aHQ4a3FzSWo2WGZkTGNYNVIy?= =?utf-8?B?Wng1b3l6ZERsMU5IdzRmN2hiNXA4Z2ZDbHFpTVAvOHo0MUR2THZvbkJpQjJW?= =?utf-8?B?dEg0bUlYK1ZyUFlSdGJoRWNWQW5rRk1vOTVoUDNmbWcwWXAxdG5BTkFqQlpp?= =?utf-8?B?bEVTVmhEaFBET3J1ZkNjZHZFTHhpOFJLbUxkNEZmT0VRNGlBR2V5UkF4K2dx?= =?utf-8?B?bzVqYWtDeTlwdjErMWY5WnZJL1lGSU9MYitkOU5WSCs1bGVLZW9CNTJFR2ty?= =?utf-8?Q?4czE1mHLa6NCQZeZf3pe1K++qAZ411o+aLLH2pv?=
Content-Type: text/plain; charset="utf-8"
Content-ID: <96CB3F8CAB23C84FA1031D347619BC4C@eurprd08.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1927
Original-Authentication-Results: island-resort.com; dkim=none (message not signed) header.d=none;island-resort.com; dmarc=none action=none header.from=arm.com;
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT014.eop-EUR03.prod.protection.outlook.com
X-MS-Office365-Filtering-Correlation-Id-Prvs: e1890b10-dd18-476d-50ab-08d91bcbd9fe
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: B1dopKw43DahhF8dwoegSMU/0uTVAcRJ4FEBIPwJLdZ68a71mMi6/mWBHBPUd1M3xq9tnCKQMUBSvYjZJEOOKMgHs9oj+vlm4DjQaI54icy3S65DlRvq1WyjdNG2xIMqD5uAsGW4Wi6RpjPDWON5rALyli3xqEdGV8jMGSTnQs6/MwFIwPXnnWZcBZTydtJL0sAQXrI3CrA40pnkj2eEUh+DV8rMF0PQKCr2znv2CLTY4POBlRBIArczMZLeJrVR+BKhQLcMPeI+BXy6imPhBW+ULWjG40tZ/YfffrJ0g7vCMOYyySSMmaP/WWQN4FDBzIXj1SsJmQQWtglh3+8Gy4/SW0EGxnBTFyK9y8Mx2VVAuEqMgY74pSLdMptUa61a8UpTjz7EzYbU6Ntl93TdgKE4IobdlxMrIkGT92s+4Qpa2MJtpBQPClUNYUnV8KDz+tVqsxggDGRrjm3JcWnxkYbAHlFWudZTQBCeLScFUV0mb05Aeki7YEmcKNHQZlyXHpcwnTnrIP3/gFmFF1MPWeI5iEXBE9CPJwihsBehdZDDHdK8qwnm+yC01xs4/DYLUbXq2V+Gc2CiSsy2YGO5d8X+Ubu5g0Zy5zKIIyUe0nypr7MVxmDR+QsA8PsDxyEevl63G/WZJ6LhWdNI9CCXY0PG8c6WtVoRNk/HspZNT7EwNJCkVlHJ6s5nE86yh57l3HFPaEqrray9Xsm8uBmSkbhNthHPbDp8+mvve0HZxR5IqNwUxXryThwmokuVFBj/ZyC+bUrACc38bWpgorG62Q==
X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:;  IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com;  PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(396003)(376002)(39850400004)(136003)(346002)(36840700001)(46966006)(478600001)(8676002)(186003)(6512007)(336012)(8936002)(6506007)(110136005)(966005)(316002)(53546011)(4326008)(450100002)(2616005)(26005)(54906003)(2906002)(82310400003)(70206006)(83380400001)(36756003)(356005)(33656002)(82740400003)(86362001)(36860700001)(81166007)(6486002)(70586007)(5660300002)(47076005); DIR:OUT; SFP:1101; 
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2021 20:14:26.9228 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 9ebab0de-7914-479f-17e6-08d91bcbde35
X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123];  Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com]
X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT014.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4814
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/8MW-y0q0_i3PesHutrzjCyWkH6g>
Subject: Re: [Cbor] [Rats] Combining CBOR protocol libraries
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, 20 May 2021 20:14:37 -0000

SGkgTGF1cmVuY2UsDQoNCk9uIDIwLzA1LzIwMjEsIDIwOjM4LCAiTGF1cmVuY2UgTHVuZGJsYWRl
IiA8bGdsQGlzbGFuZC1yZXNvcnQuY29tPiB3cm90ZToNCj4gVGhpcyBpcyBpbiB0aGUgY29udGV4
dCBvZiBkZWZpbmluZyBob3cgQ29TV0lEIHNob3VsZCBiZSBpbnRlZ3JhdGVkDQo+IGludG8gRUFU
IDxodHRwczovL2dpdGh1Yi5jb20vaWV0Zi1yYXRzLXdnL2VhdC9wdWxsLzEwMj4sIGJ1dCBzZWVt
cw0KPiBsaWtlIGEgZ2VuZXJhbCBDQk9SIHByb3RvY29sIGxpYnJhcnkgaW1wbGVtZW50YXRpb24g
aXNzdWUuICBMZXTigJlzIHNheQ0KPiB5b3UgaGF2ZSBhIENvU1dJRCBsaWJyYXJ5IHRoYXQgdXNl
cyB0aW55Q0JPUiBmb3IgQ0JPUiBkZWNvZGluZy4NCj4gRnVydGhlciBsZXTigJlzIHNheSBhbGwg
eW91IGhhdmUgaXMgYSBoZWFkZXIgYW5kIGxpYiwgbm8gc291cmNlLiBZb3UNCj4gaGF2ZSBhIC5o
IGZpbGUgYW5kIGEgLmEgZmlsZS4NCj4NCj4gU2FtZSBmb3IgYW4gRUFUIGltcGxlbWVudGF0aW9u
LCBidXQgaXQgdXNlcyBRQ0JPUiBmb3IgQ0JPUiBkZWNvZGluZy4NCj4NCj4gSSBhc3N1bWUgdGhl
IGlucHV0IHRvIHRoZSBDb1NXSUQgZGVjb2RpbmcgbGlicmFyeSBpcyBhIGJpbmFyeSBieXRlDQo+
IHN0cmluZyB3aXRoIHRoZSBlbmNvZGVkIENCT1IuIENhbuKAmXQgcmVhbGx5IGJlIGFueXRoaW5n
IGVsc2UsIGNhbiBpdD8NCj4NCj4gSG93IHRvIHlvdSB0YWtlIHRoZSBiaW5hcnkgZW5jb2RlZCBD
b1NXSUQgb3V0IG9mIHRoZSBFQVQgYW5kIGZlZWQgaXQNCj4gdG8gdGhlIENvU1dJRCBsaWJyYXJ5
Pw0KDQpUaGUgQ0JPUiBsaWJyYXJ5IHdlIHVzZSBmb2xsb3dzIHRoZSBnbG9yaW91cyBHb2xhbmcg
aW5zdGl0dXRpb24gb2YNCnByb3ZpZGluZyB0aGUgUmF3TWVzc2FnZSB0eXBlIFsxXS4NCg0KSXQg
Z29lcyBib3RoIHdheXM6IHlvdSBjYW4gdXNlIGl0IHRvIGRlbGF5IGRlY29kaW5nIG9yIHRvIHBy
ZS1lbmNvZGUuDQoNCk1heWJlIHRoZSBDIGxpYnJhcmllcyBjb3VsZCBiZSBleHRlbmRlZCB0byBk
byBzb21ldGhpbmcgc2ltaWxhcj8NCg0KQ2hlZXJzIQ0KDQpbMV0gaHR0cHM6Ly9naXRodWIuY29t
L2Z4YW1hY2tlci9jYm9yDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCklNUE9SVEFOVCBOT1RJ
Q0U6IFRoZSBjb250ZW50cyBvZiB0aGlzIGVtYWlsIGFuZCBhbnkgYXR0YWNobWVudHMgYXJlIGNv
bmZpZGVudGlhbCBhbmQgbWF5IGFsc28gYmUgcHJpdmlsZWdlZC4gSWYgeW91IGFyZSBub3QgdGhl
IGludGVuZGVkIHJlY2lwaWVudCwgcGxlYXNlIG5vdGlmeSB0aGUgc2VuZGVyIGltbWVkaWF0ZWx5
IGFuZCBkbyBub3QgZGlzY2xvc2UgdGhlIGNvbnRlbnRzIHRvIGFueSBvdGhlciBwZXJzb24sIHVz
ZSBpdCBmb3IgYW55IHB1cnBvc2UsIG9yIHN0b3JlIG9yIGNvcHkgdGhlIGluZm9ybWF0aW9uIGlu
IGFueSBtZWRpdW0uIFRoYW5rIHlvdS4NCg==


From nobody Thu May 20 14:10:46 2021
Return-Path: <lgl@island-resort.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 492703A25ED for <cbor@ietfa.amsl.com>; Thu, 20 May 2021 14:10:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level: 
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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 rZdD6AvdZztb for <cbor@ietfa.amsl.com>; Thu, 20 May 2021 14:10:39 -0700 (PDT)
Received: from p3plsmtpa12-01.prod.phx3.secureserver.net (p3plsmtpa12-01.prod.phx3.secureserver.net [68.178.252.230]) (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 BAE623A25E3 for <cbor@ietf.org>; Thu, 20 May 2021 14:10:39 -0700 (PDT)
Received: from [192.168.1.81] ([76.167.193.86]) by :SMTPAUTH: with ESMTPA id jpwDlloAdNQlKjpwElQBjv; Thu, 20 May 2021 14:10:38 -0700
X-CMAE-Analysis: v=2.4 cv=VOMYI/DX c=1 sm=1 tr=0 ts=60a6d04e a=t2DvPg6iSvRzsOFYbaV4uQ==:117 a=t2DvPg6iSvRzsOFYbaV4uQ==:17 a=7CQSdrXTAAAA:8 a=6mruz7Rm3Mx_Hty0Pf8A:9 a=QEXdDO2ut3YA:10 a=n6RA51mxin08yaQ_90wA:9 a=Syi6It9LAEdlcVuo:21 a=_W_S_7VecoQA:10 a=a-qgeE7W1pNrGK8U0ZQC:22
X-SECURESERVER-ACCT: lgl@island-resort.com
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <445B2798-B484-4106-9D8B-2B6A4CC35D99@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_7261DF2A-FDA3-4412-BFF0-55839BC64224"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\))
Date: Thu, 20 May 2021 14:10:37 -0700
In-Reply-To: <3382F797-49C8-4ECC-AA86-08AD53240D73@arm.com>
Cc: "cbor@ietf.org" <cbor@ietf.org>, "rats@ietf.org" <rats@ietf.org>
To: Thomas Fossati <Thomas.Fossati@arm.com>
References: <2AE5612D-B305-4F2C-BC1A-F36F0093F0C0@island-resort.com> <3382F797-49C8-4ECC-AA86-08AD53240D73@arm.com>
X-Mailer: Apple Mail (2.3445.104.17)
X-CMAE-Envelope: MS4xfPKt5D6n5wTqSZgkGaaO8jU/pHo9qUMWsUElb/QKH+MdO60R42cpo+dTPKUvMhyBRQRK0pMv14GHHzicAk+4xhV0qS57N1h46Cvh40JYnv8YsMTduX/o a70Xfq9+jVWI8cuGU2uxZQXCR6pQjNGsiGbOKjrjde02SQxz0B8Yr6xuZ2AxfLEkQTJNWDSKiE+BH4U4FIQ7Lefukv4Hn/JBPG2V1dV/pNyIQOPTrlFrYJ3T 8ij5bpd9rLrJq7EBeyFvnw==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/vKRza6j3qnaEYGXAjTQq8UN1omQ>
Subject: Re: [Cbor] [Rats] Combining CBOR protocol libraries
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, 20 May 2021 21:10:44 -0000

--Apple-Mail=_7261DF2A-FDA3-4412-BFF0-55839BC64224
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On May 20, 2021, at 1:14 PM, Thomas Fossati <Thomas.Fossati@arm.com> =
wrote:
>=20
> Maybe the C libraries could be extended to do something similar?

Yes, I could do that in QCBOR and probably others could too. It would =
require traversal of the CoSWID twice, once to find the end of it in the =
EAT decode and then once to actually decode it. Generally, CPUs are so =
fast these days, even little ones, that CPU consumption doesn=E2=80=99t =
seem like a problem to me. It would definitely be more code to do this =
than byte-string wrapping, but not a huge amount.

This has to be for all flavors of CBOR decoder, C, Rust, Python=E2=80=A6=20=


This would be come a requirement on all your better CBOR decoders as I =
expect embedding some CBOR in other will be common as we build-up the =
CBOR-based protocol infrastructure.

So which is the better practice, byte-string wrapping for protocols or a =
requirement on your better CBOR decoders?

LL


--Apple-Mail=_7261DF2A-FDA3-4412-BFF0-55839BC64224
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On May 20, 2021, at 1:14 PM, Thomas Fossati &lt;<a =
href=3D"mailto:Thomas.Fossati@arm.com" =
class=3D"">Thomas.Fossati@arm.com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" class=3D"">Maybe the C libraries could be =
extended to do something similar?</span><br style=3D"caret-color: rgb(0, =
0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""></div></blockquote></div><br =
class=3D""><div class=3D"">Yes, I could do that in QCBOR and probably =
others could too. It would require traversal of the CoSWID twice, once =
to find the end of it in the EAT decode and then once to actually decode =
it. Generally, CPUs are so fast these days, even little ones, that CPU =
consumption doesn=E2=80=99t seem like a problem to me. It would =
definitely be more code to do this than byte-string wrapping, but not a =
huge amount.</div><div class=3D""><br class=3D""></div><div =
class=3D"">This has to be for all flavors of CBOR decoder, C, Rust, =
Python=E2=80=A6&nbsp;</div><div class=3D""><br class=3D""></div><div =
class=3D"">This would be come a requirement on all your better CBOR =
decoders as I expect embedding some CBOR in other will be common as we =
build-up the CBOR-based protocol infrastructure.</div><div class=3D""><br =
class=3D""></div><div class=3D"">So which is the better practice, =
byte-string wrapping for protocols or a requirement on your better CBOR =
decoders?</div><div class=3D""><br class=3D""></div><div =
class=3D"">LL</div><div class=3D""><br class=3D""></div></body></html>=

--Apple-Mail=_7261DF2A-FDA3-4412-BFF0-55839BC64224--


From nobody Thu May 20 14:45:40 2021
Return-Path: <brian.e.carpenter@gmail.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 6FE433A0857; Thu, 20 May 2021 14:45:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level: 
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 9ZqoTY6bp0vO; Thu, 20 May 2021 14:45:35 -0700 (PDT)
Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B59633A084E; Thu, 20 May 2021 14:45:35 -0700 (PDT)
Received: by mail-pj1-x1035.google.com with SMTP id g6-20020a17090adac6b029015d1a9a6f1aso5965450pjx.1;  Thu, 20 May 2021 14:45:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9UnldNdi5re/WAQMHHPaGSIEKgDZTpbTdGJa1O6b2vo=; b=pLatS4AgFXT4+uAJAS3eIPXU7RevO+RYk/Q75KXZq4nsA8FfQGKm4QS7CBJW84s4sR gJHdDBeTnvTu+IuvbRLn8UJTDISUb9pxwAuMljo5d0JyASCkmqkNIVIdmEN0berJgti0 kNZbCbfnSO6Pq/s/jiRACHgjrX1PQ0N/h+PPU/qQ+G1oarlyhbjQTaCLk2v1ESwo8Kw9 Vim8t1bVPsOFQVcrvw4NViBwvx1nVH4wlqBhG22NkVlqUVLpfqgnYi3LdDa9M/MBUMbo VHvWP9nxftB4myvxN+M03R9HK20fJW95+IJseKxdGimzWHZNsPp62kAEuUob2hBnxKNC BVXA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9UnldNdi5re/WAQMHHPaGSIEKgDZTpbTdGJa1O6b2vo=; b=oWVqC7SnOf9qLRJO+BOw3u+Ypic5JhILZQZ8NlC2s08yVNPuQeJXsX9kmpZxuHj2xQ 8or3ehx8wiLHMtRagdQEkgq1tSJGKtKwe4o3Nh6pa50aTmhnpHqQQy8MuqgUKEjGsw0L ZY5+D2OrU9czu/sr9i43YZjhuIG3HswIzI42wlPWWEhTbzRm3aOqPbLc0MM2Hh8FuPBn qDRHKoxKAyPni8rb3yMJ4djbtAycsd+jQrJihfGe1a4guSfmOJ2W9KqnMlOermnX3cpb ntAlmITJhdtG6EE1Oth5YvZikJbVl7scHq9/dNFaHyoNbY9bMcDgvAqRuAmCFYk/g9SD Dr1g==
X-Gm-Message-State: AOAM533UAHw4Yq8DVRJhpcZslGObfspKiJZEnS5BDk8Nf1Ksy6hSXWt0 zB5jVhahPD2MpWINxoHFt7ejqidzG7PjbA==
X-Google-Smtp-Source: ABdhPJye9KEgPOFiGIsI+wjKKIg5MJPHZgaEQwwJ/jK9XOhrONLHKLJBMcuqaepue4JbBa66K3qKyw==
X-Received: by 2002:a17:90a:117:: with SMTP id b23mr6026436pjb.183.1621547134710;  Thu, 20 May 2021 14:45:34 -0700 (PDT)
Received: from ?IPv6:2406:e003:100d:901:80b2:5c79:2266:e431? ([2406:e003:100d:901:80b2:5c79:2266:e431]) by smtp.gmail.com with ESMTPSA id a26sm2630638pff.149.2021.05.20.14.45.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 May 2021 14:45:34 -0700 (PDT)
To: Laurence Lundblade <lgl@island-resort.com>, cbor@ietf.org
Cc: rats@ietf.org
References: <2AE5612D-B305-4F2C-BC1A-F36F0093F0C0@island-resort.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <dfb5ecc6-ba34-9fc4-2ae3-2ed998196508@gmail.com>
Date: Fri, 21 May 2021 09:45:29 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0
MIME-Version: 1.0
In-Reply-To: <2AE5612D-B305-4F2C-BC1A-F36F0093F0C0@island-resort.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/ElHsSVrUHgZAxvAzaH6YJkQWiTE>
Subject: Re: [Cbor] Combining CBOR protocol libraries
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, 20 May 2021 21:45:39 -0000

On 21-May-21 07:37, Laurence Lundblade wrote:
=2E..
> I think this generalizes to just about every CBOR protocol that include=
s another CBOR protocol. Every time you put a CBOR protocol message insid=
e another different CBOR protocol message is MUST be byte string wrapped!=

>=20
> OK, well maybe there can be some exceptions, but I don=E2=80=99t think =
they are universal enough that they can be assumed in CBOR protocol desig=
n.

=2E..

> So the up shot for me here is that best practice for a CBOR protocol th=
at is embedded in another CBOR protocol is byte-string wrapping.

On 21-May-21 09:10, Laurence Lundblade wrote:
=2E..
> This would be come a requirement on all your better CBOR decoders as I =
expect embedding some CBOR in other will be common as we build-up the CBO=
R-based protocol infrastructure.
>=20
> So which is the better practice, byte-string wrapping for protocols or =
a requirement on your better CBOR decoders?

I don't see how having a class of "better" decoders works with interopera=
bility. If we require that both ends have a "better" decoder, we've effec=
tively forked CBOR, haven't we?

We wrote this problem into the GRASP API (whose RFC, I understand, is les=
s than 24 hours away):

>> A requirement for all language mappings and all API implementations is=20
that, regardless of what other options exist for a language-specific repr=
esentation of the value, there is always an option to use a raw CBOR data=20
item as the value. The API will then wrap this with CBOR Tag 24 as an enc=
oded CBOR data item for transmission via GRASP, and unwrap it after recep=
tion. By this means, ASAs will be able to communicate regardless of progr=
amming language.

I have some "interesting" code for this in my Python GRASP implementation=
, which decides on the fly whether to build a Tag24 or not, and if necess=
ary de-tags an incoming Tag24 item. In other words, I had to write a nano=20
encoder/decoder into my own code.

    Brian






From nobody Thu May 20 15:26:03 2021
Return-Path: <lgl@island-resort.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 52E0E3A0BF3 for <cbor@ietfa.amsl.com>; Thu, 20 May 2021 15:26:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level: 
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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 pcDyldN2gunx for <cbor@ietfa.amsl.com>; Thu, 20 May 2021 15:26:00 -0700 (PDT)
Received: from p3plsmtpa08-02.prod.phx3.secureserver.net (p3plsmtpa08-02.prod.phx3.secureserver.net [173.201.193.103]) (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 445FE3A0BF1 for <cbor@ietf.org>; Thu, 20 May 2021 15:26:00 -0700 (PDT)
Received: from [192.168.1.81] ([76.167.193.86]) by :SMTPAUTH: with ESMTPA id jr79lgf5ENBMajr79lwSo3; Thu, 20 May 2021 15:25:59 -0700
X-CMAE-Analysis: v=2.4 cv=VK8YI/DX c=1 sm=1 tr=0 ts=60a6e1f7 a=t2DvPg6iSvRzsOFYbaV4uQ==:117 a=t2DvPg6iSvRzsOFYbaV4uQ==:17 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=xFd-KHJ-cMaQ07nlEIQA:9 a=QEXdDO2ut3YA:10
X-SECURESERVER-ACCT: lgl@island-resort.com
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\))
From: Laurence Lundblade <lgl@island-resort.com>
In-Reply-To: <dfb5ecc6-ba34-9fc4-2ae3-2ed998196508@gmail.com>
Date: Thu, 20 May 2021 15:25:58 -0700
Cc: cbor@ietf.org, rats@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <F0AC7DDA-5F11-45FA-94F5-C50631575110@island-resort.com>
References: <2AE5612D-B305-4F2C-BC1A-F36F0093F0C0@island-resort.com> <dfb5ecc6-ba34-9fc4-2ae3-2ed998196508@gmail.com>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
X-Mailer: Apple Mail (2.3445.104.17)
X-CMAE-Envelope: MS4xfFkiQvQhcmu4eyaOI7FNjPFJMXXMB0IrVT7b7lHip2CL7B3og0N3jiuX+U94LI5d5nJDVGlEzAXsiO1LmoP1Ok3eTmEXUvLavjW7/ReweoXExWuxglUW PzKI5QbsVTSAd4hrNeXD8GPhfKNH7CyaI0+wpHOcmT3O0SqtXyn6g9BpNZDe1fp3FWJWYUCwIvhOnTDqEzPirCrdvXeL4xhKI1eE2dCKzW9IV2v/pmuCYJuZ 3wZj0FYrj5fbafD/CfkmAg==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/MmdL-m8_7c64LGXOK8Nkbd1l6r4>
Subject: Re: [Cbor] Combining CBOR protocol libraries
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, 20 May 2021 22:26:03 -0000

> On May 20, 2021, at 2:45 PM, Brian E Carpenter =
<brian.e.carpenter@gmail.com> wrote:
>=20
> On 21-May-21 07:37, Laurence Lundblade wrote:
> ...
>>=20
>> So which is the better practice, byte-string wrapping for protocols =
or a requirement on your better CBOR decoders?
>=20
> I don't see how having a class of "better" decoders works with =
interoperability. If we require that both ends have a "better" decoder, =
we've effectively forked CBOR, haven't we?

There=E2=80=99s always half-way implementations of protocols kicking =
around in GitHub and some of them may be useful in limited contexts. A =
CBOR decoder might also not implement preferred serialization, =
indefinite length string decoding and such and that is usually OK.


>=20
> We wrote this problem into the GRASP API (whose RFC, I understand, is =
less than 24 hours away):

> A requirement for all language mappings and all API implementations is=20=

> that, regardless of what other options exist for a language-specific =
representation of the value, there is always an option to use a raw CBOR =
data=20
> item as the value. The API will then wrap this with CBOR Tag 24 as an =
encoded CBOR data item for transmission via GRASP, and unwrap it after =
reception. By this means, ASAs will be able to communicate regardless of =
programming language.
>=20
> I have some "interesting" code for this in my Python GRASP =
implementation, which decides on the fly whether to build a Tag24 or =
not, and if necessary de-tags an incoming Tag24 item. In other words, I =
had to write a nano=20
> encoder/decoder into my own code.

So I take it you prefer byte-string wrapping as a best practice?

LL


From nobody Thu May 20 16:36:04 2021
Return-Path: <brian.e.carpenter@gmail.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 C851F3A1060; Thu, 20 May 2021 16:36:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level: 
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 HFZZmba1fVFU; Thu, 20 May 2021 16:35:55 -0700 (PDT)
Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C050F3A105F; Thu, 20 May 2021 16:35:55 -0700 (PDT)
Received: by mail-pj1-x1032.google.com with SMTP id kr9so1918472pjb.5; Thu, 20 May 2021 16:35:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=bE4CMApxyaeWnk342fdZHcv40l9hlU5CJBmBH3l+4t4=; b=CKkEo3rw1BkXOn0QXcPmotDv8fniEL5nUq6GXF69xhUfpeDVoIh6xU5HhxGxvXcxlk Hgr7aUtQH7eRCmYNdjCsuXDvRcauIV61FCiDQXUfEARHaYtB1FCzw9mFyjpmb/2aAcQY ymofFDfTrAhP0DMB5VlFURkikXFXVoFCW+ADCOgfTYsoHx9zEQTc6XZH+OHDjC2pHhBf 5bjJ32dth+KI+qv6Ljxc462kJf9ByH8J5yhv2c3aUNZFwA28BvlfhibgfflPeFxK6UEU 6TiehKOQXW0FdgEfQ8JFSDhs3RYykloRYUemuyFeXsyHz8kxUP+tNE02ifR1jvBPI9J9 bRlg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bE4CMApxyaeWnk342fdZHcv40l9hlU5CJBmBH3l+4t4=; b=Blzx6L7zZNnDvkyj40J2k0/lSaYLZ0liWhWwAzwsloAv6Iyqk2EKf2DH0Ox1hOftbf JOqkrYWSCJ3xuXEhcxY7Y34bsr8tio0M+m/kxqmSM5ffpuzT7WSvy7XlpQAJEUuQ02mo W/q+4kEgORwbQgPYg4oYe2b91DXbtLGLJWcvV/dIVcIvQsfHkrm5ZLpZYUJTb1S4Z5xo mPKh0lxCK6rUI/paojiZslzvxrHdF6+1xhDqwQclnFQWVH59ehryJiVBbPAuz4E3lF+k UBa81X/4JUlhKVyyem9FSIl6E9wwqo+O3Xxr5doSdtaEOQU3DyMC8RwXSncEdbIUyLq7 44wg==
X-Gm-Message-State: AOAM532cET7haUKRkzR604dWnmArtDYkUC0QI/EtdYnQjZM5Wf5HEoqd 8havuNn1b+j6O83wcRVT/Nlm0lBJrnDaHg==
X-Google-Smtp-Source: ABdhPJyp7L4Kj0thWCidEI/S9PIxt3bRrFC2Ur+unPvAl/HossJSN7MZVgtngYkyicPfvwSIha8CpQ==
X-Received: by 2002:a17:90a:4608:: with SMTP id w8mr7371872pjg.132.1621553754701;  Thu, 20 May 2021 16:35:54 -0700 (PDT)
Received: from ?IPv6:2406:e003:100d:901:80b2:5c79:2266:e431? ([2406:e003:100d:901:80b2:5c79:2266:e431]) by smtp.gmail.com with ESMTPSA id s48sm2683759pfw.205.2021.05.20.16.35.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 May 2021 16:35:54 -0700 (PDT)
To: Laurence Lundblade <lgl@island-resort.com>
Cc: cbor@ietf.org, rats@ietf.org
References: <2AE5612D-B305-4F2C-BC1A-F36F0093F0C0@island-resort.com> <dfb5ecc6-ba34-9fc4-2ae3-2ed998196508@gmail.com> <F0AC7DDA-5F11-45FA-94F5-C50631575110@island-resort.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <d5fbde8b-2de7-f892-7b9a-c79b817e448b@gmail.com>
Date: Fri, 21 May 2021 11:35:49 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0
MIME-Version: 1.0
In-Reply-To: <F0AC7DDA-5F11-45FA-94F5-C50631575110@island-resort.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/szheBrBcG7y5b74SCzwGqP1Yq3Y>
Subject: Re: [Cbor] Combining CBOR protocol libraries
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, 20 May 2021 23:36:01 -0000

On 21-May-21 10:25, Laurence Lundblade wrote:
>=20
>> On May 20, 2021, at 2:45 PM, Brian E Carpenter <brian.e.carpenter@gmai=
l.com> wrote:
>>
>> On 21-May-21 07:37, Laurence Lundblade wrote:
>> ...
>>>
>>> So which is the better practice, byte-string wrapping for protocols o=
r a requirement on your better CBOR decoders?
>>
>> I don't see how having a class of "better" decoders works with interop=
erability. If we require that both ends have a "better" decoder, we've ef=
fectively forked CBOR, haven't we?
>=20
> There=E2=80=99s always half-way implementations of protocols kicking ar=
ound in GitHub and some of them may be useful in limited contexts. A CBOR=20
decoder might also not implement preferred serialization, indefinite leng=
th string decoding and such and that is usually OK.
>=20
>=20
>>
>> We wrote this problem into the GRASP API (whose RFC, I understand, is =
less than 24 hours away):
>=20
>> A requirement for all language mappings and all API implementations is=20

>> that, regardless of what other options exist for a language-specific r=
epresentation of the value, there is always an option to use a raw CBOR d=
ata=20
>> item as the value. The API will then wrap this with CBOR Tag 24 as an =
encoded CBOR data item for transmission via GRASP, and unwrap it after re=
ception. By this means, ASAs will be able to communicate regardless of pr=
ogramming language.
>>
>> I have some "interesting" code for this in my Python GRASP implementat=
ion, which decides on the fly whether to build a Tag24 or not, and if nec=
essary de-tags an incoming Tag24 item. In other words, I had to write a n=
ano=20
>> encoder/decoder into my own code.
>=20
> So I take it you prefer byte-string wrapping as a best practice?

I think so, for the reason in my quote from the GRASP API - it allows you=20
to be reasonably certain of being language-independent.

    Brian


From nobody Fri May 21 00:16:38 2021
Return-Path: <Thomas.Fossati@arm.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 51DF23A1D4B; Fri, 21 May 2021 00:16:31 -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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=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=armh.onmicrosoft.com header.b=ojIdOYOR; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=ojIdOYOR
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 qZ72mEcNNkPI; Fri, 21 May 2021 00:16:27 -0700 (PDT)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140044.outbound.protection.outlook.com [40.107.14.44]) (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 C4F043A1D4A; Fri, 21 May 2021 00:16:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com;  s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HMwBJ+6EYT4/jqgup+0wMVMb1JO1RfqKTSdaQ/0F3KM=; b=ojIdOYORIBYvnC0gew+BxYFlCKbSswfGRceWuNNDo+I6Z5hseh3drvAeclIkUMryLIJdUBVpb8J5Q1297ko5V1vCl2zDCo4PJUB4MgYt+nUyR5m2hEheRKdOyARrxTsM56Ep5+Ua6o0DnkW1CngwK8dXpSwvNReC3zcZsfpP+8M=
Received: from DB6PR0202CA0040.eurprd02.prod.outlook.com (2603:10a6:4:a5::26) by AM6PR08MB4739.eurprd08.prod.outlook.com (2603:10a6:20b:c6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23; Fri, 21 May 2021 07:16:24 +0000
Received: from DB5EUR03FT017.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:a5:cafe::b3) by DB6PR0202CA0040.outlook.office365.com (2603:10a6:4:a5::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.24 via Frontend Transport; Fri, 21 May 2021 07:16:24 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; ietf.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;ietf.org; dmarc=pass action=none header.from=arm.com;
Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com;
Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT017.mail.protection.outlook.com (10.152.20.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Fri, 21 May 2021 07:16:23 +0000
Received: ("Tessian outbound 3c5232d12880:v92"); Fri, 21 May 2021 07:16:23 +0000
X-CheckRecipientChecked: true
X-CR-MTA-CID: 4c97a8277f5bb24a
X-CR-MTA-TID: 64aa7808
Received: from b1c20f3341ed.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 8D37CB0C-6175-4F5B-830B-60BC29F2A74F.1;  Fri, 21 May 2021 07:16:17 +0000
Received: from EUR03-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b1c20f3341ed.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 21 May 2021 07:16:17 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EdPI28aaAnZB6kaEBMlnLQ/gtwX7UoR6p/1vWLbo2OZUGSlQpZKvErAuMYaQVDJX47k9g2MtomF3WnU2dxEYfeL3ASCqDVpjkhTIIVlTIq7Jxbn/HvzqUCuI52OxUjDL+MCha8ouxGY8B3ktI60gM8yXXUeGHMFfAt8Z8qb7R8JLhC4Xml99x0pb5v1Qh5+a8bGPgIZACOXw4EHQ0791qQs6EnWpjIIydIvrAQsY6wi1DF7/exQ0TVgeDpUwcervKIng1jkxo2HIwxlwYEr1VLFr/AvZEBj8IA9zT8xO9VEpMkinbEWyu6gzLeDtgZGufWN27q9jbmqQDxQWwdqhaQ==
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=HMwBJ+6EYT4/jqgup+0wMVMb1JO1RfqKTSdaQ/0F3KM=; b=ER3qVFLcB+QI4HNjdRa/x7Eeotij7V7CPKX2WTNe0uaSDWU1FH4PXdxNVcT4/MpvnjsiwhG+JahfOTAmLFtwNjsUShLuMI3OYerjUB26x5YS+t9vJEMKPbgYAfkA2KYxbpZdlJBbI9VqYzJXh0Krmj/EohYwirBA6Tj7JIe74itD8to3WPqF/UCyJmeAn9Fw5mNmM3cwtwRzeiR5NGGtmHpk0VNrkjrAoPmjmHjt6xFFRnT2vrK9WZRMPZn6nlK+Lfv8656RQCAsAvoPK/vDOLH65KO6R+LiZc7EUok4AHwzYyU5cSvdj3H/kEim7tYHa/UM4gmfPoz3G0wp8OMBGg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com;  s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HMwBJ+6EYT4/jqgup+0wMVMb1JO1RfqKTSdaQ/0F3KM=; b=ojIdOYORIBYvnC0gew+BxYFlCKbSswfGRceWuNNDo+I6Z5hseh3drvAeclIkUMryLIJdUBVpb8J5Q1297ko5V1vCl2zDCo4PJUB4MgYt+nUyR5m2hEheRKdOyARrxTsM56Ep5+Ua6o0DnkW1CngwK8dXpSwvNReC3zcZsfpP+8M=
Received: from DB9PR08MB6524.eurprd08.prod.outlook.com (2603:10a6:10:251::8) by DB6PR0801MB2054.eurprd08.prod.outlook.com (2603:10a6:4:77::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Fri, 21 May 2021 07:16:08 +0000
Received: from DB9PR08MB6524.eurprd08.prod.outlook.com ([fe80::e9e7:ea3a:3bca:5b3c]) by DB9PR08MB6524.eurprd08.prod.outlook.com ([fe80::e9e7:ea3a:3bca:5b3c%7]) with mapi id 15.20.4150.023; Fri, 21 May 2021 07:16:08 +0000
From: Thomas Fossati <Thomas.Fossati@arm.com>
To: Laurence Lundblade <lgl@island-resort.com>
CC: "cbor@ietf.org" <cbor@ietf.org>, "rats@ietf.org" <rats@ietf.org>, Thomas Fossati <Thomas.Fossati@arm.com>
Thread-Topic: [Cbor] [Rats] Combining CBOR protocol libraries
Thread-Index: AQHXTa+n/Am9dSiwdEa6W3h4yY1PfKrs3tKA///+94CAALnsgA==
Date: Fri, 21 May 2021 07:16:07 +0000
Message-ID: <899303B0-5428-43C3-963A-F9270688F2D6@arm.com>
References: <2AE5612D-B305-4F2C-BC1A-F36F0093F0C0@island-resort.com> <3382F797-49C8-4ECC-AA86-08AD53240D73@arm.com> <445B2798-B484-4106-9D8B-2B6A4CC35D99@island-resort.com>
In-Reply-To: <445B2798-B484-4106-9D8B-2B6A4CC35D99@island-resort.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/16.49.21050901
Authentication-Results-Original: island-resort.com; dkim=none (message not signed) header.d=none;island-resort.com; dmarc=none action=none header.from=arm.com;
x-originating-ip: [82.12.10.179]
x-ms-publictraffictype: Email
X-MS-Office365-Filtering-Correlation-Id: 0423afcd-21d7-4dd5-e9cb-08d91c285705
x-ms-traffictypediagnostic: DB6PR0801MB2054:|AM6PR08MB4739:
x-ms-exchange-transport-forked: True
X-Microsoft-Antispam-PRVS: <AM6PR08MB4739B150E05781DE517B726D9C299@AM6PR08MB4739.eurprd08.prod.outlook.com>
x-checkrecipientrouted: true
nodisclaimer: true
x-ms-oob-tlc-oobclassifiers: OLM:4941;OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam-Untrusted: BCL:0;
X-Microsoft-Antispam-Message-Info-Original: ZCWLqYysYu1Mj2VygiOnvW/fsTC5Nbhqr73DdBbnUbvvR/Mv1dvPzyu8PlORImInHnCxczWacXVX8aB7zgMWHMXlLRldRg57gdJL9v4RGpN99kxQIyM5f688TxcSziXfNDJzj2qYDsP7c+C2VQaXJr8+On/h6nMKx+hHn5i47JF1Iw8pmjBG40KEmvo25m9GbQLLpqyIFVC1b5Tp1SetyePC+ce2QehC9Hs9yxZtCGMVNt60UA8oajXHBf6JC8AzIqYKlPuvZ3escxULE6td08Uz3rI4YiwZ3/jq0/1hjNmm2+jRiRfFOin1FKNRQGwz8rAaIZFhaCV2Q9Y3w7vPhr+ah0g90F5vYmAmwF1ecQWezwrJSpVetPv1ttcoNPct2vLbFTCj6vGE0eVMP1pmob4p4uP7Z5cyC6+wJUkq3URdVTAX5vJbHXM+yuTS4NKLpvaByhtnr1po2XLrQL4z6aYz/I0SnuOUqs11nQhx8OJsEEeTCx/wR3OFRknzasTdPpiMWPkpnNR/9z5xc1lwhum+L2yPkdYS3LkGapWnp+Oadb+FWlaP3qzIMOw6kFl8sElqDQahvStDG8Pk3SRb2O/75VysbpXUwpJZkXd77oAd3uYUfKgrpspaBsx26CuOI8a4acrmOAMr05idGvFB0c5ta67rOFYrzpskzEkPf3I=
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB6524.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(396003)(376002)(39860400002)(346002)(86362001)(316002)(8936002)(91956017)(54906003)(76116006)(83380400001)(64756008)(6512007)(66946007)(66446008)(66556008)(66476007)(6486002)(186003)(5660300002)(38100700002)(71200400001)(36756003)(4326008)(122000001)(4744005)(2616005)(26005)(478600001)(8676002)(2906002)(53546011)(6506007)(33656002)(6916009)(45980500001); DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata: ZIrydcLJ1UMMGC4OQWZeuNa3H/CXPDfMGFW/oiHu0X5/yS+bFLCRzuzBRQGeQXg+FhR+H9ZWmAY6O5Dl1HGd4aDmcbyScQr8q1X+iWjY6xhypARkrljCuKYZ9PyfA52Mun+jyBMKVVop9e5hAULGMSOZJpcxvzTO60lVAtSmB2qt5hZ7M3XtWYzAtzgbBokW26bYzrXQtKbBn+TVoPnXrd1AVfOfqmNZj8DT3hXMxErLDHrNKqKp98lxxapDPbAS69MixRZdLayvCWXrWlTHIpLTuINtWABR5Zi6KPl+vkB+QUG6i0KFtqhDPXnATUm2idrJeTaiyuaL//gp+6EhFLtUbaWMT5s4o6N076Mvpd3HmTgypTk8sMnB4Mxwgq8WdSFV4RSzWZSf5MbxEVvb1+COGnuBqeV/D4NnvznhsvNakd02T8mvTMrpfGMGI7xrlQAXrYKyBfL9O9IxLZuhxDSX6nhu1ilOUk7I/BLaRtzWywNKhOIlvXw8Lqgw4vNC3qz9FERuw++NYlGl2s4zq8quaP1j/ZzjjoJLWDeCi578Hmr2lr6FA6fYq/N72xAkRRhlJeOiYFUyLhYgPZH9EXSHKqq2llVO6KkkmZTDyCJ1+PJdZKSwf9TzA0r0e+Ly0aTEHUmwwh937EkITgm7adCJXfPPiIn8IndvPN8CSz9w/0WZuxcGWQr3WC6lQmgm98DoBY6Ecvn2+EsteoYMLCWH2w3jZC81XAwtMs3ki9Cm3s2vM0aiQsI3g5SNeRKI
Content-Type: text/plain; charset="utf-8"
Content-ID: <C0E60C5C163C9946BE8819B48FD88CCB@eurprd08.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB2054
Original-Authentication-Results: island-resort.com; dkim=none (message not signed) header.d=none;island-resort.com; dmarc=none action=none header.from=arm.com;
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT017.eop-EUR03.prod.protection.outlook.com
X-MS-Office365-Filtering-Correlation-Id-Prvs: f88d86e8-173e-4bca-26d8-08d91c284de8
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: DJhc1QAIFZKOHCYrjIWuu6huvoEXMP/1kGGgX0LPJjFEfBeAkpYe4mwBLZLqur9GFR34at5yQ1UkPXJxKCVKrZLq9fUZu3zPYLlXyD/sM6QXXcs+OiwxzdjM075IpYHgg1XcCjiy19IbKZzrQ/7UE7vne4WVO4PuMNtWOPONa656WLlRhhQqi48USCLJBLWamvDwzrI9WxOXp0+MpmAH+jeGzVLX6T61xtjZ/FfsuW6vlHcHcKB/QsWjY9znJd6eRsMdN5WpT7YaT7Es1uuoZNBG2u3sowwJ5aHdVmMpJDmyUPQEs0wva2YHrKe+mk7F0Mpn9X2IPL0Z9Ml5cc/IzJaNS28g0nk7KODmNdzeohSN22mSx8WhMkiMe8v8fb+cc4W3vc2rV5nuC4klsaLa0r+0EgQHLZt6+CiO8OhrhHYmViC4BTk0Z8t/e5Nf2kw2Ic022uiLk7ZHquSy/uYR8ctsLtKMP/kwXp14BsDyhzmvUj8SY637dU6pmAjqW3jsIsSUdkayVyCFU06y21yzDmJIIeZtr+F/WQMPnDiLO2sSCVitvvI/svO0tlWHTMx0d/iERrhIuINBFAg/HZhhqmBfdbPClKsbqNk0NBH4ylq0Me71U59BQfGDIQjKevERwZ9ejF+O4y+Y/NQ9/cxzkQ==
X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:;  IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com;  PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(136003)(346002)(396003)(39860400002)(376002)(46966006)(36840700001)(36756003)(6862004)(2616005)(8676002)(316002)(54906003)(8936002)(336012)(4326008)(5660300002)(2906002)(26005)(4744005)(6486002)(478600001)(47076005)(6512007)(82310400003)(82740400003)(186003)(86362001)(53546011)(6506007)(81166007)(33656002)(83380400001)(450100002)(70206006)(356005)(36860700001)(70586007); DIR:OUT; SFP:1101; 
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2021 07:16:23.3820 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 0423afcd-21d7-4dd5-e9cb-08d91c285705
X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123];  Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com]
X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT017.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4739
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/dPUVg8qUhrmwwBHOOcdU4ci2VLs>
Subject: Re: [Cbor] [Rats] Combining CBOR protocol libraries
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, 21 May 2021 07:16:32 -0000

T24gMjAvMDUvMjAyMSwgMjI6MTAsICJMYXVyZW5jZSBMdW5kYmxhZGUiIDxsZ2xAaXNsYW5kLXJl
c29ydC5jb20+IHdyb3RlOg0KPiBTbyB3aGljaCBpcyB0aGUgYmV0dGVyIHByYWN0aWNlLCBieXRl
LXN0cmluZyB3cmFwcGluZyBmb3IgcHJvdG9jb2xzIG9yDQo+IGEgcmVxdWlyZW1lbnQgb24geW91
ciBiZXR0ZXIgQ0JPUiBkZWNvZGVycz8NCg0KRnJvbSBhbiBJRVRGIHBlcnNwZWN0aXZlLCB3aGF0
IHdlIGNhbiBkbyB0byBtYWtlIHByb3RvY29sIGNvbXBvc2l0aW9uDQplYXNpZXIgaXMgdG8gZG8g
YXMgeW91IHN1Z2dlc3RlZC4NCg0KDQoNCg0KDQpJTVBPUlRBTlQgTk9USUNFOiBUaGUgY29udGVu
dHMgb2YgdGhpcyBlbWFpbCBhbmQgYW55IGF0dGFjaG1lbnRzIGFyZSBjb25maWRlbnRpYWwgYW5k
IG1heSBhbHNvIGJlIHByaXZpbGVnZWQuIElmIHlvdSBhcmUgbm90IHRoZSBpbnRlbmRlZCByZWNp
cGllbnQsIHBsZWFzZSBub3RpZnkgdGhlIHNlbmRlciBpbW1lZGlhdGVseSBhbmQgZG8gbm90IGRp
c2Nsb3NlIHRoZSBjb250ZW50cyB0byBhbnkgb3RoZXIgcGVyc29uLCB1c2UgaXQgZm9yIGFueSBw
dXJwb3NlLCBvciBzdG9yZSBvciBjb3B5IHRoZSBpbmZvcm1hdGlvbiBpbiBhbnkgbWVkaXVtLiBU
aGFuayB5b3UuDQo=


From nobody Fri May 21 11:31:07 2021
Return-Path: <internet-drafts@ietf.org>
X-Original-To: cbor@ietf.org
Delivered-To: cbor@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 8D49C3A1AA9; Fri, 21 May 2021 11:31:04 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: cbor@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 7.30.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: cbor@ietf.org
Message-ID: <162162186452.11265.11233466883487089548@ietfa.amsl.com>
Date: Fri, 21 May 2021 11:31:04 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/hTrPkmy73qG08NeAhz28TlUDjHw>
Subject: [Cbor] I-D Action: draft-ietf-cbor-tags-oid-08.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 21 May 2021 18:31:05 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Concise Binary Object Representation Maintenance and Extensions WG of the IETF.

        Title           : Concise Binary Object Representation (CBOR) Tags for Object Identifiers
        Author          : Carsten Bormann
	Filename        : draft-ietf-cbor-tags-oid-08.txt
	Pages           : 17
	Date            : 2021-05-21

Abstract:
   The Concise Binary Object Representation (CBOR, RFC 8949) is a data
   format whose design goals include the possibility of extremely small
   code size, fairly small message size, and extensibility without the
   need for version negotiation.

   The present document defines CBOR tags for object identifiers (OIDs).
   It is intended as the reference document for the IANA registration of
   the CBOR tags so defined.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-cbor-tags-oid/

There is also an HTML version available at:
https://www.ietf.org/archive/id/draft-ietf-cbor-tags-oid-08.html

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-ietf-cbor-tags-oid-08


Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/



From nobody Fri May 21 12:12:39 2021
Return-Path: <lgl@island-resort.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 79AE53A1D43 for <cbor@ietfa.amsl.com>; Fri, 21 May 2021 12:12:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.893
X-Spam-Level: 
X-Spam-Status: No, score=-1.893 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=unavailable 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 hocvBbS6hcEP for <cbor@ietfa.amsl.com>; Fri, 21 May 2021 12:12:29 -0700 (PDT)
Received: from p3plsmtpa08-07.prod.phx3.secureserver.net (p3plsmtpa08-07.prod.phx3.secureserver.net [173.201.193.108]) (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 2BB453A1D41 for <cbor@ietf.org>; Fri, 21 May 2021 12:12:29 -0700 (PDT)
Received: from [192.168.1.81] ([76.167.193.86]) by :SMTPAUTH: with ESMTPA id kAZQlWewzglockAZQlAO1T; Fri, 21 May 2021 12:12:28 -0700
X-CMAE-Analysis: v=2.4 cv=LMqj/La9 c=1 sm=1 tr=0 ts=60a8061c a=t2DvPg6iSvRzsOFYbaV4uQ==:117 a=t2DvPg6iSvRzsOFYbaV4uQ==:17 a=0XtbOteLAAAA:20 a=7CQSdrXTAAAA:8 a=K6EGIJCdAAAA:8 a=48vgC7mUAAAA:8 a=HEonoVtKCSpAnO0fw30A:9 a=QEXdDO2ut3YA:10 a=k7KLY2EzodI-C8f_:21 a=_W_S_7VecoQA:10 a=a-qgeE7W1pNrGK8U0ZQC:22 a=L6pVIi0Kn1GYQfi8-iRI:22 a=w1C3t2QeGrPiZgrLijVG:22
X-SECURESERVER-ACCT: lgl@island-resort.com
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <F3009559-9208-4373-8C2A-F8A288AECCB9@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_D56675B0-7497-43A2-9F96-B073E398FF8B"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\))
Date: Fri, 21 May 2021 12:12:27 -0700
In-Reply-To: <899303B0-5428-43C3-963A-F9270688F2D6@arm.com>
Cc: "cbor@ietf.org" <cbor@ietf.org>, "rats@ietf.org" <rats@ietf.org>
To: Thomas Fossati <Thomas.Fossati@arm.com>
References: <2AE5612D-B305-4F2C-BC1A-F36F0093F0C0@island-resort.com> <3382F797-49C8-4ECC-AA86-08AD53240D73@arm.com> <445B2798-B484-4106-9D8B-2B6A4CC35D99@island-resort.com> <899303B0-5428-43C3-963A-F9270688F2D6@arm.com>
X-Mailer: Apple Mail (2.3445.104.17)
X-CMAE-Envelope: MS4xfP1rJjDXTiVcMBDvalsAGT43U0VUXUMcG6Cwzwdr5RWE1F6yEzIrbMPq7K5AaVo0SBLjxS+VhYibbNkBQMJXP50Z9z2cyMmaoZlrjqag4bvTu/StfQYZ gqvILrm3LXovYpO14RRSUfw0j7S7yv7+uJIg4S8HACT1SCqW2tgfYP5kz+BObcssZrl+zNN1G7kV5mD+/bj0f6/W6yPkBtellYmO34Pjq4ly4EnihL8DFHSn haCBKueu6K2ixaMGVHbUXg==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/ZCeSVwyPZuFKGJAv8CbfvXjtXK4>
Subject: Re: [Cbor] [Rats] Combining CBOR protocol libraries
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, 21 May 2021 19:12:35 -0000

--Apple-Mail=_D56675B0-7497-43A2-9F96-B073E398FF8B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I=E2=80=99ve made an update to the manifests and swevidece EAT claims =
here <https://github.com/ietf-rats-wg/eat/pull/102> that requires byte =
string wrapping. It also puts tags to use for kind of a full solution =
for identifying and handing off sub-protocol in the CBOR context. It =
goes like this:

If the sub-protocol is CBOR based (e.g. a CoSWID), then wrap it in a =
byte string and rely on the sub-protocol tag for dispatch to the correct =
handler.

If the sub-protocol is NOT CBOR based (e.g. and XML SWID), then contain =
it in a tagged byte string and again use the tag for dispatch.

In the first the tag is the contents of the byte string wrapping and in =
the second the byte string is the contents of a tag.

Note that I=E2=80=99m using the word =E2=80=9Ctag=E2=80=9D here to mean =
the tag number AND tag content. I believe the at is the correct use of =
the tag in the CBOR context, even though it is counter intuitive.

(I also plan to eventually allow QCBOR to return raw encoded CBOR for =
arrays and maps to be able to implement protocols that don=E2=80=99t add =
the byte string wrapping layer)

LL



> On May 21, 2021, at 12:16 AM, Thomas Fossati <Thomas.Fossati@arm.com> =
wrote:
>=20
> On 20/05/2021, 22:10, "Laurence Lundblade" <lgl@island-resort.com> =
wrote:
>> So which is the better practice, byte-string wrapping for protocols =
or
>> a requirement on your better CBOR decoders?
>=20
> =46rom an IETF perspective, what we can do to make protocol =
composition
> easier is to do as you suggested.
>=20
>=20
>=20
>=20
>=20
> IMPORTANT NOTICE: The contents of this email and any attachments are =
confidential and may also be privileged. If you are not the intended =
recipient, please notify the sender immediately and do not disclose the =
contents to any other person, use it for any purpose, or store or copy =
the information in any medium. Thank you.
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor
>=20


--Apple-Mail=_D56675B0-7497-43A2-9F96-B073E398FF8B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D"">I=E2=80=99ve made an update to the manifests and swevidece =
EAT claims&nbsp;<a href=3D"https://github.com/ietf-rats-wg/eat/pull/102" =
class=3D"">here</a>&nbsp;that requires byte string wrapping. It also =
puts tags to use for kind of a full solution for identifying and handing =
off sub-protocol in the CBOR context. It goes like this:</div><div =
class=3D""><br class=3D""></div><div class=3D"">If the sub-protocol is =
CBOR based (e.g. a CoSWID), then wrap it in a byte string and rely on =
the sub-protocol tag for dispatch to the correct handler.</div><div =
class=3D""><br class=3D""></div><div class=3D"">If the sub-protocol is =
NOT CBOR based (e.g. and XML SWID), then contain it in a tagged byte =
string and again use the tag for dispatch.</div><div class=3D""><br =
class=3D""></div><div class=3D"">In the first the tag is the contents of =
the byte string wrapping and in the second the byte string is the =
contents of a tag.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Note that I=E2=80=99m using the word =E2=80=9Ctag=E2=80=9D =
here to mean the tag number AND tag content. I believe the at is the =
correct use of the tag in the CBOR context, even though it is counter =
intuitive.</div><div class=3D""><br class=3D""></div><div class=3D"">(I =
also plan to eventually allow QCBOR to return raw encoded CBOR for =
arrays and maps to be able to implement protocols that don=E2=80=99t add =
the byte string wrapping layer)</div><div class=3D""><br =
class=3D""></div><div class=3D"">LL</div><div class=3D""><br =
class=3D""></div><div class=3D""><br class=3D""></div><div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">On May =
21, 2021, at 12:16 AM, Thomas Fossati &lt;<a =
href=3D"mailto:Thomas.Fossati@arm.com" =
class=3D"">Thomas.Fossati@arm.com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">On =
20/05/2021, 22:10, "Laurence Lundblade" &lt;<a =
href=3D"mailto:lgl@island-resort.com" =
class=3D"">lgl@island-resort.com</a>&gt; wrote:<br class=3D""><blockquote =
type=3D"cite" class=3D"">So which is the better practice, byte-string =
wrapping for protocols or<br class=3D"">a requirement on your better =
CBOR decoders?<br class=3D""></blockquote><br class=3D"">=46rom an IETF =
perspective, what we can do to make protocol composition<br =
class=3D"">easier is to do as you suggested.<br class=3D""><br =
class=3D""><br class=3D""><br class=3D""><br class=3D""><br =
class=3D"">IMPORTANT NOTICE: The contents of this email and any =
attachments are confidential and may also be privileged. If you are not =
the intended recipient, please notify the sender immediately and do not =
disclose the contents to any other person, use it for any purpose, or =
store or copy the information in any medium. Thank you.<br =
class=3D"">_______________________________________________<br =
class=3D"">CBOR mailing list<br class=3D""><a =
href=3D"mailto:CBOR@ietf.org" class=3D"">CBOR@ietf.org</a><br =
class=3D"">https://www.ietf.org/mailman/listinfo/cbor<br class=3D""><br =
class=3D""></div></div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_D56675B0-7497-43A2-9F96-B073E398FF8B--


From nobody Mon May 24 08:57:39 2021
Return-Path: <iesg-secretary@ietf.org>
X-Original-To: cbor@ietf.org
Delivered-To: cbor@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 68B503A2D71; Mon, 24 May 2021 08:57:30 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
From: The IESG <iesg-secretary@ietf.org>
To: "IETF-Announce" <ietf-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 7.30.0
Auto-Submitted: auto-generated
Precedence: bulk
Cc: The IESG <iesg@ietf.org>, cbor-chairs@ietf.org, cbor@ietf.org, christian@amsuess.com, draft-ietf-cbor-tags-oid@ietf.org, francesca.palombini@ericsson.com, rfc-editor@rfc-editor.org
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Message-ID: <162187185039.26422.10510371233250467129@ietfa.amsl.com>
Date: Mon, 24 May 2021 08:57:30 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/aoAegFh6Qrb-Xn3j3fXjeVsffKc>
Subject: [Cbor] Protocol Action: 'Concise Binary Object Representation (CBOR) Tags for Object Identifiers' to Proposed Standard (draft-ietf-cbor-tags-oid-08.txt)
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 24 May 2021 15:57:31 -0000

The IESG has approved the following document:
- 'Concise Binary Object Representation (CBOR) Tags for Object
   Identifiers'
  (draft-ietf-cbor-tags-oid-08.txt) as Proposed Standard

This document is the product of the Concise Binary Object Representation
Maintenance and Extensions Working Group.

The IESG contact persons are Murray Kucherawy and Francesca Palombini.

A URL of this Internet Draft is:
https://datatracker.ietf.org/doc/draft-ietf-cbor-tags-oid/




Technical Summary
   The Concise Binary Object Representation (CBOR, draft-ietf-cbor-
   7049bis) is a data format whose design goals include the possibility
   of extremely small code size, fairly small message size, and
   extensibility without the need for version negotiation.
   This document defines CBOR tags for object identifiers (OIDs).
   It is intended as the reference document for the IANA registration of
   the CBOR tags so defined.

Working Group Summary
   There was working group consensus on publishing this document, no
   point was particularly contentious.

Document Quality
   There are no known existing implementations of the specifications.
   A number of WG participants have stated they have read and
   reviewed the document.  No expert review was requested.

Personnel
   Christian Amsüss is the Document Shepherd.
   Francesca Palombini is the Responsible Area Director.

