
From nobody Wed Dec  1 15:38:39 2021
Return-Path: <emile.cormier.jr@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 210743A0CFA for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 15:38:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level: 
X-Spam-Status: No, score=-2.098 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, HTML_MESSAGE=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 nu60VSHQWcnl for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 15:38:35 -0800 (PST)
Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) (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 30A283A0CF6 for <cbor@ietf.org>; Wed,  1 Dec 2021 15:38:35 -0800 (PST)
Received: by mail-yb1-xb2d.google.com with SMTP id f186so68153086ybg.2 for <cbor@ietf.org>; Wed, 01 Dec 2021 15:38:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:from:date:message-id:subject:to; bh=4htvDYwNCDhO+kT+ZarIi2Me0hvnN7VeqakU5LpTt2g=; b=Ctif0P8/NvKHXxMo8NqbX3n4LYvlkWSNgH1+Vq4Q5H+glwLlRQOnBmEqz2HpbMJT9x uPGG4qrGXXKK3ixDwp8OhWgfqz8oWBpqi/J7Sq/hs5f1floTFwmGOGds2dJp3arxgxhn ScC/VWvyORiH/RqmvVKU8x6daYDt+r5UJkd3UTcrgeDGolQOcIOJI7U4SLZYFXdfLkiD zvbm66/5UpdE92H7XcBc01TnZJTqaoytAq4XAvgrNdCrN/RnEspIj2WT6jluAGQK+hWb 5HOtvLyBDOFMhOBS74qLFRxvuNrV7pbXatwaQAVrVL8QYm+1QfqJ4zahgCWutxIHKKoD OelA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4htvDYwNCDhO+kT+ZarIi2Me0hvnN7VeqakU5LpTt2g=; b=aVSCdRoOR36thZZrTg1rk0L4rS/APYI9r/hZDlKfnBXhxfb05g13IyTHkcItRQwr8o 6CK+wkjq4APTFeBmZix2kVpg1mbHk0pUw+4Q9ZXNsXAVQm+k7XMdpOcMEkklOnYVM9Ye esTWdcqqP/NHowL2doWM1sPZ4DtFH7m+V+Jyk99Savfn3sw6fw8Ooh087i3+jlHAv4vo lmVPeryT/vT9B3t3miubSPOYwNcRSxDL3dQVI1pkiduIbjcJAUNwj/VQy7upXH29x2o1 SidrWOtTzuGWU5O7yRk1+MT6Sbf96SjH9FKe3g0S2lScB0C2zcZSaAzRhVu3zj6ek9Go GexA==
X-Gm-Message-State: AOAM531MMOmcTHO24lvr3itXWpQ1t32wgLZaki9OgMC4wDxAh3+WnyN0 5iJmnxUX+POQ8QIAPAmdN+PHK6KhqYRLAx/8KAhfbKNmEBI=
X-Google-Smtp-Source: ABdhPJyU1jj/WtChQs0/rY8hQ+DETHF80hE8rla1QxHlSDyGLgvmZZDVILz2vURGnCx0YWedqWAFX+3qFnxUdoRXeRM=
X-Received: by 2002:a25:bf8f:: with SMTP id l15mr11116786ybk.670.1638401911474;  Wed, 01 Dec 2021 15:38:31 -0800 (PST)
MIME-Version: 1.0
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Wed, 1 Dec 2021 19:38:20 -0400
Message-ID: <CAM70yxDvL1HKZSz8FMwFb64Tvse6TrqUwNgTmeY7kbMYGazDjg@mail.gmail.com>
To: cbor@ietf.org
Content-Type: multipart/alternative; boundary="000000000000eece7d05d21e2b53"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/rBkvIe6h-RXqaswZ0qyz01AdcBs>
Subject: [Cbor] Challenges in supporting bignum tag
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, 01 Dec 2021 23:38:38 -0000

--000000000000eece7d05d21e2b53
Content-Type: text/plain; charset="UTF-8"

Hi Everyone,

I'm in the process of supporting CBOR "bignums" (which I think should have
been named "bigint") in my C++ serialization library, and have encountered
the following challenges:

1. When transcoding to other binary formats (such as MessagePack), the sign
of the bignum is lost because it is deduced by the tag value and is not
part of the message payload. I have to resort to converting it to [sign,
byte_array], which makes it no longer round-trippable to its original CBOR
format.

2. In CBOR decoders that ignore tags, the sign of the bignum is lost when
passed up to the application. This goes against the following passage in
section 3.4 of the spec:

*"Decoders do not need to understand tags of every tag number, and tags may
be of little value in applications where the implementation creating a
particular CBOR data item and the implementation decoding that stream know
the semantic meaning of each item in the data flow."*

So even if the application knows the semantic meaning of the received byte
array (it's expecting a bignum), it cannot reconstitute the sign of the
received magnitude without knowing the tag.

Note that the same sort of information loss occurs with typed arrays,
although it is more likely that an application would know the endianness
and element size of a received typed array.

3. Most arbitrary precision libraries represent big integers in signed
magnitude format. CBOR wants negative values to be stored as (-1 - N). I
therefore need to subtract one from the magnitude stored in a negative
multiprecision integer. Because the multiprecision subtraction algorithm
needs to start from the least significant byte (to propagate carries), I
have to perform subtraction on the entire bigint before I can serialize it
to CBOR. This is because CBOR wants the bytes to be in big endian order.
It's therefore not possible to process and serialize each source byte "on
the fly" starting from the most significant byte. If I'm serializing a huge
bigint, then there's a space doubling penalty in the temporary bigint
needed for the subtraction.

4. Because of #3, my CBOR codec implementation now depends on
multiprecision integer arithmetic. I'm now forced to do one of the
following:

a) Add a dependency to a multiprecision arithmetic library, which may not
be the same one that's used by the application. For example, my library
depends on Boost.Multiprecision, but the application wants to serialize a
GMP bignum. The application now ends up with dependencies on *two*
multiprecision libraries - yuck!

b) Write the multiprecision subtraction by hand to avoid introducing a
dependency on a multiprecision arithmetic library. While the algorithm
isn't too complicated, what I write is certain to be slower than a
multiprecision library.

c) Require that the intermediary byte format passed to the encoder be the
same as what CBOR expects (which may not be the same format as what other
binary serialization formats want). For example, the header in my library
which adds GMP serialization support could use GMP itself to perform the -1
subtraction and pass those bytes to the encoder. I should note here that
the encoder interface in my library is agnostic of the serialization
format. That is, the JSON encoder interface is the same as the CBOR encoder
interface. This makes it easy for the application to serialize to different
formats (JSON, CBOR, etc) without having to change anything in the
application's serialization code.


In short, my life would be much easier if CBOR bignums were different in
the following way:

- The sign is part of the message payload, and not "deduced" by the tag
value,
- The bytes represent the magnitude of the bignum: no subtraction/addition
by 1 for negative values.

There are other tags that currently depend on the existing bignum tag
(bigdecimal, bigfloat, extended time), so I don't expect there to be much
interest in a new "sane bignum" tag that addresses the "flaws" I brought up
here. I'm just documenting the challenges I'm facing with the existing
bignum tag so that they're considered if there's ever a fork of this
standard, or if some other binary protocol wants to implement bignums.

Overall I feel there's too much emphasis in CBOR on cramming everything
into as few bytes as possible, and not enough on decoding simplicity and
speed. I also think some tags have been "abused" for storing information
that should otherwise be part of the message payload (all in the name of
saving a few bytes). This makes tags go beyond their purpose of providing
semantic meaning.

Sorry if this comes across as a rant. It's not my intention to belittle
anyone. I just wanted to share my challenges in implementing CBOR for my
C++ serialization library. Perhaps someone here will have advice on how I
can overcome these challenges.

Cheers,
Emile Cormier

--000000000000eece7d05d21e2b53
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Everyone,</div><div><br></div><div>I&#39;m in the =
process of supporting CBOR &quot;bignums&quot; (which I think should have b=
een named &quot;bigint&quot;) in my C++ serialization library, and have enc=
ountered the following challenges:</div><div><br></div><div>1. When transco=
ding to other binary formats (such as MessagePack), the sign of the bignum =
is lost because it is deduced by the tag value and is not part of the messa=
ge payload. I have to resort to converting it to [sign, byte_array], which =
makes it no longer round-trippable to its original CBOR format.</div><div><=
br></div><div>2. In CBOR decoders that ignore tags, the sign of the bignum =
is lost when passed up to the application. This goes against the following =
passage in section 3.4 of the spec:</div><div><i><br></i></div><div style=
=3D"margin-left:40px"><i>&quot;Decoders do not need to understand tags of e=
very tag number, and tags may be of little value in applications where the =
implementation creating a particular CBOR data item and the implementation =
decoding that stream know the semantic meaning of each item in the data flo=
w.&quot;</i></div><div><br></div><div>So even if the application knows the =
semantic meaning of the received byte array (it&#39;s expecting a bignum), =
it cannot reconstitute the sign of the received magnitude without knowing t=
he tag.</div><div><br></div><div>Note that the same sort of information los=
s occurs with typed arrays, although it is more likely that an application =
would know the endianness and element size of a received typed array.<br></=
div><div><br></div><div>3. Most arbitrary precision libraries represent big=
 integers in signed magnitude format. CBOR wants negative values to be stor=
ed as (-1 - N). I therefore need to subtract one from the magnitude stored =
in a negative multiprecision integer. Because the multiprecision subtractio=
n algorithm needs to start from the least significant byte (to propagate ca=
rries), I have to perform subtraction on the entire bigint before I can ser=
ialize it to CBOR. This is because CBOR wants the bytes to be in big endian=
 order. It&#39;s therefore not possible to process and serialize each sourc=
e byte &quot;on the fly&quot; starting from the most significant byte. If I=
&#39;m serializing a huge bigint, then there&#39;s a space doubling penalty=
 in the temporary bigint needed for the subtraction.<br></div><div><br></di=
v><div>4. Because of #3, my CBOR codec implementation now depends on multip=
recision integer arithmetic. I&#39;m now forced to do one of the following:=
</div><div><br></div><div>a) Add a dependency to a multiprecision arithmeti=
c library, which may not be the same one that&#39;s used by the application=
. For example, my library depends on Boost.Multiprecision, but the applicat=
ion wants to serialize a GMP bignum. The application now ends up with depen=
dencies on <i>two</i> multiprecision libraries - yuck!</div><div><br></div>=
<div>b) Write the multiprecision subtraction by hand to avoid introducing a=
 dependency on a multiprecision arithmetic library. While the algorithm isn=
&#39;t too complicated, what I write is certain to be slower than a multipr=
ecision library.<br></div><div><br></div><div>c) Require that the intermedi=
ary byte format passed to the encoder be the same as what CBOR expects (whi=
ch may not be the same format as what other binary serialization formats wa=
nt). For example, the header in my library which adds GMP serialization sup=
port could use GMP itself to perform the -1 subtraction and pass those byte=
s to the encoder. I should note here that the encoder interface in my libra=
ry is agnostic of the serialization format. That is, the JSON encoder inter=
face is the same as the CBOR encoder interface. This makes it easy for the =
application to serialize to different formats (JSON, CBOR, etc) without hav=
ing to change anything in the application&#39;s serialization code.</div><d=
iv><br></div><div><br></div><div>In short, my life would be much easier if =
CBOR bignums were different in the following way:</div><div><br></div><div>=
- The sign is part of the message payload, and not &quot;deduced&quot; by t=
he tag value,</div><div>- The bytes represent the magnitude of the bignum: =
no subtraction/addition by 1 for negative values.</div><div><br></div><div>=
There are other tags that currently depend on the existing bignum tag (bigd=
ecimal, bigfloat, extended time), so I don&#39;t expect there to be much in=
terest in a new &quot;sane bignum&quot; tag that addresses the &quot;flaws&=
quot; I brought up here. I&#39;m just documenting the challenges I&#39;m fa=
cing with the existing bignum tag so that they&#39;re considered if there&#=
39;s ever a fork of this standard, or if some other binary protocol wants t=
o implement bignums.</div><div><br></div><div>Overall I feel there&#39;s to=
o much emphasis in CBOR on cramming everything into as few bytes as possibl=
e, and not enough on decoding simplicity and speed. I also think some tags =
have been &quot;abused&quot; for storing information that should otherwise =
be part of the message payload (all in the name of saving a few bytes). Thi=
s makes tags go beyond their purpose of providing semantic meaning.<br></di=
v><div><br></div><div>Sorry if this comes across as a rant. It&#39;s not my=
 intention to belittle anyone. I just wanted to share my challenges in impl=
ementing CBOR for my C++ serialization library. Perhaps someone here will h=
ave advice on how I can overcome these challenges.<br></div><div><br></div>=
<div>Cheers,</div><div>Emile Cormier<br></div></div>

--000000000000eece7d05d21e2b53--


From nobody Wed Dec  1 15:57:51 2021
Return-Path: <emile.cormier.jr@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 7FF893A0D10 for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 15:57:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.086
X-Spam-Level: 
X-Spam-Status: No, score=-2.086 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01, URIBL_BLOCKED=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 EwuNN9OOQ-8x for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 15:57:36 -0800 (PST)
Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) (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 54C4C3A0D12 for <cbor@ietf.org>; Wed,  1 Dec 2021 15:57:36 -0800 (PST)
Received: by mail-yb1-xb35.google.com with SMTP id v138so68343144ybb.8 for <cbor@ietf.org>; Wed, 01 Dec 2021 15:57:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dDKZnBD5llC6S7V+Cai+7Q4j0Kg4mLqEjZOaIWWIJds=; b=WVBLW3TUEgaeIZCvZPyKSZNAqx+D45bGl1LJl2Eb28Z0JPu9fr17OalHMV2C6/iaiZ BiHUTwzSriMiEHm+Ym7N1X+JATgr+SadXCRLgSzrw1vlYR3wuZLWa38HRM4iJJzsONKX H/vUK4sIxyprABEZYWlDTjlVtfuV78KojY0sDo5z1ME+kKxHJJpBRcnF+QXBU9uiH1Rb M5qh45fLcg8lEzTCRYy9su3A6ygrpi8YX3RjLLT1O0YQTKTEgZOz47R3xT15Y2qy7351 ZGdMytBy6eCSZoDpcPu7x/fZS4BOApp8PWCqyfO6DjD3pLMN3LDCGGd2jI3EyOEBF+v+ mb7A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dDKZnBD5llC6S7V+Cai+7Q4j0Kg4mLqEjZOaIWWIJds=; b=pZf3ZiPPXlNmXNWD/4qmCLZyJ4JL3ZIRua1U22SwT4OX82fdFOIBihUX5s2+3JsosM 4y9uzYhmRsPLKL6lHsOvMsfSjZ0b541/g7AnWw7GXZ2a1IcbtTyh9+X28PwSOgg2IhZD tPIOuL9SydOX/YHS9tDug+8xE1DrXbAGna9oct8LGWaBMaGR3s355+WCoqrfT+m5/CF3 ChIqw+QKdX9n+5qm15w+JMhRM/MacMo4gb0CLONGZL7uRFYza2exfPvtpUq1EG24O4o3 QLWRRw1qB/UvrwTtyxQlGOF203xE1S06fRKmh9674KOJXJ4CdHq0TzY6DVezZVd4fohV Eung==
X-Gm-Message-State: AOAM532F2X5ucDruAecIabJFDkJOrTCoITwE1UKlX68qnh+P0Dj3+emo hS5ndSpGCa3DsFPzUG5I5YDkod1Aq3Rz2+doisQ=
X-Google-Smtp-Source: ABdhPJz3fo1v3Kakj/6dFweKGP+dFuqMwq3/LDZ6NAWVnUNWpw8PkeywCTBOZSgzq6n+RYYJj59BL5KtreJh/eq7G7I=
X-Received: by 2002:a25:2346:: with SMTP id j67mr11194103ybj.467.1638403054545;  Wed, 01 Dec 2021 15:57:34 -0800 (PST)
MIME-Version: 1.0
References: <CAEs2a6vNhrHhaiPUNtbJ68WYfbrprETPr+kmWNJgNXMSawyBig@mail.gmail.com> <E3F121DA-95EE-43C6-BC72-E3763C034944@tzi.org> <CAEs2a6uZrT9FFP6qa+hPV2sYO0y+xJJmLaF-pPoynE2vqspfBg@mail.gmail.com> <CAEs2a6uHyvvghAMCN=UmhpJMoiES7zoPmGi-bATZWXgjA068Mg@mail.gmail.com> <YY0B4YxuMuw20umu@hephaistos.amsuess.com> <CAEs2a6utA=GQSx2Ln=5wnoNdS6z+0ExdCcfNXG6cAg=1MxnT=w@mail.gmail.com> <901541DC-A520-44CD-AA8D-F2CE77F03FA0@tzi.org> <CAEs2a6sZd4s-DJ3R_M4BLwO12s8i2AGfv0yXCaWdy+baOuAEqw@mail.gmail.com> <8CA1A63D-70B5-4109-ABE7-9CF9197F0375@tzi.org> <CAEs2a6uTKJ1DOTjREjKaRSY6kNAHSof97OoRAZbjDWOazLQC+A@mail.gmail.com> <CAEs2a6tY02haauD4OL18fp15Zet2bqkq+xVzEvAEiK5cvTpy2w@mail.gmail.com> <5C7719D8-8DCB-41BE-9111-882A02D43506@tzi.org> <CAEs2a6vVL9_wvrbwske80m5P5Y1xKw6_ecitDL9uybf2TsvWHw@mail.gmail.com> <CAEs2a6tW7K71wKfK-EerdntmyTppqDrz=Fjb7BfADXAkH5N3gA@mail.gmail.com>
In-Reply-To: <CAEs2a6tW7K71wKfK-EerdntmyTppqDrz=Fjb7BfADXAkH5N3gA@mail.gmail.com>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Wed, 1 Dec 2021 19:57:23 -0400
Message-ID: <CAM70yxB_YaRWccUk_UfLgxwd1gSUNxkDmaWfh-15wEiXsVe9Ng@mail.gmail.com>
To: Kris Zyp <kriszyp@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, =?UTF-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>, cbor@ietf.org
Content-Type: multipart/alternative; boundary="00000000000010b07c05d21e70ac"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/-JmHqlXMiCvHaHt4EGYNbSUSVu0>
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, 01 Dec 2021 23:57:49 -0000

--00000000000010b07c05d21e70ac
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I'd like to point out that this proposal as it's currently written will
result in loss of information with CBOR decoders that don't understand the
tags, or when the data elements are transcoded to another protocol such as
JSON. This is due to the tags carrying information (record IDs) that the
application needs in order to make sense of the received payload. The
proposed tags do more than provide "semantic meaning"; they also carry
information.

This practice of bundling numeric information into the tags is making it so
that these CBOR items are not interoperable when transcoded to JSON (think
web browser), or when a CBOR decoder doesn't understand the tags and
doesn't propagate them up to the application.


On Mon, Nov 29, 2021 at 9:35 AM Kris Zyp <kriszyp@gmail.com> wrote:

> To follow up, I did update the proposal/spec to use the tag id range
> of 57342-57599. Let me know if you would prefer different ids.
> Thanks,
> Kris
>
> On Wed, Nov 17, 2021 at 10:52 PM Kris Zyp <kriszyp@gmail.com> wrote:
> >
> > That sounds reasonable to me.
> >
> > To clarify a little bit of the rationale for this:
> > The purpose of a global registry, as I understand it, is to define the
> > global tag ids that need to be known by independent encoders and
> > decoders prior to their encoding and decoding interaction. However,
> > ids that can be communicated within a message for the scope of that
> > message, don't require global allocation, if they are only used within
> > a specified scope. This is just like in a programming language: a
> > variable from an inner block may shadow another variable from an outer
> > block or a global scope temporarily within its block without affecting
> > the outer or global scope (this doesn't require any coordination with
> > a registry of globals). And a decoder that really implements this
> > proposal would, by definition, be implementing this behavior of
> > temporary tag reassignment/shadowing, if it really is a true record
> > implementation (i.e. a real record implementation wouldn't see
> > gobbledygook if it is conformant).
> >
> > Also allowing dynamic/temporary allocation permits potential use of
> > shorter/more efficient tag ids based on known use of other tags, and
> > in the case of record references, these may occur much more frequently
> > in a data item/document compared record definitions, and be much more
> > sensitive to size differences. Furthermore, this also sidesteps issues
> > with having to figure out the appropriate size of a range of ids to
> > globally allocate. How many ids should be allocated? In terms of
> > percentage of available space, registering/using 256 ids from the tag
> > 1+2 range seems like it is effectively equivalent as registering 1 id
> > from the tag 1+1 range (and tag 1+4 would definitely be undesirable
> > due to the high frequency and sensitivity to size). And I have had
> > users of my implementations say they need a few hundred structures to
> > be defined and referenceable, so even 256 may be somewhat limiting to
> > some users.
> >
> > But that being said, if you are thinking that it may be too onerous
> > for (record) implementators to support this type of potentially
> > dynamic/temporary tag reassignment with possibly conflicting ids (as
> > opposed to using a more stable table of tags or tag ranges), I can
> > understand that concern. What size of chunk of tag ids (above 32768)
> > do you think would be appropriate to allocate? Would a chunk of 256 be
> > reasonable?
> >
> > Anyway, thank you for your help and feedback!
> > Thanks,
> > Kris
> >
> >
> >
> > On Wed, Nov 17, 2021 at 1:52 PM Carsten Bormann <cabo@tzi.org> wrote:
> > >
> > > Hi Kris,
> > >
> > > thank you for the update.
> > > I still need to take a closer look, but I have one immediate reaction=
:
> > > You probably shouldn=E2=80=99t induce implementations to =E2=80=9Chij=
ack=E2=80=9D a tag number.
> > > The handling of a tag number that has actually been allocated for
> something else may be deeply embedded into the CBOR decoder; a record
> implementation then would only see gobbledygook.
> > > So I think we should allocate some space for tag-allocated tags =E2=
=80=94 I
> don=E2=80=99t see a big problem with allocating a chunk above 32768 just =
for the
> record proposal.
> > >
> > > Gr=C3=BC=C3=9Fe, Carsten
> > >
> > >
> > > > On 2021-11-17, at 16:16, Kris Zyp <kriszyp@gmail.com> wrote:
> > > >
> > > > I have updated my tag registration proposal/submission at
> > > > https://github.com/kriszyp/cbor-records to use 1+2 tag entries,
> which
> > > > hopefully makes this a much less intrusive registry entry. I have
> also
> > > > updated the proposed tag definitions to also support up-front
> > > > declaration of a set of record structure definitions for a data ite=
m
> > > > ("around" that data item, like the packed approach, as you
> suggested),
> > > > in addition to the current inline record definitions (which can be
> > > > scoped with record definitions and should follow a well-specified
> > > > order for when they can be referenced by subsequent references). I
> > > > hope this offers flexibility for encoders that have all structures
> > > > known a-priori and streaming encoders (that do not), while still
> > > > maintaining nearly the same mechanics for decoders. Let me know if
> you
> > > > think this looks reasonable.
> > > > Thank you!
> > > > Kris
> > > >
> > > > On Thu, Nov 11, 2021 at 9:15 PM Kris Zyp <kriszyp@gmail.com> wrote:
> > > >>
> > > >>> Actually, stats would be very interesting.
> > > >>> I was assuming that the 1+1 setup comes with a number of 1+2
> referencing records, the hit from going to 1+2 there as well would be
> relatively insignificant.
> > > >>> Number are better than assumptions!
> > > >>
> > > >> You are definitely right, using 1+2 tag for defining records is
> pretty
> > > >> insignificant (around a quarter of percent in my tests). Anyway, I
> put
> > > >> together some tests comparing CBOR packed, record structures, and
> > > >> combinations with a couple test data structures, with my library,
> for
> > > >> the sake of further comparisons:
> > > >> https://gist.github.com/kriszyp/b623b85d2dc25ac9e3b07d8f39df9307
> > > >>
> > > >> Anyway, seeing this, I am happy to go ahead and update my proposal
> to
> > > >> use a 1+2 tag for defining records. And thinking about this, I don=
't
> > > >> think my proposal necessarily even needs to mandate the tag ids us=
ed
> > > >> for referencing records since those are dynamically assigned and
> > > >> explicitly specified by the encoder itself (encoder obviously must
> not
> > > >> conflict and use tag ids that will be used for other purposes),
> albeit
> > > >> can encourage a certain range (presumably from the first-come
> > > >> first-serve range).
> > > >>
> > > >> Do you have any preference for a tag id to use? It looks like 279 =
is
> > > >> the next in the contiguous block, but sounds like choosing aesthet=
ic
> > > >> characters is the new preference (29299/"rs" perhaps).
> > > >>
> > > >> Anyway, thanks again for the helpful feedback, really appreciate i=
t!
> > > >>
> > > >> Thanks,
> > > >> Kris
> > > >
> > > > _______________________________________________
> > > > CBOR mailing list
> > > > CBOR@ietf.org
> > > > https://www.ietf.org/mailman/listinfo/cbor
> > >
>
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor
>

--00000000000010b07c05d21e70ac
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I&#39;d like to point out that this proposal as it&#3=
9;s currently written will result in loss of information with CBOR decoders=
 that don&#39;t understand the tags, or when the data elements are transcod=
ed to another protocol such as JSON. This is due to the tags carrying infor=
mation (record IDs) that the application needs in order to make sense of th=
e received payload. The proposed tags do more than provide &quot;semantic m=
eaning&quot;; they also carry information.</div><div><br></div><div>This pr=
actice of bundling numeric information into the tags is making it so that t=
hese CBOR items are not interoperable when transcoded to JSON (think web br=
owser), or when a CBOR decoder doesn&#39;t understand the tags and doesn&#3=
9;t propagate them up to the application.<br></div><br></div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Nov 29, 2021=
 at 9:35 AM Kris Zyp &lt;<a href=3D"mailto:kriszyp@gmail.com">kriszyp@gmail=
.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex">To follow up, I did update the proposal/spec to use the tag id range<br=
>
of 57342-57599. Let me know if you would prefer different ids.<br>
Thanks,<br>
Kris<br>
<br>
On Wed, Nov 17, 2021 at 10:52 PM Kris Zyp &lt;<a href=3D"mailto:kriszyp@gma=
il.com" target=3D"_blank">kriszyp@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; That sounds reasonable to me.<br>
&gt;<br>
&gt; To clarify a little bit of the rationale for this:<br>
&gt; The purpose of a global registry, as I understand it, is to define the=
<br>
&gt; global tag ids that need to be known by independent encoders and<br>
&gt; decoders prior to their encoding and decoding interaction. However,<br=
>
&gt; ids that can be communicated within a message for the scope of that<br=
>
&gt; message, don&#39;t require global allocation, if they are only used wi=
thin<br>
&gt; a specified scope. This is just like in a programming language: a<br>
&gt; variable from an inner block may shadow another variable from an outer=
<br>
&gt; block or a global scope temporarily within its block without affecting=
<br>
&gt; the outer or global scope (this doesn&#39;t require any coordination w=
ith<br>
&gt; a registry of globals). And a decoder that really implements this<br>
&gt; proposal would, by definition, be implementing this behavior of<br>
&gt; temporary tag reassignment/shadowing, if it really is a true record<br=
>
&gt; implementation (i.e. a real record implementation wouldn&#39;t see<br>
&gt; gobbledygook if it is conformant).<br>
&gt;<br>
&gt; Also allowing dynamic/temporary allocation permits potential use of<br=
>
&gt; shorter/more efficient tag ids based on known use of other tags, and<b=
r>
&gt; in the case of record references, these may occur much more frequently=
<br>
&gt; in a data item/document compared record definitions, and be much more<=
br>
&gt; sensitive to size differences. Furthermore, this also sidesteps issues=
<br>
&gt; with having to figure out the appropriate size of a range of ids to<br=
>
&gt; globally allocate. How many ids should be allocated? In terms of<br>
&gt; percentage of available space, registering/using 256 ids from the tag<=
br>
&gt; 1+2 range seems like it is effectively equivalent as registering 1 id<=
br>
&gt; from the tag 1+1 range (and tag 1+4 would definitely be undesirable<br=
>
&gt; due to the high frequency and sensitivity to size). And I have had<br>
&gt; users of my implementations say they need a few hundred structures to<=
br>
&gt; be defined and referenceable, so even 256 may be somewhat limiting to<=
br>
&gt; some users.<br>
&gt;<br>
&gt; But that being said, if you are thinking that it may be too onerous<br=
>
&gt; for (record) implementators to support this type of potentially<br>
&gt; dynamic/temporary tag reassignment with possibly conflicting ids (as<b=
r>
&gt; opposed to using a more stable table of tags or tag ranges), I can<br>
&gt; understand that concern. What size of chunk of tag ids (above 32768)<b=
r>
&gt; do you think would be appropriate to allocate? Would a chunk of 256 be=
<br>
&gt; reasonable?<br>
&gt;<br>
&gt; Anyway, thank you for your help and feedback!<br>
&gt; Thanks,<br>
&gt; Kris<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Nov 17, 2021 at 1:52 PM Carsten Bormann &lt;<a href=3D"mailto:=
cabo@tzi.org" target=3D"_blank">cabo@tzi.org</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Hi Kris,<br>
&gt; &gt;<br>
&gt; &gt; thank you for the update.<br>
&gt; &gt; I still need to take a closer look, but I have one immediate reac=
tion:<br>
&gt; &gt; You probably shouldn=E2=80=99t induce implementations to =E2=80=
=9Chijack=E2=80=9D a tag number.<br>
&gt; &gt; The handling of a tag number that has actually been allocated for=
 something else may be deeply embedded into the CBOR decoder; a record impl=
ementation then would only see gobbledygook.<br>
&gt; &gt; So I think we should allocate some space for tag-allocated tags =
=E2=80=94 I don=E2=80=99t see a big problem with allocating a chunk above 3=
2768 just for the record proposal.<br>
&gt; &gt;<br>
&gt; &gt; Gr=C3=BC=C3=9Fe, Carsten<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; On 2021-11-17, at 16:16, Kris Zyp &lt;<a href=3D"mailto:kris=
zyp@gmail.com" target=3D"_blank">kriszyp@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I have updated my tag registration proposal/submission at<br=
>
&gt; &gt; &gt; <a href=3D"https://github.com/kriszyp/cbor-records" rel=3D"n=
oreferrer" target=3D"_blank">https://github.com/kriszyp/cbor-records</a> to=
 use 1+2 tag entries, which<br>
&gt; &gt; &gt; hopefully makes this a much less intrusive registry entry. I=
 have also<br>
&gt; &gt; &gt; updated the proposed tag definitions to also support up-fron=
t<br>
&gt; &gt; &gt; declaration of a set of record structure definitions for a d=
ata item<br>
&gt; &gt; &gt; (&quot;around&quot; that data item, like the packed approach=
, as you suggested),<br>
&gt; &gt; &gt; in addition to the current inline record definitions (which =
can be<br>
&gt; &gt; &gt; scoped with record definitions and should follow a well-spec=
ified<br>
&gt; &gt; &gt; order for when they can be referenced by subsequent referenc=
es). I<br>
&gt; &gt; &gt; hope this offers flexibility for encoders that have all stru=
ctures<br>
&gt; &gt; &gt; known a-priori and streaming encoders (that do not), while s=
till<br>
&gt; &gt; &gt; maintaining nearly the same mechanics for decoders. Let me k=
now if you<br>
&gt; &gt; &gt; think this looks reasonable.<br>
&gt; &gt; &gt; Thank you!<br>
&gt; &gt; &gt; Kris<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Thu, Nov 11, 2021 at 9:15 PM Kris Zyp &lt;<a href=3D"mail=
to:kriszyp@gmail.com" target=3D"_blank">kriszyp@gmail.com</a>&gt; wrote:<br=
>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; Actually, stats would be very interesting.<br>
&gt; &gt; &gt;&gt;&gt; I was assuming that the 1+1 setup comes with a numbe=
r of 1+2 referencing records, the hit from going to 1+2 there as well would=
 be relatively insignificant.<br>
&gt; &gt; &gt;&gt;&gt; Number are better than assumptions!<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; You are definitely right, using 1+2 tag for defining rec=
ords is pretty<br>
&gt; &gt; &gt;&gt; insignificant (around a quarter of percent in my tests).=
 Anyway, I put<br>
&gt; &gt; &gt;&gt; together some tests comparing CBOR packed, record struct=
ures, and<br>
&gt; &gt; &gt;&gt; combinations with a couple test data structures, with my=
 library, for<br>
&gt; &gt; &gt;&gt; the sake of further comparisons:<br>
&gt; &gt; &gt;&gt; <a href=3D"https://gist.github.com/kriszyp/b623b85d2dc25=
ac9e3b07d8f39df9307" rel=3D"noreferrer" target=3D"_blank">https://gist.gith=
ub.com/kriszyp/b623b85d2dc25ac9e3b07d8f39df9307</a><br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Anyway, seeing this, I am happy to go ahead and update m=
y proposal to<br>
&gt; &gt; &gt;&gt; use a 1+2 tag for defining records. And thinking about t=
his, I don&#39;t<br>
&gt; &gt; &gt;&gt; think my proposal necessarily even needs to mandate the =
tag ids used<br>
&gt; &gt; &gt;&gt; for referencing records since those are dynamically assi=
gned and<br>
&gt; &gt; &gt;&gt; explicitly specified by the encoder itself (encoder obvi=
ously must not<br>
&gt; &gt; &gt;&gt; conflict and use tag ids that will be used for other pur=
poses), albeit<br>
&gt; &gt; &gt;&gt; can encourage a certain range (presumably from the first=
-come<br>
&gt; &gt; &gt;&gt; first-serve range).<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Do you have any preference for a tag id to use? It looks=
 like 279 is<br>
&gt; &gt; &gt;&gt; the next in the contiguous block, but sounds like choosi=
ng aesthetic<br>
&gt; &gt; &gt;&gt; characters is the new preference (29299/&quot;rs&quot; p=
erhaps).<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Anyway, thanks again for the helpful feedback, really ap=
preciate it!<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Thanks,<br>
&gt; &gt; &gt;&gt; Kris<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; CBOR mailing list<br>
&gt; &gt; &gt; <a href=3D"mailto:CBOR@ietf.org" target=3D"_blank">CBOR@ietf=
.org</a><br>
&gt; &gt; &gt; <a href=3D"https://www.ietf.org/mailman/listinfo/cbor" rel=
=3D"noreferrer" target=3D"_blank">https://www.ietf.org/mailman/listinfo/cbo=
r</a><br>
&gt; &gt;<br>
<br>
_______________________________________________<br>
CBOR mailing list<br>
<a href=3D"mailto:CBOR@ietf.org" target=3D"_blank">CBOR@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/cbor" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.ietf.org/mailman/listinfo/cbor</a><br>
</blockquote></div>

--00000000000010b07c05d21e70ac--


From nobody Wed Dec  1 16:02:54 2021
Return-Path: <emile.cormier.jr@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 A13093A0D17 for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 16:02:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level: 
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 EQ5u-MB2qd5t for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 16:02:47 -0800 (PST)
Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) (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 3B7C43A0D09 for <cbor@ietf.org>; Wed,  1 Dec 2021 16:02:47 -0800 (PST)
Received: by mail-yb1-xb2f.google.com with SMTP id q74so68309470ybq.11 for <cbor@ietf.org>; Wed, 01 Dec 2021 16:02:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to;  bh=MgTPq0czc5m0UnDwq+hi//LTC2Tf6uYq8lKsTVvVVTw=; b=AcYMZa2ihzLWgJISRXBh8FiTSFZfy9/B5HUMwBLvtMNcva/RiEmUVWlaRoluKfpyH0 bMbvtAbHDbud+mnV6PcbuOLRw0RZIaProa1f4AVhMUVZ1yLcrtoK/xmh1FHtx+129yE+ khEo9cYsMFiGukwBf/aIYouRyxYUiawzP6TZ+zrEqy+jrPG5owgL6Jz/6efYwVGS36xk HEo3hhtgs1j0iTbWpNiQst6TSbvfM6cxmfmFIgmoyRwrsN0VEpMZ0YIUmAOQ8v/PXFck rq4nhsIejgDWXQmLfl6hKwYDIoPKl7XCw1/9lCG8TV/+AkAWxuBXsbC4zcmb/RCCH15m nhrg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=MgTPq0czc5m0UnDwq+hi//LTC2Tf6uYq8lKsTVvVVTw=; b=wgeJOl7L8wO0iHxGro9I2n3JnPU8PlglqERQf3J2l0fgWLHGXXv5xr5J7EQjaPR6Xd 1bAYw5OCpKtAiIAZnvxiCO9T+D3cCOiDeKxDWMzBJBJWX502/St4g1gI3++l4s7gCzxT eWG1dqsaHuwTdDKxJf6yjbIu7ud1kWWWQVu3ndiFbsEAA3JyHZmctg69Ks3FD+hU9A7q pGwo7tFGZOgehj7pXgbrQE22ZGd3W/T7qiIaE5YUqSRr366c0RNPufstg+qWySRoS5ek BXkbxtQ6AS5BLNS1hZijTtFf3RZHDtsr6cckdBI2ojRET0eQmMFgJf9oPZ0o1frarCpv 6AqQ==
X-Gm-Message-State: AOAM533YzrPq6izRr2J1db89OZk4Fy+T+Uifa22xahUlsl2tUB1fCQ9o eb2X9eVCuPEvpm+Ib1L/+xlm7vZkfmoSCDO1uoo=
X-Google-Smtp-Source: ABdhPJyil1w7Gsc/q7xl/MIDibV0ANeISJT9xn99oUDx5JYXAJ3XiGozbaXZ1dwfkhrdW33ZDSsrtDqGZSVd4Rvi60g=
X-Received: by 2002:a25:bfca:: with SMTP id q10mr10689134ybm.68.1638403365049;  Wed, 01 Dec 2021 16:02:45 -0800 (PST)
MIME-Version: 1.0
References: <CAM70yxC_6JnG+CbumDs+-maOcMYyRZXAD1QJgXJQsG2tYFVVdQ@mail.gmail.com>
In-Reply-To: <CAM70yxC_6JnG+CbumDs+-maOcMYyRZXAD1QJgXJQsG2tYFVVdQ@mail.gmail.com>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Wed, 1 Dec 2021 20:02:34 -0400
Message-ID: <CAM70yxCznYR4BtNxrpe6can6Y57A+3EAjkjkQBmKNDY6XXAL=A@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
Content-Type: multipart/alternative; boundary="0000000000009299d405d21e82e3"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/cWXAsKzxaFWF9oUGnPOLQPEYcwQ>
Subject: Re: [Cbor] CBOR tag proposal for enumerated alternatives (tagged unions)
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, 02 Dec 2021 00:02:53 -0000

--0000000000009299d405d21e82e3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I don't know where we are with this proposal, but I'd like to point that it
suffers from the same problem I've mentioned recently for bignum and
records: too much information is embedded in the tag, which results in the
data items being unusable when transcoded to JSON (or when a CBOR decoder
discards the tags).

Cheers,
Emile Cormier

On Wed, Apr 7, 2021 at 6:37 PM Emile Cormier <emile.cormier.jr@gmail.com>
wrote:

> On Wed, Mar 31, 2021 at 9:38 AM Carsten Bormann <cabo@tzi.org> wrote:
>
>> I=E2=80=99m not sure we discussed this one yet in detail:
>>
>>
>> https://docs.google.com/document/d/16aiDEBhJj3kipj_7PVppEhxAr5E6QhQreN61=
eCxvBjU/edit#
>>
>> This is a (cbor-tags) registration request, so the WG does not have to
>> have an opinion, but the designated expert would be interested in it
>> nonetheless.
>> (I=E2=80=99m personally pretty convinced of the use case; this is more o=
f an
>> issue of keeping tabs on available tag numbers and looking out for relat=
ed
>> use cases.)
>>
>
> As I had mentioned in the interim meeting, a related use case is
> optional<T> (aka Nullable<T>). The meeting host (Christian?) was
> questioning whether separate tags would be more appropriate to represent
> the optional<T> semantic.
>
> It would indeed be possible for the enumerated alternatives tags to be
> used for representing an optional<T>. For instance, alternative 0 would
> represent the "no value" state, followed by a null data item (0xF6),
> whereas alternative 1 would represent the "has value" state followed by t=
he
> actual value. However, this is just an arbitrary convention and the
> enumerated alternatives tags used in this fashion don't explicitly expres=
s
> the "optional" semantic (it has to be assumed by the application). I
> therefore agree that separate tags would be preferable for the optional<T=
>
> use case.
>
> I communicated with one of the co-authors of the enumerated alternatives
> proposal about the possibility of including extra tags for the optional<T=
>
> use case. They declined, not wanting to expand the scope of their proposa=
l,
> which is perfectly understandable.
>
> My idea of tags for representing optional<T> might be overkill. One can
> simply encode an optional value as either null (0xF6) or the actual value=
.
> A contrived example where this would not work is encoding
> optional<null_type> (i.e. "optional null").
>
> Anyway, the idea of tags for optional values is out there for the
> designated expert to consider. I cannot say if it's an idea actually wort=
h
> pursuing. I don't currently need them for encoding/decoding
> std::optional<T> in my C++ work (I just check for null when deserializing
> an optional value). However, I could definitely make use of the enumerate=
d
> alternatives tags for encoding/decoding std::variant<T0, T1, T2...>,
> especially when the alternative types are ambiguous once converted to CBO=
R.
>
> Cheers,
> Emile Cormier
>

--0000000000009299d405d21e82e3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I don&#39;t know where we are with this proposal, but=
 I&#39;d like to point that it suffers from the same problem I&#39;ve menti=
oned recently for bignum and records: too much information is embedded in t=
he tag, which results in the data items being unusable when transcoded to J=
SON (or when a CBOR decoder discards the tags).</div><div><br></div><div>Ch=
eers,</div><div>Emile Cormier<br></div></div><br><div class=3D"gmail_quote"=
><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Apr 7, 2021 at 6:37 PM Emile=
 Cormier &lt;<a href=3D"mailto:emile.cormier.jr@gmail.com">emile.cormier.jr=
@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" cla=
ss=3D"gmail_attr">On Wed, Mar 31, 2021 at 9:38 AM Carsten Bormann &lt;<a hr=
ef=3D"mailto:cabo@tzi.org" target=3D"_blank">cabo@tzi.org</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex">I=E2=80=99m not su=
re we discussed this one yet in detail:<br>
<br>
<a href=3D"https://docs.google.com/document/d/16aiDEBhJj3kipj_7PVppEhxAr5E6=
QhQreN61eCxvBjU/edit#" rel=3D"noreferrer" target=3D"_blank">https://docs.go=
ogle.com/document/d/16aiDEBhJj3kipj_7PVppEhxAr5E6QhQreN61eCxvBjU/edit#</a><=
br>
<br>
This is a (cbor-tags) registration request, so the WG does not have to have=
 an opinion, but the designated expert would be interested in it nonetheles=
s.<br>
(I=E2=80=99m personally pretty convinced of the use case; this is more of a=
n issue of keeping tabs on available tag numbers and looking out for relate=
d use cases.)<br></blockquote><div><br></div><div>As I had mentioned in the=
 interim meeting, a related use case is optional&lt;T&gt; (aka Nullable&lt;=
T&gt;). The meeting host (Christian?) was questioning whether separate tags=
 would be more appropriate to represent the optional&lt;T&gt; semantic.</di=
v><div><br></div><div>It would indeed be possible for the enumerated altern=
atives tags to be used for representing an optional&lt;T&gt;. For instance,=
 alternative 0 would represent the &quot;no value&quot; state, followed by =
a null data item (0xF6), whereas alternative 1 would represent the &quot;ha=
s value&quot; state followed by the actual value. However, this is just an =
arbitrary convention and the enumerated alternatives tags used in this fash=
ion don&#39;t explicitly express the &quot;optional&quot; semantic (it has =
to be assumed by the application). I therefore agree that separate tags wou=
ld be preferable for the optional&lt;T&gt; use case.<br></div><div><br></di=
v><div>I communicated with one of the co-authors of the enumerated alternat=
ives proposal about the possibility of including extra tags for the optiona=
l&lt;T&gt; use case. They declined, not wanting to expand the scope of thei=
r proposal, which is perfectly understandable.</div><div><br></div><div>My =
idea of tags for representing optional&lt;T&gt; might be overkill. One can =
simply encode an optional value as either null (0xF6) or the actual value. =
A contrived example where this would not work is encoding optional&lt;null_=
type&gt; (i.e. &quot;optional null&quot;).<br></div><div><br></div><div>Any=
way, the idea of tags for optional values is out there for the designated e=
xpert to consider. I cannot say if it&#39;s an idea actually worth pursuing=
. I don&#39;t currently need them for encoding/decoding std::optional&lt;T&=
gt; in my C++ work (I just check for null when deserializing an optional va=
lue). However, I could definitely make use of the enumerated alternatives t=
ags for encoding/decoding std::variant&lt;T0, T1, T2...&gt;, especially whe=
n the alternative types are ambiguous once converted to CBOR.<br></div><div=
><br></div><div>Cheers,</div><div>Emile Cormier<br></div></div></div>
</blockquote></div>

--0000000000009299d405d21e82e3--


From nobody Wed Dec  1 17:12:03 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 614F13A005B for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 17:12:01 -0800 (PST)
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 oZQO3-Mf0hJI for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 17:11:56 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6FF5C3A003D for <cbor@ietf.org>; Wed,  1 Dec 2021 17:11:54 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4J4Hwk4kl3z2yJr; Thu,  2 Dec 2021 02:11:49 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CAM70yxDvL1HKZSz8FMwFb64Tvse6TrqUwNgTmeY7kbMYGazDjg@mail.gmail.com>
Date: Thu, 2 Dec 2021 02:11:49 +0100
Cc: cbor@ietf.org
X-Mao-Original-Outgoing-Id: 660100308.322315-c22a6d2279d33c8ff08a7bc76d855e75
Content-Transfer-Encoding: quoted-printable
Message-Id: <63CF958A-1153-4932-BE03-3F172E84D60F@tzi.org>
References: <CAM70yxDvL1HKZSz8FMwFb64Tvse6TrqUwNgTmeY7kbMYGazDjg@mail.gmail.com>
To: Emile Cormier <emile.cormier.jr@gmail.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/T0Mq9rKGIOF5NWRKibm68DInFAE>
Subject: Re: [Cbor] Challenges in supporting bignum tag
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, 02 Dec 2021 01:12:01 -0000

Hi Emile,

On 2021-12-02, at 00:38, Emile Cormier <emile.cormier.jr@gmail.com> =
wrote:
>=20
> Hi Everyone,
>=20
> I'm in the process of supporting CBOR "bignums" (which I think should =
have been named "bigint=E2=80=9D)

Indeed, =E2=80=9Cbignum=E2=80=9D is a historical name at best.
But it has stuck for half a century (since about 1970 [1]).

> in my C++ serialization library, and have encountered the following =
challenges:
>=20
> 1. When transcoding to other binary formats (such as MessagePack), the =
sign of the bignum is lost because it is deduced by the tag value and is =
not part of the message payload. I have to resort to converting it to =
[sign, byte_array], which makes it no longer round-trippable to its =
original CBOR format.

I don=E2=80=99t know how other binary interchange formats represent =
large integers (I probably have actively forgotten because I have seen =
too many horrible attempts).

The assumption that led to our design is that most large integers will =
be unsigned, so doing some additional work for negatives is not much of =
a problem.
If you need to transform a negative integer in sign-magnitude into what =
the target encoding uses to represent large numbers, you will need some =
transformation; e.g., if a 2=E2=80=99s complement representation is =
used, you will need to flip the bits and add or subtract 1 =E2=80=94 no =
such addition/subtraction is needed for bignint (just flip the bits =
((-1-N) =3D=3D ~N)).

> 2. In CBOR decoders that ignore tags, the sign of the bignum is lost =
when passed up to the application. This goes against the following =
passage in section 3.4 of the spec:
>=20
> "Decoders do not need to understand tags of every tag number, and tags =
may be of little value in applications where the implementation creating =
a particular CBOR data item and the implementation decoding that stream =
know the semantic meaning of each item in the data flow."

Well, they do need to understand tags 2 and 3 if they have a need for =
negative numbers in addition to unsigned ones.

The comment you cite is more about tags like 1 or 32 =E2=80=94 if the =
context already makes clear that this is a posix time / a URI, =
respectively, the tag may be redundant (but still useful to push =
handling of platform data types into a generic decoder).

> So even if the application knows the semantic meaning of the received =
byte array (it's expecting a bignum), it cannot reconstitute the sign of =
the received magnitude without knowing the tag.

Correct.
Again, most applications don=E2=80=99t use negative bignums, so if the =
application knows that it expects a biguint, the tag has no additional =
information.  But if you need both kinds of bignums, you need to read =
the tag.

> Note that the same sort of information loss occurs with typed arrays, =
although it is more likely that an application would know the endianness =
and element size of a received typed array.

Right =E2=80=94 same situation =E2=80=94 if only one tag can possibly be =
used, you can ignore it; if there are several to choose from, you need =
the tag number.

> 3. Most arbitrary precision libraries represent big integers in signed =
magnitude format. CBOR wants negative values to be stored as (-1 - N). I =
therefore need to subtract one from the magnitude stored in a negative =
multiprecision integer. Because the multiprecision subtraction algorithm =
needs to start from the least significant byte (to propagate carries), I =
have to perform subtraction on the entire bigint before I can serialize =
it to CBOR. This is because CBOR wants the bytes to be in big endian =
order. It's therefore not possible to process and serialize each source =
byte "on the fly" starting from the most significant byte. If I'm =
serializing a huge bigint, then there's a space doubling penalty in the =
temporary bigint needed for the subtraction.

Yes, that is an interesting observation. =20
Maybe it=E2=80=99s worth to spend a tag to represent a negative bigint =
(bignint) in magnitude format.
But then, tag 3 is not that hard for 1=E2=80=99s complement or =
magnitude:

For creating normal CBOR bignints, an algorithm for subtracting one that =
does not need to create another copy would be to first find the place =
where the carry chain ends from the LSB up (usually the last byte, but =
could be up to the MSB) and then copy out the number starting from MSB =
up to that place, and subtract 1 from each byte from there on (well, =
spewing out 0xFF for all but the highest).  (I hope you don=E2=80=99t =
have to deal with negative zero, but that is an easy special case if you =
do.  The other special case is ingesting a CBOR bignint with 0xFF times =
N, because you have to add a byte for the magnitude.)

> 4. Because of #3, my CBOR codec implementation now depends on =
multiprecision integer arithmetic.

Subtracting one maybe does not cause a need to pull in a big library =
(see example algorithm above).

> I'm now forced to do one of the following:
>=20
> a) Add a dependency to a multiprecision arithmetic library, which may =
not be the same one that's used by the application. For example, my =
library depends on Boost.Multiprecision, but the application wants to =
serialize a GMP bignum. The application now ends up with dependencies on =
two multiprecision libraries - yuck!
>=20
> b) Write the multiprecision subtraction by hand to avoid introducing a =
dependency on a multiprecision arithmetic library. While the algorithm =
isn't too complicated, what I write is certain to be slower than a =
multiprecision library.
>=20
> c) Require that the intermediary byte format passed to the encoder be =
the same as what CBOR expects (which may not be the same format as what =
other binary serialization formats want). For example, the header in my =
library which adds GMP serialization support could use GMP itself to =
perform the -1 subtraction and pass those bytes to the encoder. I should =
note here that the encoder interface in my library is agnostic of the =
serialization format. That is, the JSON encoder interface is the same as =
the CBOR encoder interface. This makes it easy for the application to =
serialize to different formats (JSON, CBOR, etc) without having to =
change anything in the application's serialization code.

I think the algorithm I gave above is simple enough that this should =
obviate these considerations.

> In short, my life would be much easier if CBOR bignums were different =
in the following way:
>=20
> - The sign is part of the message payload, and not "deduced" by the =
tag value,

If you mean going to a 2=E2=80=99s complement representation, or =
stealing the msb of the MSB for a sign bit, that would be a big problem =
as biguints often are designed fill all of the bytes, so adding a sign =
inside the representation adds a byte in half of the cases.  Remember =
that negative values are rarely used, and CBOR is optimized for the =
biguints we find in many applications.

> - The bytes represent the magnitude of the bignum: no =
subtraction/addition by 1 for negative values.

That could be added (see discussion of adding a tag for this, above).

> There are other tags that currently depend on the existing bignum tag =
(bigdecimal, bigfloat, extended time), so I don't expect there to be =
much interest in a new "sane bignum" tag that addresses the "flaws" I =
brought up here. I'm just documenting the challenges I'm facing with the =
existing bignum tag so that they're considered if there's ever a fork of =
this standard, or if some other binary protocol wants to implement =
bignums.
>=20
> Overall I feel there's too much emphasis in CBOR on cramming =
everything into as few bytes as possible, and not enough on decoding =
simplicity and speed.

Simplicity and speed depends a lot on what your platform has.
CBOR is very efficient for biguints.
If you need to handle negative numbers, unfortunately there is a lot of =
variety, and I=E2=80=99m sorry that what we chose doesn=E2=80=99t map =
one-to-one with what you find in your platform.

> I also think some tags have been "abused" for storing information that =
should otherwise be part of the message payload (all in the name of =
saving a few bytes). This makes tags go beyond their purpose of =
providing semantic meaning.

I do not agree at all that using a tag to transfer information is abuse.
Tags are a significant innovation that make a lot of things much easier =
than they are in other formats.
(They also can be overused, which is why CDDL has =E2=80=9Cunwrap=E2=80=9D=
 for tags, and why the comment mentioned above was made.)

> Sorry if this comes across as a rant. It's not my intention to =
belittle anyone. I just wanted to share my challenges in implementing =
CBOR for my C++ serialization library. Perhaps someone here will have =
advice on how I can overcome these challenges.

See my algorithm proposal for converting negative bignums into magnitude =
and back, above.

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

[1]: https://www.dreamsongs.com/Files/HOPL2-Uncut.pdf


From nobody Wed Dec  1 17:48:33 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 BBDEC3A0596 for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 17:48:31 -0800 (PST)
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, RCVD_IN_MSPIKE_H2=-0.001, 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 1zXou0j8XBwv for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 17:48:26 -0800 (PST)
Received: from p3plsmtpa12-02.prod.phx3.secureserver.net (p3plsmtpa12-02.prod.phx3.secureserver.net [68.178.252.231]) (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 34FB03A052C for <cbor@ietf.org>; Wed,  1 Dec 2021 17:48:25 -0800 (PST)
Received: from [192.168.1.7] ([75.80.148.243]) by :SMTPAUTH: with ESMTPA id sbCymmiIbUjgnsbCzm51PW; Wed, 01 Dec 2021 18:48:25 -0700
X-CMAE-Analysis: v=2.4 cv=ToAjOBbh c=1 sm=1 tr=0 ts=61a825e9 a=VPU1mRQhDhA4uSX60JRRww==:117 a=VPU1mRQhDhA4uSX60JRRww==:17 a=IkcTkHD0fZMA:10 a=gKmFwSsBAAAA:8 a=pGLkceISAAAA:8 a=2Z0_pjKYAAAA:8 a=48vgC7mUAAAA:8 a=nWuCCdXH8qfIqt-3QNsA:9 a=QEXdDO2ut3YA:10 a=nnPW6aIcBuj1ljLj_o6Q:22 a=RoisK_4Bdw0zHV0c2fCX:22 a=w1C3t2QeGrPiZgrLijVG:22
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: <63CF958A-1153-4932-BE03-3F172E84D60F@tzi.org>
Date: Wed, 1 Dec 2021 17:48:24 -0800
Cc: Emile Cormier <emile.cormier.jr@gmail.com>, cbor@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <3FEC84FA-BAAC-47AD-A95A-AE1C74A89E14@island-resort.com>
References: <CAM70yxDvL1HKZSz8FMwFb64Tvse6TrqUwNgTmeY7kbMYGazDjg@mail.gmail.com> <63CF958A-1153-4932-BE03-3F172E84D60F@tzi.org>
To: Carsten Bormann <cabo@tzi.org>
X-Mailer: Apple Mail (2.3445.104.17)
X-CMAE-Envelope: MS4xfAj5wQutX3LhvjppmCigUnWMbjw5iGc/1mP9YeebSHCL8NgEJFGDxAxmjqFrnwzWfFu0HAW/UvD1eqySrATU89axlsqyHncSN4Yv71Wtvu/tQGiAuAUC SKJk4Rsav/R9wI/lRKPcaHEod0rHN2rr4rTva321P0I6fMzqmXLlWXljsKQ1I7JsdcuCTllmoCOi2S82z/Tq25OCj2JuhYQ9sbRoXRHC+7y9ntiG2sOVa3+7 KqlgkgVZVV42yhnsPvA4cw==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/T49Ppj8niA3dUffJT31sf5998ds>
Subject: Re: [Cbor] Challenges in supporting bignum tag
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, 02 Dec 2021 01:48:32 -0000

I=E2=80=99ve implemented CBOR big numbers in QCBOR including conversion =
to double.

Agree that having the sign in the tag made it more work, but there would =
have been work if the sign was elsewhere. Also agree that it is a bit of =
an exception compared to the way other standard tags work. The QCBOR API =
for big nums is a little different than for other tags whose content is =
a string. However in the end, the compromise seems reasonable.

I  continue to spend a lot of time figuring out how tags should be =
treated in QCBOR. I definitely got it wrong my first time some years =
ago. Part of the trouble was that they were called =E2=80=9COptional =
Tags=E2=80=9D in RFC 7049.  I really don=E2=80=99t think of them as =
optional any more. A decoder really can=E2=80=99t ignore them in any =
general way. I don=E2=80=99t think of a tag with content that is a byte =
string as a byte string. It is some new type that you need to explicitly =
know about to interpret correctly and a generic decoder API has to take =
that into account for just about all tags.

I=E2=80=99ve also gone to some trouble to deal with the cases were a tag =
is =E2=80=9Cimplicit=E2=80=9D rather than explicit. Implicit here means =
that data item in the protocol is implied to have the format of a =
tag=E2=80=99s content, but there=E2=80=99s no tag number. This is =
=E2=80=9Cunwrapped=E2=80=9D in CDDL. It took some extra work for big =
nums because the sign is in the tag.

I don=E2=80=99t think it would be a good idea to change this or define a =
new tag at this point. There=E2=80=99s too many number format tags CBOR =
already.

LL



> On Dec 1, 2021, at 5:11 PM, Carsten Bormann <cabo@tzi.org> wrote:
>=20
> Hi Emile,
>=20
> On 2021-12-02, at 00:38, Emile Cormier <emile.cormier.jr@gmail.com> =
wrote:
>>=20
>> Hi Everyone,
>>=20
>> I'm in the process of supporting CBOR "bignums" (which I think should =
have been named "bigint=E2=80=9D)
>=20
> Indeed, =E2=80=9Cbignum=E2=80=9D is a historical name at best.
> But it has stuck for half a century (since about 1970 [1]).
>=20
>> in my C++ serialization library, and have encountered the following =
challenges:
>>=20
>> 1. When transcoding to other binary formats (such as MessagePack), =
the sign of the bignum is lost because it is deduced by the tag value =
and is not part of the message payload. I have to resort to converting =
it to [sign, byte_array], which makes it no longer round-trippable to =
its original CBOR format.
>=20
> I don=E2=80=99t know how other binary interchange formats represent =
large integers (I probably have actively forgotten because I have seen =
too many horrible attempts).
>=20
> The assumption that led to our design is that most large integers will =
be unsigned, so doing some additional work for negatives is not much of =
a problem.
> If you need to transform a negative integer in sign-magnitude into =
what the target encoding uses to represent large numbers, you will need =
some transformation; e.g., if a 2=E2=80=99s complement representation is =
used, you will need to flip the bits and add or subtract 1 =E2=80=94 no =
such addition/subtraction is needed for bignint (just flip the bits =
((-1-N) =3D=3D ~N)).
>=20
>> 2. In CBOR decoders that ignore tags, the sign of the bignum is lost =
when passed up to the application. This goes against the following =
passage in section 3.4 of the spec:
>>=20
>> "Decoders do not need to understand tags of every tag number, and =
tags may be of little value in applications where the implementation =
creating a particular CBOR data item and the implementation decoding =
that stream know the semantic meaning of each item in the data flow."
>=20
> Well, they do need to understand tags 2 and 3 if they have a need for =
negative numbers in addition to unsigned ones.
>=20
> The comment you cite is more about tags like 1 or 32 =E2=80=94 if the =
context already makes clear that this is a posix time / a URI, =
respectively, the tag may be redundant (but still useful to push =
handling of platform data types into a generic decoder).
>=20
>> So even if the application knows the semantic meaning of the received =
byte array (it's expecting a bignum), it cannot reconstitute the sign of =
the received magnitude without knowing the tag.
>=20
> Correct.
> Again, most applications don=E2=80=99t use negative bignums, so if the =
application knows that it expects a biguint, the tag has no additional =
information.  But if you need both kinds of bignums, you need to read =
the tag.
>=20
>> Note that the same sort of information loss occurs with typed arrays, =
although it is more likely that an application would know the endianness =
and element size of a received typed array.
>=20
> Right =E2=80=94 same situation =E2=80=94 if only one tag can possibly =
be used, you can ignore it; if there are several to choose from, you =
need the tag number.
>=20
>> 3. Most arbitrary precision libraries represent big integers in =
signed magnitude format. CBOR wants negative values to be stored as (-1 =
- N). I therefore need to subtract one from the magnitude stored in a =
negative multiprecision integer. Because the multiprecision subtraction =
algorithm needs to start from the least significant byte (to propagate =
carries), I have to perform subtraction on the entire bigint before I =
can serialize it to CBOR. This is because CBOR wants the bytes to be in =
big endian order. It's therefore not possible to process and serialize =
each source byte "on the fly" starting from the most significant byte. =
If I'm serializing a huge bigint, then there's a space doubling penalty =
in the temporary bigint needed for the subtraction.
>=20
> Yes, that is an interesting observation. =20
> Maybe it=E2=80=99s worth to spend a tag to represent a negative bigint =
(bignint) in magnitude format.
> But then, tag 3 is not that hard for 1=E2=80=99s complement or =
magnitude:
>=20
> For creating normal CBOR bignints, an algorithm for subtracting one =
that does not need to create another copy would be to first find the =
place where the carry chain ends from the LSB up (usually the last byte, =
but could be up to the MSB) and then copy out the number starting from =
MSB up to that place, and subtract 1 from each byte from there on (well, =
spewing out 0xFF for all but the highest).  (I hope you don=E2=80=99t =
have to deal with negative zero, but that is an easy special case if you =
do.  The other special case is ingesting a CBOR bignint with 0xFF times =
N, because you have to add a byte for the magnitude.)
>=20
>> 4. Because of #3, my CBOR codec implementation now depends on =
multiprecision integer arithmetic.
>=20
> Subtracting one maybe does not cause a need to pull in a big library =
(see example algorithm above).
>=20
>> I'm now forced to do one of the following:
>>=20
>> a) Add a dependency to a multiprecision arithmetic library, which may =
not be the same one that's used by the application. For example, my =
library depends on Boost.Multiprecision, but the application wants to =
serialize a GMP bignum. The application now ends up with dependencies on =
two multiprecision libraries - yuck!
>>=20
>> b) Write the multiprecision subtraction by hand to avoid introducing =
a dependency on a multiprecision arithmetic library. While the algorithm =
isn't too complicated, what I write is certain to be slower than a =
multiprecision library.
>>=20
>> c) Require that the intermediary byte format passed to the encoder be =
the same as what CBOR expects (which may not be the same format as what =
other binary serialization formats want). For example, the header in my =
library which adds GMP serialization support could use GMP itself to =
perform the -1 subtraction and pass those bytes to the encoder. I should =
note here that the encoder interface in my library is agnostic of the =
serialization format. That is, the JSON encoder interface is the same as =
the CBOR encoder interface. This makes it easy for the application to =
serialize to different formats (JSON, CBOR, etc) without having to =
change anything in the application's serialization code.
>=20
> I think the algorithm I gave above is simple enough that this should =
obviate these considerations.
>=20
>> In short, my life would be much easier if CBOR bignums were different =
in the following way:
>>=20
>> - The sign is part of the message payload, and not "deduced" by the =
tag value,
>=20
> If you mean going to a 2=E2=80=99s complement representation, or =
stealing the msb of the MSB for a sign bit, that would be a big problem =
as biguints often are designed fill all of the bytes, so adding a sign =
inside the representation adds a byte in half of the cases.  Remember =
that negative values are rarely used, and CBOR is optimized for the =
biguints we find in many applications.
>=20
>> - The bytes represent the magnitude of the bignum: no =
subtraction/addition by 1 for negative values.
>=20
> That could be added (see discussion of adding a tag for this, above).
>=20
>> There are other tags that currently depend on the existing bignum tag =
(bigdecimal, bigfloat, extended time), so I don't expect there to be =
much interest in a new "sane bignum" tag that addresses the "flaws" I =
brought up here. I'm just documenting the challenges I'm facing with the =
existing bignum tag so that they're considered if there's ever a fork of =
this standard, or if some other binary protocol wants to implement =
bignums.
>>=20
>> Overall I feel there's too much emphasis in CBOR on cramming =
everything into as few bytes as possible, and not enough on decoding =
simplicity and speed.
>=20
> Simplicity and speed depends a lot on what your platform has.
> CBOR is very efficient for biguints.
> If you need to handle negative numbers, unfortunately there is a lot =
of variety, and I=E2=80=99m sorry that what we chose doesn=E2=80=99t map =
one-to-one with what you find in your platform.
>=20
>> I also think some tags have been "abused" for storing information =
that should otherwise be part of the message payload (all in the name of =
saving a few bytes). This makes tags go beyond their purpose of =
providing semantic meaning.
>=20
> I do not agree at all that using a tag to transfer information is =
abuse.
> Tags are a significant innovation that make a lot of things much =
easier than they are in other formats.
> (They also can be overused, which is why CDDL has =E2=80=9Cunwrap=E2=80=9D=
 for tags, and why the comment mentioned above was made.)
>=20
>> Sorry if this comes across as a rant. It's not my intention to =
belittle anyone. I just wanted to share my challenges in implementing =
CBOR for my C++ serialization library. Perhaps someone here will have =
advice on how I can overcome these challenges.
>=20
> See my algorithm proposal for converting negative bignums into =
magnitude and back, above.
>=20
> Gr=C3=BC=C3=9Fe, Carsten
>=20
> [1]: https://www.dreamsongs.com/Files/HOPL2-Uncut.pdf
>=20
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor


From nobody Wed Dec  1 18:10:27 2021
Return-Path: <emile.cormier.jr@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 753743A079B for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 18:10:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level: 
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 MEoZE-bet0GA for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 18:10:19 -0800 (PST)
Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) (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 B155C3A079D for <cbor@ietf.org>; Wed,  1 Dec 2021 18:10:19 -0800 (PST)
Received: by mail-yb1-xb33.google.com with SMTP id g17so68963957ybe.13 for <cbor@ietf.org>; Wed, 01 Dec 2021 18:10:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Gb1ed+RePomII0EibCCzcy3kLXL+mUhRBUZITs2rVfU=; b=TB9+FKLWsGAaCJ2uCUI0p3UNhqlvQL5xnl7mZ1dz5wt9Nu8kbaQM3a/4rTlsJs/VI6 nqlz11vt5lJ4eSiSesKbuV9iDIu3kMVQL01wY4P1SW7E+nyYGgblTo6kW0BGdAb6Bbpv lJh0lDSw3s1siy5+KKh1poxNwfcbLfCHK4/Q70dII27ZYJW3VCLPHKuiwTiBGpojIg3x hHkC6ANXvIDQd3CIIyR8Ij5Bh0R1/7rw5bywybZ/Lt70rtlbSMx6ODDVTY+xw+X0r6jT iGeF3z1IOt54/04qU+weR3cXAhpPYmDKKGDURY9gjRdGZxSEmXoW5j/3dTRw5hirSmcu 4AhQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Gb1ed+RePomII0EibCCzcy3kLXL+mUhRBUZITs2rVfU=; b=CjmBvEOKYI8zVnITPfq9JCnjtGFkDLR6Fq77pc0PzahSiio/URL5UxU9hllhf5jbAO wnyIicUsG7jTKV7G+pQ7g814TAu5VLJB9c7jlLbP7fY1bbbjIGMu+wVNGeJQss8ZBrf+ uvB1SiKMgffPZLbF4QaYEopnhcs5tm5yW7mrfYQXDQdB/xwcv1f3wDWvZfSoBVWzo6gF x4zrDVeDXjPPQOJmpl3RE1ZLA2tujnhVI1AnKr3u7s+qUKvw12prF6NrRlXoMvkc3A0Z FUjV3Co9OUksWAxBQUJZOIe/EwoJBcs1lVavnHeBLJqCMmnv6QOvus584dCoWrjD3DS5 eTHg==
X-Gm-Message-State: AOAM533pjUeubzUWoqgMfuAKdUjz8onil7de2NZQyOAE1VbyCjg9Vodn 8uBhEl6yQqjWcVZVqj0PuVmQPc7HOKO9/hlBz3jxXbSHa5E=
X-Google-Smtp-Source: ABdhPJw2h+zLfiFmy1/vYQ+pPW3T8gyXYhcSVellhY11QSbB9fvBHSn0PpsPhz/t0gh1fdyNmOTRV2JY5OOjdW9hKlA=
X-Received: by 2002:a25:2346:: with SMTP id j67mr11863490ybj.467.1638411018399;  Wed, 01 Dec 2021 18:10:18 -0800 (PST)
MIME-Version: 1.0
References: <CAM70yxDvL1HKZSz8FMwFb64Tvse6TrqUwNgTmeY7kbMYGazDjg@mail.gmail.com> <63CF958A-1153-4932-BE03-3F172E84D60F@tzi.org>
In-Reply-To: <63CF958A-1153-4932-BE03-3F172E84D60F@tzi.org>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Wed, 1 Dec 2021 22:10:07 -0400
Message-ID: <CAM70yxAc7m027ZUnPRRymRuOxDK=1G8NBPohgN7J3V9u3Nuhyg@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org
Content-Type: multipart/alternative; boundary="000000000000bf74fe05d2204a58"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/LdJEJ0TVSn62k_QtwJ_MYbVgrsQ>
Subject: Re: [Cbor] Challenges in supporting bignum tag
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, 02 Dec 2021 02:10:25 -0000

--000000000000bf74fe05d2204a58
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 1, 2021 at 9:11 PM Carsten Bormann <cabo@tzi.org> wrote:

I don=E2=80=99t know how other binary interchange formats represent large i=
ntegers
> (I probably have actively forgotten because I have seen too many horrible
> attempts).
>

I've checked MessagePack, UBJSON, Smile, and BSON. Only Smile has support
for what they call "BigInteger":

*"Encoded as token indicator followed by 7-bit escaped binary (with
Unsigned VInt (no-zigzag encoding) as length indicator) that represent
magnitude value (byte array)"*

So the BigInteger is unsigned-only with Smile; no negative values.

CBOR is the only binary format I'm aware of which supports negative
bignums. I was thinking of the future when (yet another) binary format
might come along and decide to support negative bignums.


> The assumption that led to our design is that most large integers will be
> unsigned, so doing some additional work for negatives is not much of a
> problem.
> If you need to transform a negative integer in sign-magnitude into what
> the target encoding uses to represent large numbers, you will need some
> transformation; e.g., if a 2=E2=80=99s complement representation is used,=
 you will
> need to flip the bits and add or subtract 1 =E2=80=94 no such addition/su=
btraction
> is needed for bignint (just flip the bits ((-1-N) =3D=3D ~N)).
>

If bignums are used as a mantissa inside bigdecimal and bigfloat (which
don't have a separate sign field), then it's no longer true that negative
bigfloats are rarely used. When transcoding a CBOR bigdecimal or bigfloat
to JSON, the sign of the value will effectively be lost, unless an extra
sign field is added in the array structure (which would make it impossible
to round-trip the resulting structure back to CBOR's original format).


> > 2. In CBOR decoders that ignore tags, the sign of the bignum is lost
> when passed up to the application. This goes against the following passag=
e
> in section 3.4 of the spec:
> >
> > "Decoders do not need to understand tags of every tag number, and tags
> may be of little value in applications where the implementation creating =
a
> particular CBOR data item and the implementation decoding that stream kno=
w
> the semantic meaning of each item in the data flow."
>
> Well, they do need to understand tags 2 and 3 if they have a need for
> negative numbers in addition to unsigned ones.
>

That's my point. Applications are now forced to detect the presence of tags
2 and 3, even if they know to expect a signed bignum. Those applications
can no longer be agnostic of the serialization format (CBOR vs MessagePack)=
.


> The comment you cite is more about tags like 1 or 32 =E2=80=94 if the con=
text
> already makes clear that this is a posix time / a URI, respectively, the
> tag may be redundant (but still useful to push handling of platform data
> types into a generic decoder).
>

Tags 1 or 32 are examples of what I consider "nice" semantic tags. Even if
they're absent, an application can still interpret the values correctly by
agreement in the application protocol.


> > Note that the same sort of information loss occurs with typed arrays,
> although it is more likely that an application would know the endianness
> and element size of a received typed array.
>
> Right =E2=80=94 same situation =E2=80=94 if only one tag can possibly be =
used, you can
> ignore it; if there are several to choose from, you need the tag number.
>

In the case of typed arrays, the application protocol might have already
established that a specific typed array stride/endianness be used. I think
the loss of the tag is probably less catastrophic in that case.


> > 3. Most arbitrary precision libraries represent big integers in signed
> magnitude format. CBOR wants negative values to be stored as (-1 - N). I
> therefore need to subtract one from the magnitude stored in a negative
> multiprecision integer. Because the multiprecision subtraction algorithm
> needs to start from the least significant byte (to propagate carries), I
> have to perform subtraction on the entire bigint before I can serialize i=
t
> to CBOR. This is because CBOR wants the bytes to be in big endian order.
> It's therefore not possible to process and serialize each source byte "on
> the fly" starting from the most significant byte. If I'm serializing a hu=
ge
> bigint, then there's a space doubling penalty in the temporary bigint
> needed for the subtraction.
>
> Yes, that is an interesting observation.
> Maybe it=E2=80=99s worth to spend a tag to represent a negative bigint (b=
ignint)
> in magnitude format.
> But then, tag 3 is not that hard for 1=E2=80=99s complement or magnitude:
>

I'm not sure I want to introduce yet another tag if there's no general
interest other than mine. In my own applications, I can simply establish a
schema of [sign, magnitude_byte_array].

I just realized that the (-1 - N) format is an optimization for the 128-bit
integer case. Those bits can be memcpy'ed into a native uint128 without
worrying about trap representations.


> For creating normal CBOR bignints, an algorithm for subtracting one that
> does not need to create another copy would be to first find the place whe=
re
> the carry chain ends from the LSB up (usually the last byte, but could be
> up to the MSB) and then copy out the number starting from MSB up to that
> place, and subtract 1 from each byte from there on (well, spewing out 0xF=
F
> for all but the highest).  (I hope you don=E2=80=99t have to deal with ne=
gative
> zero, but that is an easy special case if you do.  The other special case
> is ingesting a CBOR bignint with 0xFF times N, because you have to add a
> byte for the magnitude.)
>
> > 4. Because of #3, my CBOR codec implementation now depends on
> multiprecision integer arithmetic.
>
> Subtracting one maybe does not cause a need to pull in a big library (see
> example algorithm above).
>

That's some great advice, thanks! I'll have to work it out on paper to
understand it better.


> > In short, my life would be much easier if CBOR bignums were different i=
n
> the following way:
> >
> > - The sign is part of the message payload, and not "deduced" by the tag
> value,
>
> If you mean going to a 2=E2=80=99s complement representation, or stealing=
 the msb
> of the MSB for a sign bit, that would be a big problem as biguints often
> are designed fill all of the bytes, so adding a sign inside the
> representation adds a byte in half of the cases.  Remember that negative
> values are rarely used, and CBOR is optimized for the biguints we find in
> many applications.
>

I meant having the format like this:

<tag> [sign, magnitude_byte_array]

where the sign and magnitude_byte_array are enclosed in a two-element
array. So even if the tag is stripped, an application can still fully
reconstitute the signed bignum.


>
> > - The bytes represent the magnitude of the bignum: no
> subtraction/addition by 1 for negative values.
>
> That could be added (see discussion of adding a tag for this, above).
>

Again, there's no point if I'm the only one interested, but I appreciate
you contemplating it. :-)


> Simplicity and speed depends a lot on what your platform has.
> CBOR is very efficient for biguints.
> If you need to handle negative numbers, unfortunately there is a lot of
> variety, and I=E2=80=99m sorry that what we chose doesn=E2=80=99t map one=
-to-one with what
> you find in your platform.
>

I know you can't please everyone. :-)


> > I also think some tags have been "abused" for storing information that
> should otherwise be part of the message payload (all in the name of savin=
g
> a few bytes). This makes tags go beyond their purpose of providing semant=
ic
> meaning.
>
> I do not agree at all that using a tag to transfer information is abuse.
> Tags are a significant innovation that make a lot of things much easier
> than they are in other formats.
> (They also can be overused, which is why CDDL has =E2=80=9Cunwrap=E2=80=
=9D for tags, and
> why the comment mentioned above was made.)
>

Applications that depend on those tags that convey information (other than
semantic meaning) are effectively locked into using CBOR. That's what I
don't like about them.

In web browser land, a simple CBOR-to-JSON converter is no longer
sufficient to preserve the necessary information when tags are stripped out=
.


> > Sorry if this comes across as a rant. It's not my intention to belittle
> anyone. I just wanted to share my challenges in implementing CBOR for my
> C++ serialization library. Perhaps someone here will have advice on how I
> can overcome these challenges.
>
> See my algorithm proposal for converting negative bignums into magnitude
> and back, above.
>

Yes, that might just be the ticket. Thanks again for that suggestion. :-)

Cheers,
Emile

--000000000000bf74fe05d2204a58
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail=
_attr">On Wed, Dec 1, 2021 at 9:11 PM Carsten Bormann &lt;<a href=3D"mailto=
:cabo@tzi.org">cabo@tzi.org</a>&gt; wrote:</div><div dir=3D"ltr" class=3D"g=
mail_attr"><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I do=
n=E2=80=99t know how other binary interchange formats represent large integ=
ers (I probably have actively forgotten because I have seen too many horrib=
le attempts).<br></blockquote><div><br></div><div>I&#39;ve checked MessageP=
ack, UBJSON, Smile, and BSON. Only Smile has support for what they call &qu=
ot;BigInteger&quot;:<br><br><div style=3D"margin-left:40px"><i>&quot;Encode=
d as token indicator followed by 7-bit escaped binary (with=20
Unsigned VInt (no-zigzag encoding) as length indicator) that represent=20
magnitude value (byte array)&quot;</i></div><i><br></i></div><div>So the Bi=
gInteger is unsigned-only with Smile; no negative values.</div><div><br></d=
iv><div>CBOR is the only binary format I&#39;m aware of which supports nega=
tive bignums. I was thinking of the future when (yet another) binary format=
 might come along and decide to support negative bignums.<br></div><div>=C2=
=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex">

The assumption that led to our design is that most large integers will be u=
nsigned, so doing some additional work for negatives is not much of a probl=
em.<br>
If you need to transform a negative integer in sign-magnitude into what the=
 target encoding uses to represent large numbers, you will need some transf=
ormation; e.g., if a 2=E2=80=99s complement representation is used, you wil=
l need to flip the bits and add or subtract 1 =E2=80=94 no such addition/su=
btraction is needed for bignint (just flip the bits ((-1-N) =3D=3D ~N)).<br=
></blockquote><div><br></div><div>If bignums are used as a mantissa inside =
bigdecimal and bigfloat (which don&#39;t have a separate sign field), then =
it&#39;s no longer true that negative bigfloats are rarely used. When trans=
coding a CBOR bigdecimal or bigfloat to JSON, the sign of the value will ef=
fectively be lost, unless an extra sign field is added in the array structu=
re (which would make it impossible to round-trip the resulting structure ba=
ck to CBOR&#39;s original format).<br></div><div>=C2=A0</div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
 rgb(204,204,204);padding-left:1ex">

&gt; 2. In CBOR decoders that ignore tags, the sign of the bignum is lost w=
hen passed up to the application. This goes against the following passage i=
n section 3.4 of the spec:<br>
&gt; <br>
&gt; &quot;Decoders do not need to understand tags of every tag number, and=
 tags may be of little value in applications where the implementation creat=
ing a particular CBOR data item and the implementation decoding that stream=
 know the semantic meaning of each item in the data flow.&quot;<br>
<br>
Well, they do need to understand tags 2 and 3 if they have a need for negat=
ive numbers in addition to unsigned ones.<br></blockquote><div><br></div><d=
iv>That&#39;s my point. Applications are now forced to detect the presence =
of tags 2 and 3, even if they know to expect a signed bignum. Those applica=
tions can no longer be agnostic of the serialization format (CBOR vs Messag=
ePack).<br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex">

The comment you cite is more about tags like 1 or 32 =E2=80=94 if the conte=
xt already makes clear that this is a posix time / a URI, respectively, the=
 tag may be redundant (but still useful to push handling of platform data t=
ypes into a generic decoder).<br></blockquote><div><br></div><div>Tags 1 or=
 32 are examples of what I consider &quot;nice&quot; semantic tags. Even if=
 they&#39;re absent, an application can still interpret the values correctl=
y by agreement in the application protocol.<br></div><div>=C2=A0</div><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:=
1px solid rgb(204,204,204);padding-left:1ex">
&gt; Note that the same sort of information loss occurs with typed arrays, =
although it is more likely that an application would know the endianness an=
d element size of a received typed array.<br>
<br>
Right =E2=80=94 same situation =E2=80=94 if only one tag can possibly be us=
ed, you can ignore it; if there are several to choose from, you need the ta=
g number.<br></blockquote><div><br></div><div>In the case of typed arrays, =
the application protocol might have already established that a specific typ=
ed array stride/endianness be used. I think the loss of the tag is probably=
 less catastrophic in that case.<br></div><div>=C2=A0</div><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r=
gb(204,204,204);padding-left:1ex">

&gt; 3. Most arbitrary precision libraries represent big integers in signed=
 magnitude format. CBOR wants negative values to be stored as (-1 - N). I t=
herefore need to subtract one from the magnitude stored in a negative multi=
precision integer. Because the multiprecision subtraction algorithm needs t=
o start from the least significant byte (to propagate carries), I have to p=
erform subtraction on the entire bigint before I can serialize it to CBOR. =
This is because CBOR wants the bytes to be in big endian order. It&#39;s th=
erefore not possible to process and serialize each source byte &quot;on the=
 fly&quot; starting from the most significant byte. If I&#39;m serializing =
a huge bigint, then there&#39;s a space doubling penalty in the temporary b=
igint needed for the subtraction.<br>
<br>
Yes, that is an interesting observation.=C2=A0 <br>
Maybe it=E2=80=99s worth to spend a tag to represent a negative bigint (big=
nint) in magnitude format.<br>
But then, tag 3 is not that hard for 1=E2=80=99s complement or magnitude:<b=
r></blockquote><div><br></div><div>I&#39;m not sure I want to introduce yet=
 another tag if there&#39;s no general interest other than mine. In my own =
applications, I can simply establish a schema of [sign, magnitude_byte_arra=
y].</div><div><br></div><div>I just realized that the (-1 - N) format is an=
 optimization for the 128-bit integer case. Those bits can be memcpy&#39;ed=
 into a native uint128 without worrying about trap representations.<br></di=
v><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

For creating normal CBOR bignints, an algorithm for subtracting one that do=
es not need to create another copy would be to first find the place where t=
he carry chain ends from the LSB up (usually the last byte, but could be up=
 to the MSB) and then copy out the number starting from MSB up to that plac=
e, and subtract 1 from each byte from there on (well, spewing out 0xFF for =
all but the highest).=C2=A0 (I hope you don=E2=80=99t have to deal with neg=
ative zero, but that is an easy special case if you do.=C2=A0 The other spe=
cial case is ingesting a CBOR bignint with 0xFF times N, because you have t=
o add a byte for the magnitude.)<br>
<br>
&gt; 4. Because of #3, my CBOR codec implementation now depends on multipre=
cision integer arithmetic.<br>
<br>
Subtracting one maybe does not cause a need to pull in a big library (see e=
xample algorithm above).<br></blockquote><div><br></div><div>That&#39;s som=
e great advice, thanks! I&#39;ll have to work it out on paper to understand=
 it better.<br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi=
ng-left:1ex">
&gt; In short, my life would be much easier if CBOR bignums were different =
in the following way:<br>
&gt; <br>
&gt; - The sign is part of the message payload, and not &quot;deduced&quot;=
 by the tag value,<br>
<br>
If you mean going to a 2=E2=80=99s complement representation, or stealing t=
he msb of the MSB for a sign bit, that would be a big problem as biguints o=
ften are designed fill all of the bytes, so adding a sign inside the repres=
entation adds a byte in half of the cases.=C2=A0 Remember that negative val=
ues are rarely used, and CBOR is optimized for the biguints we find in many=
 applications.<br></blockquote><div><br></div><div>I meant having the forma=
t like this:</div><div><br></div><div>&lt;tag&gt; [sign, magnitude_byte_arr=
ay]</div><div><br></div><div>where the sign and magnitude_byte_array are en=
closed in a two-element array. So even if the tag is stripped, an applicati=
on can still fully reconstitute the signed bignum.<br></div><div>=C2=A0</di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde=
r-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
&gt; - The bytes represent the magnitude of the bignum: no subtraction/addi=
tion by 1 for negative values.<br>
<br>
That could be added (see discussion of adding a tag for this, above).<br></=
blockquote><div><br></div><div>Again, there&#39;s no point if I&#39;m the o=
nly one interested, but I appreciate you contemplating it. :-)<br></div><di=
v>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px=
 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Simplicity and speed depends a lot on what your platform has.<br>
CBOR is very efficient for biguints.<br>
If you need to handle negative numbers, unfortunately there is a lot of var=
iety, and I=E2=80=99m sorry that what we chose doesn=E2=80=99t map one-to-o=
ne with what you find in your platform.<br></blockquote><div><br></div><div=
>I know you can&#39;t please everyone. :-)<br></div><div>=C2=A0</div><block=
quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1=
px solid rgb(204,204,204);padding-left:1ex">

&gt; I also think some tags have been &quot;abused&quot; for storing inform=
ation that should otherwise be part of the message payload (all in the name=
 of saving a few bytes). This makes tags go beyond their purpose of providi=
ng semantic meaning.<br>
<br>
I do not agree at all that using a tag to transfer information is abuse.<br=
>
Tags are a significant innovation that make a lot of things much easier tha=
n they are in other formats.<br>
(They also can be overused, which is why CDDL has =E2=80=9Cunwrap=E2=80=9D =
for tags, and why the comment mentioned above was made.)<br></blockquote><d=
iv><br></div><div>Applications that depend on those tags that convey inform=
ation (other than semantic meaning) are effectively locked into using CBOR.=
 That&#39;s what I don&#39;t like about them.</div><div><br></div><div>In w=
eb browser land, a simple CBOR-to-JSON converter is no longer sufficient to=
 preserve the necessary information when tags are stripped out.<br></div><d=
iv>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0p=
x 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

&gt; Sorry if this comes across as a rant. It&#39;s not my intention to bel=
ittle anyone. I just wanted to share my challenges in implementing CBOR for=
 my C++ serialization library. Perhaps someone here will have advice on how=
 I can overcome these challenges.<br>
<br>
See my algorithm proposal for converting negative bignums into magnitude an=
d back, above.<br></blockquote><div><br></div><div>Yes, that might just be =
the ticket. Thanks again for that suggestion. :-)<br></div><div>=C2=A0</div=
></div><div class=3D"gmail_quote">Cheers,</div><div class=3D"gmail_quote">E=
mile<br></div></div>

--000000000000bf74fe05d2204a58--


From nobody Wed Dec  1 18:41:56 2021
Return-Path: <emile.cormier.jr@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 5FEEC3A0808 for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 18:41:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.087
X-Spam-Level: 
X-Spam-Status: No, score=-2.087 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, HTML_MESSAGE=0.001, T_SPF_HELO_TEMPERROR=0.01, URIBL_BLOCKED=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 s28foKOvBxTf for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 18:41:43 -0800 (PST)
Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) (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 3CB1C3A0806 for <cbor@ietf.org>; Wed,  1 Dec 2021 18:41:43 -0800 (PST)
Received: by mail-yb1-xb36.google.com with SMTP id x32so69175071ybi.12 for <cbor@ietf.org>; Wed, 01 Dec 2021 18:41:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j9panAfQuf/0TKXov7CYp2OdUc88J1bTgAwBY7T8i4E=; b=bQo8RmfRliNgYHZ75yfe3gadRCSsX1dl+ALBGH9jQhtGmfk2/I39nlQi2kuTEKt/HP /4L+QGgwRcWUTC9TNRWd4BlW7AqJIV+S/KvtrOSdSV+eEbs+we0h9ZF/rmEvc86hzwG0 0+cHbcDo6sGkaTS52DWB1y1gPSqS67LmteHCV3BwAUljtU5JcP8tQ6s7dJCBXp0r7YuG aJuMPS5eX/Dc+LhJe0Pyf/7R68S3R+WdhayiEDyJu9V0KCu3zl0mQbOBou9yH3EZxsje b+8v4GUcnJ0SSp7qUqPC5B4l0IHImgw/qJOfMazbWPtVS45KEEm0IBw4RI0+ryHVfw4+ tkYA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j9panAfQuf/0TKXov7CYp2OdUc88J1bTgAwBY7T8i4E=; b=6DlVoqJDr+g80z8nGgesB1xQ16RYXUk4H00NSPP879rUdOlJ13ZJckImBNqqMvJyl6 mWwPhQYUa0Qd/qYdFJO+DRCAiqd1cF6JefeU3qq6VPC1wXQx8OAxAIQw4Ff/x+uNopQk zLEn84bZwNGXQGBindJ9gYOBf26W663b/jel39z97nzN60cjz3pF/0JDSVchAJZh8b1j x/6BpK7P9Ll7XqG9JhS/pw6a7Hjp2UMmRkb6KjJ/1bD3zTeQgHvbxZ83/TGoOBY5WTXB zYKQ4WnvvYQQKIdorD7tW2j6ZwFoNYM/CiK08b2Hl7e3g1xGuCuQls/BJR8LuKaiPSLt gW6A==
X-Gm-Message-State: AOAM530fSsPic4jM8YSo7dapjfPxTU9cjeQipEtOO0YlmMNOT8kW6DVH ZmPyTEXE/VFQT+3vvfNZ9NR8eu79QC7TU236aug=
X-Google-Smtp-Source: ABdhPJzMRjeSyui9fo3yOpkE9GNVfm367JIkSEBi1Ikf/Zp7BkVTVQuIQo/VEumiJa0fjWEEQu1BKFdqASLWPjbiPKA=
X-Received: by 2002:a25:d002:: with SMTP id h2mr12756253ybg.581.1638412901146;  Wed, 01 Dec 2021 18:41:41 -0800 (PST)
MIME-Version: 1.0
References: <CAM70yxDvL1HKZSz8FMwFb64Tvse6TrqUwNgTmeY7kbMYGazDjg@mail.gmail.com> <63CF958A-1153-4932-BE03-3F172E84D60F@tzi.org> <3FEC84FA-BAAC-47AD-A95A-AE1C74A89E14@island-resort.com>
In-Reply-To: <3FEC84FA-BAAC-47AD-A95A-AE1C74A89E14@island-resort.com>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Wed, 1 Dec 2021 22:41:30 -0400
Message-ID: <CAM70yxA0STNFxQhdqMQV-qcbdva6+BUyr3N4hvxdu9hUSRGb2g@mail.gmail.com>
To: Laurence Lundblade <lgl@island-resort.com>
Cc: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
Content-Type: multipart/alternative; boundary="000000000000f7e3b405d220ba9c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/XXmYp07OdhZiEPW037rKhP_g5dQ>
Subject: Re: [Cbor] Challenges in supporting bignum tag
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, 02 Dec 2021 02:41:56 -0000

--000000000000f7e3b405d220ba9c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 1, 2021 at 9:48 PM Laurence Lundblade <lgl@island-resort.com>
wrote:

> I  continue to spend a lot of time figuring out how tags should be treate=
d
> in QCBOR. I definitely got it wrong my first time some years ago. Part of
> the trouble was that they were called =E2=80=9COptional Tags=E2=80=9D in =
RFC 7049.  I
> really don=E2=80=99t think of them as optional any more.
>

After implementing time support in my C++ serialization library, I'm
starting to agree with you about tags not being optional anymore. CBOR tags
1001 and 1002 for extended time may contain bignums (via bigfloats or
bigdecimals), where their sign will be stripped off if you just dump them
in a generic parse tree without the tags.

In addition to the classic null, bool, number, array, object/map parse
events from JSON, I'm now having to introduce "special" events like
time_length (tag 1002), scaled_time (tag 1001), time_interval (tag 1003),
big_int, big_float, and big_decimal. These special events contain an
"intermediary" representation of the data exchanged between codecs (CBOR,
MessagePack, JSON) and the C++/Boost data types (std::chrono::time_point,
Boost.DateTime, Boost.Multiprecision, etc). It doesn't help that various
codecs have different opinions on what the wire format should be like
(ISO8601 time strings in JSON vs extended time maps in CBOR vs extended
array time type in MessagePack).


> I=E2=80=99ve also gone to some trouble to deal with the cases were a tag =
is
> =E2=80=9Cimplicit=E2=80=9D rather than explicit. Implicit here means that=
 data item in the
> protocol is implied to have the format of a tag=E2=80=99s content, but th=
ere=E2=80=99s no
> tag number. This is =E2=80=9Cunwrapped=E2=80=9D in CDDL. It took some ext=
ra work for big
> nums because the sign is in the tag.
>

I might have to check out your QCBOR code for inspiration in dealing with
bignums.


> I don=E2=80=99t think it would be a good idea to change this or define a =
new tag
> at this point. There=E2=80=99s too many number format tags CBOR already.
>

I agree, and I wasn't expecting there to be a new tag for signed bignums.
My "rant" was more to get some helpful advice (which I did), and just in
case the inventor of the next binary-JSON-like protocol happens to read it
(so that they can avoid the same pain points).

On Wed, Dec 1, 2021 at 9:48 PM Laurence Lundblade <lgl@island-resort.com>
wrote:

> I=E2=80=99ve implemented CBOR big numbers in QCBOR including conversion t=
o double.
>
> Agree that having the sign in the tag made it more work, but there would
> have been work if the sign was elsewhere. Also agree that it is a bit of =
an
> exception compared to the way other standard tags work. The QCBOR API for
> big nums is a little different than for other tags whose content is a
> string. However in the end, the compromise seems reasonable.
>
> I  continue to spend a lot of time figuring out how tags should be treate=
d
> in QCBOR. I definitely got it wrong my first time some years ago. Part of
> the trouble was that they were called =E2=80=9COptional Tags=E2=80=9D in =
RFC 7049.  I
> really don=E2=80=99t think of them as optional any more. A decoder really=
 can=E2=80=99t
> ignore them in any general way. I don=E2=80=99t think of a tag with conte=
nt that is
> a byte string as a byte string. It is some new type that you need to
> explicitly know about to interpret correctly and a generic decoder API ha=
s
> to take that into account for just about all tags.
>
> I=E2=80=99ve also gone to some trouble to deal with the cases were a tag =
is
> =E2=80=9Cimplicit=E2=80=9D rather than explicit. Implicit here means that=
 data item in the
> protocol is implied to have the format of a tag=E2=80=99s content, but th=
ere=E2=80=99s no
> tag number. This is =E2=80=9Cunwrapped=E2=80=9D in CDDL. It took some ext=
ra work for big
> nums because the sign is in the tag.
>
> I don=E2=80=99t think it would be a good idea to change this or define a =
new tag
> at this point. There=E2=80=99s too many number format tags CBOR already.
>
> LL
>
>
>
> > On Dec 1, 2021, at 5:11 PM, Carsten Bormann <cabo@tzi.org> wrote:
> >
> > Hi Emile,
> >
> > On 2021-12-02, at 00:38, Emile Cormier <emile.cormier.jr@gmail.com>
> wrote:
> >>
> >> Hi Everyone,
> >>
> >> I'm in the process of supporting CBOR "bignums" (which I think should
> have been named "bigint=E2=80=9D)
> >
> > Indeed, =E2=80=9Cbignum=E2=80=9D is a historical name at best.
> > But it has stuck for half a century (since about 1970 [1]).
> >
> >> in my C++ serialization library, and have encountered the following
> challenges:
> >>
> >> 1. When transcoding to other binary formats (such as MessagePack), the
> sign of the bignum is lost because it is deduced by the tag value and is
> not part of the message payload. I have to resort to converting it to
> [sign, byte_array], which makes it no longer round-trippable to its
> original CBOR format.
> >
> > I don=E2=80=99t know how other binary interchange formats represent lar=
ge
> integers (I probably have actively forgotten because I have seen too many
> horrible attempts).
> >
> > The assumption that led to our design is that most large integers will
> be unsigned, so doing some additional work for negatives is not much of a
> problem.
> > If you need to transform a negative integer in sign-magnitude into what
> the target encoding uses to represent large numbers, you will need some
> transformation; e.g., if a 2=E2=80=99s complement representation is used,=
 you will
> need to flip the bits and add or subtract 1 =E2=80=94 no such addition/su=
btraction
> is needed for bignint (just flip the bits ((-1-N) =3D=3D ~N)).
> >
> >> 2. In CBOR decoders that ignore tags, the sign of the bignum is lost
> when passed up to the application. This goes against the following passag=
e
> in section 3.4 of the spec:
> >>
> >> "Decoders do not need to understand tags of every tag number, and tags
> may be of little value in applications where the implementation creating =
a
> particular CBOR data item and the implementation decoding that stream kno=
w
> the semantic meaning of each item in the data flow."
> >
> > Well, they do need to understand tags 2 and 3 if they have a need for
> negative numbers in addition to unsigned ones.
> >
> > The comment you cite is more about tags like 1 or 32 =E2=80=94 if the c=
ontext
> already makes clear that this is a posix time / a URI, respectively, the
> tag may be redundant (but still useful to push handling of platform data
> types into a generic decoder).
> >
> >> So even if the application knows the semantic meaning of the received
> byte array (it's expecting a bignum), it cannot reconstitute the sign of
> the received magnitude without knowing the tag.
> >
> > Correct.
> > Again, most applications don=E2=80=99t use negative bignums, so if the
> application knows that it expects a biguint, the tag has no additional
> information.  But if you need both kinds of bignums, you need to read the
> tag.
> >
> >> Note that the same sort of information loss occurs with typed arrays,
> although it is more likely that an application would know the endianness
> and element size of a received typed array.
> >
> > Right =E2=80=94 same situation =E2=80=94 if only one tag can possibly b=
e used, you can
> ignore it; if there are several to choose from, you need the tag number.
> >
> >> 3. Most arbitrary precision libraries represent big integers in signed
> magnitude format. CBOR wants negative values to be stored as (-1 - N). I
> therefore need to subtract one from the magnitude stored in a negative
> multiprecision integer. Because the multiprecision subtraction algorithm
> needs to start from the least significant byte (to propagate carries), I
> have to perform subtraction on the entire bigint before I can serialize i=
t
> to CBOR. This is because CBOR wants the bytes to be in big endian order.
> It's therefore not possible to process and serialize each source byte "on
> the fly" starting from the most significant byte. If I'm serializing a hu=
ge
> bigint, then there's a space doubling penalty in the temporary bigint
> needed for the subtraction.
> >
> > Yes, that is an interesting observation.
> > Maybe it=E2=80=99s worth to spend a tag to represent a negative bigint =
(bignint)
> in magnitude format.
> > But then, tag 3 is not that hard for 1=E2=80=99s complement or magnitud=
e:
> >
> > For creating normal CBOR bignints, an algorithm for subtracting one tha=
t
> does not need to create another copy would be to first find the place whe=
re
> the carry chain ends from the LSB up (usually the last byte, but could be
> up to the MSB) and then copy out the number starting from MSB up to that
> place, and subtract 1 from each byte from there on (well, spewing out 0xF=
F
> for all but the highest).  (I hope you don=E2=80=99t have to deal with ne=
gative
> zero, but that is an easy special case if you do.  The other special case
> is ingesting a CBOR bignint with 0xFF times N, because you have to add a
> byte for the magnitude.)
> >
> >> 4. Because of #3, my CBOR codec implementation now depends on
> multiprecision integer arithmetic.
> >
> > Subtracting one maybe does not cause a need to pull in a big library
> (see example algorithm above).
> >
> >> I'm now forced to do one of the following:
> >>
> >> a) Add a dependency to a multiprecision arithmetic library, which may
> not be the same one that's used by the application. For example, my libra=
ry
> depends on Boost.Multiprecision, but the application wants to serialize a
> GMP bignum. The application now ends up with dependencies on two
> multiprecision libraries - yuck!
> >>
> >> b) Write the multiprecision subtraction by hand to avoid introducing a
> dependency on a multiprecision arithmetic library. While the algorithm
> isn't too complicated, what I write is certain to be slower than a
> multiprecision library.
> >>
> >> c) Require that the intermediary byte format passed to the encoder be
> the same as what CBOR expects (which may not be the same format as what
> other binary serialization formats want). For example, the header in my
> library which adds GMP serialization support could use GMP itself to
> perform the -1 subtraction and pass those bytes to the encoder. I should
> note here that the encoder interface in my library is agnostic of the
> serialization format. That is, the JSON encoder interface is the same as
> the CBOR encoder interface. This makes it easy for the application to
> serialize to different formats (JSON, CBOR, etc) without having to change
> anything in the application's serialization code.
> >
> > I think the algorithm I gave above is simple enough that this should
> obviate these considerations.
> >
> >> In short, my life would be much easier if CBOR bignums were different
> in the following way:
> >>
> >> - The sign is part of the message payload, and not "deduced" by the ta=
g
> value,
> >
> > If you mean going to a 2=E2=80=99s complement representation, or steali=
ng the
> msb of the MSB for a sign bit, that would be a big problem as biguints
> often are designed fill all of the bytes, so adding a sign inside the
> representation adds a byte in half of the cases.  Remember that negative
> values are rarely used, and CBOR is optimized for the biguints we find in
> many applications.
> >
> >> - The bytes represent the magnitude of the bignum: no
> subtraction/addition by 1 for negative values.
> >
> > That could be added (see discussion of adding a tag for this, above).
> >
> >> There are other tags that currently depend on the existing bignum tag
> (bigdecimal, bigfloat, extended time), so I don't expect there to be much
> interest in a new "sane bignum" tag that addresses the "flaws" I brought =
up
> here. I'm just documenting the challenges I'm facing with the existing
> bignum tag so that they're considered if there's ever a fork of this
> standard, or if some other binary protocol wants to implement bignums.
> >>
> >> Overall I feel there's too much emphasis in CBOR on cramming everythin=
g
> into as few bytes as possible, and not enough on decoding simplicity and
> speed.
> >
> > Simplicity and speed depends a lot on what your platform has.
> > CBOR is very efficient for biguints.
> > If you need to handle negative numbers, unfortunately there is a lot of
> variety, and I=E2=80=99m sorry that what we chose doesn=E2=80=99t map one=
-to-one with what
> you find in your platform.
> >
> >> I also think some tags have been "abused" for storing information that
> should otherwise be part of the message payload (all in the name of savin=
g
> a few bytes). This makes tags go beyond their purpose of providing semant=
ic
> meaning.
> >
> > I do not agree at all that using a tag to transfer information is abuse=
.
> > Tags are a significant innovation that make a lot of things much easier
> than they are in other formats.
> > (They also can be overused, which is why CDDL has =E2=80=9Cunwrap=E2=80=
=9D for tags, and
> why the comment mentioned above was made.)
> >
> >> Sorry if this comes across as a rant. It's not my intention to belittl=
e
> anyone. I just wanted to share my challenges in implementing CBOR for my
> C++ serialization library. Perhaps someone here will have advice on how I
> can overcome these challenges.
> >
> > See my algorithm proposal for converting negative bignums into magnitud=
e
> and back, above.
> >
> > Gr=C3=BC=C3=9Fe, Carsten
> >
> > [1]: https://www.dreamsongs.com/Files/HOPL2-Uncut.pdf
> >
> > _______________________________________________
> > CBOR mailing list
> > CBOR@ietf.org
> > https://www.ietf.org/mailman/listinfo/cbor
>
>

--000000000000f7e3b405d220ba9c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div id=3D"gmail-:2da" class=3D"gmail-a3s gmail-aiL"><div =
dir=3D"ltr"><div class=3D"gmail_quote"><span class=3D"gmail-im"><div dir=3D=
"ltr" class=3D"gmail_attr">On Wed, Dec 1, 2021 at 9:48 PM Laurence Lundblad=
e &lt;<a href=3D"mailto:lgl@island-resort.com" target=3D"_blank">lgl@island=
-resort.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex">I=C2=A0
 continue to spend a lot of time figuring out how tags should be treated
 in QCBOR. I definitely got it wrong my first time some years ago. Part=20
of the trouble was that they were called =E2=80=9COptional Tags=E2=80=9D in=
 RFC 7049.=C2=A0 I
 really don=E2=80=99t think of them as optional any more.<br></blockquote><=
div><br></div></span><div>After
 implementing time support in my C++ serialization library, I&#39;m startin=
g
 to agree with you about tags not being optional anymore. CBOR tags 1001
 and 1002 for extended time may contain bignums (via bigfloats or=20
bigdecimals), where their sign will be stripped off if you just dump=20
them in a generic parse tree without the tags.</div><div><br></div><div>In
 addition to the classic null, bool, number, array, object/map parse=20
events from JSON, I&#39;m now having to introduce &quot;special&quot; event=
s like=20
time_length (tag 1002), scaled_time (tag 1001), time_interval (tag=20
1003), big_int, big_float, and big_decimal. These special events contain
 an &quot;intermediary&quot; representation of the data exchanged between c=
odecs=20
(CBOR, MessagePack, JSON) and the C++/Boost data types=20
(std::chrono::time_point, Boost.DateTime, Boost.Multiprecision, etc). It
 doesn&#39;t help that various codecs have different opinions on what the=
=20
wire format should be like (ISO8601 time strings in JSON vs extended=20
time maps in CBOR vs extended array time type in MessagePack).<br></div><sp=
an class=3D"gmail-im"><div>=C2=A0</div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd=
ing-left:1ex">

I=E2=80=99ve also gone to some trouble to deal with the cases were a tag is=
=20
=E2=80=9Cimplicit=E2=80=9D rather than explicit. Implicit here means that d=
ata item in=20
the protocol is implied to have the format of a tag=E2=80=99s content, but=
=20
there=E2=80=99s no tag number. This is =E2=80=9Cunwrapped=E2=80=9D in CDDL.=
 It took some extra=20
work for big nums because the sign is in the tag.<br></blockquote><div><br>=
</div></span><div>I might have to check out your QCBOR code for inspiration=
 in dealing with bignums.<br></div><span class=3D"gmail-im"><div>=C2=A0</di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde=
r-left:1px solid rgb(204,204,204);padding-left:1ex">

I don=E2=80=99t think it would be a good idea to change this or define a ne=
w tag
 at this point. There=E2=80=99s too many number format tags CBOR already.<b=
r></blockquote><div><br></div></span><div>I
 agree, and I wasn&#39;t expecting there to be a new tag for signed bignums=
.
 My &quot;rant&quot; was more to get some helpful advice (which I did), and=
 just=20
in case the inventor of the next binary-JSON-like protocol happens to=20
read it (so that they can avoid the same pain points).</div></div></div></d=
iv></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_att=
r">On Wed, Dec 1, 2021 at 9:48 PM Laurence Lundblade &lt;<a href=3D"mailto:=
lgl@island-resort.com">lgl@island-resort.com</a>&gt; wrote:<br></div><block=
quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1=
px solid rgb(204,204,204);padding-left:1ex">I=E2=80=99ve implemented CBOR b=
ig numbers in QCBOR including conversion to double.<br>
<br>
Agree that having the sign in the tag made it more work, but there would ha=
ve been work if the sign was elsewhere. Also agree that it is a bit of an e=
xception compared to the way other standard tags work. The QCBOR API for bi=
g nums is a little different than for other tags whose content is a string.=
 However in the end, the compromise seems reasonable.<br>
<br>
I=C2=A0 continue to spend a lot of time figuring out how tags should be tre=
ated in QCBOR. I definitely got it wrong my first time some years ago. Part=
 of the trouble was that they were called =E2=80=9COptional Tags=E2=80=9D i=
n RFC 7049.=C2=A0 I really don=E2=80=99t think of them as optional any more=
. A decoder really can=E2=80=99t ignore them in any general way. I don=E2=
=80=99t think of a tag with content that is a byte string as a byte string.=
 It is some new type that you need to explicitly know about to interpret co=
rrectly and a generic decoder API has to take that into account for just ab=
out all tags.<br>
<br>
I=E2=80=99ve also gone to some trouble to deal with the cases were a tag is=
 =E2=80=9Cimplicit=E2=80=9D rather than explicit. Implicit here means that =
data item in the protocol is implied to have the format of a tag=E2=80=99s =
content, but there=E2=80=99s no tag number. This is =E2=80=9Cunwrapped=E2=
=80=9D in CDDL. It took some extra work for big nums because the sign is in=
 the tag.<br>
<br>
I don=E2=80=99t think it would be a good idea to change this or define a ne=
w tag at this point. There=E2=80=99s too many number format tags CBOR alrea=
dy.<br>
<br>
LL<br>
<br>
<br>
<br>
&gt; On Dec 1, 2021, at 5:11 PM, Carsten Bormann &lt;<a href=3D"mailto:cabo=
@tzi.org" target=3D"_blank">cabo@tzi.org</a>&gt; wrote:<br>
&gt; <br>
&gt; Hi Emile,<br>
&gt; <br>
&gt; On 2021-12-02, at 00:38, Emile Cormier &lt;<a href=3D"mailto:emile.cor=
mier.jr@gmail.com" target=3D"_blank">emile.cormier.jr@gmail.com</a>&gt; wro=
te:<br>
&gt;&gt; <br>
&gt;&gt; Hi Everyone,<br>
&gt;&gt; <br>
&gt;&gt; I&#39;m in the process of supporting CBOR &quot;bignums&quot; (whi=
ch I think should have been named &quot;bigint=E2=80=9D)<br>
&gt; <br>
&gt; Indeed, =E2=80=9Cbignum=E2=80=9D is a historical name at best.<br>
&gt; But it has stuck for half a century (since about 1970 [1]).<br>
&gt; <br>
&gt;&gt; in my C++ serialization library, and have encountered the followin=
g challenges:<br>
&gt;&gt; <br>
&gt;&gt; 1. When transcoding to other binary formats (such as MessagePack),=
 the sign of the bignum is lost because it is deduced by the tag value and =
is not part of the message payload. I have to resort to converting it to [s=
ign, byte_array], which makes it no longer round-trippable to its original =
CBOR format.<br>
&gt; <br>
&gt; I don=E2=80=99t know how other binary interchange formats represent la=
rge integers (I probably have actively forgotten because I have seen too ma=
ny horrible attempts).<br>
&gt; <br>
&gt; The assumption that led to our design is that most large integers will=
 be unsigned, so doing some additional work for negatives is not much of a =
problem.<br>
&gt; If you need to transform a negative integer in sign-magnitude into wha=
t the target encoding uses to represent large numbers, you will need some t=
ransformation; e.g., if a 2=E2=80=99s complement representation is used, yo=
u will need to flip the bits and add or subtract 1 =E2=80=94 no such additi=
on/subtraction is needed for bignint (just flip the bits ((-1-N) =3D=3D ~N)=
).<br>
&gt; <br>
&gt;&gt; 2. In CBOR decoders that ignore tags, the sign of the bignum is lo=
st when passed up to the application. This goes against the following passa=
ge in section 3.4 of the spec:<br>
&gt;&gt; <br>
&gt;&gt; &quot;Decoders do not need to understand tags of every tag number,=
 and tags may be of little value in applications where the implementation c=
reating a particular CBOR data item and the implementation decoding that st=
ream know the semantic meaning of each item in the data flow.&quot;<br>
&gt; <br>
&gt; Well, they do need to understand tags 2 and 3 if they have a need for =
negative numbers in addition to unsigned ones.<br>
&gt; <br>
&gt; The comment you cite is more about tags like 1 or 32 =E2=80=94 if the =
context already makes clear that this is a posix time / a URI, respectively=
, the tag may be redundant (but still useful to push handling of platform d=
ata types into a generic decoder).<br>
&gt; <br>
&gt;&gt; So even if the application knows the semantic meaning of the recei=
ved byte array (it&#39;s expecting a bignum), it cannot reconstitute the si=
gn of the received magnitude without knowing the tag.<br>
&gt; <br>
&gt; Correct.<br>
&gt; Again, most applications don=E2=80=99t use negative bignums, so if the=
 application knows that it expects a biguint, the tag has no additional inf=
ormation.=C2=A0 But if you need both kinds of bignums, you need to read the=
 tag.<br>
&gt; <br>
&gt;&gt; Note that the same sort of information loss occurs with typed arra=
ys, although it is more likely that an application would know the endiannes=
s and element size of a received typed array.<br>
&gt; <br>
&gt; Right =E2=80=94 same situation =E2=80=94 if only one tag can possibly =
be used, you can ignore it; if there are several to choose from, you need t=
he tag number.<br>
&gt; <br>
&gt;&gt; 3. Most arbitrary precision libraries represent big integers in si=
gned magnitude format. CBOR wants negative values to be stored as (-1 - N).=
 I therefore need to subtract one from the magnitude stored in a negative m=
ultiprecision integer. Because the multiprecision subtraction algorithm nee=
ds to start from the least significant byte (to propagate carries), I have =
to perform subtraction on the entire bigint before I can serialize it to CB=
OR. This is because CBOR wants the bytes to be in big endian order. It&#39;=
s therefore not possible to process and serialize each source byte &quot;on=
 the fly&quot; starting from the most significant byte. If I&#39;m serializ=
ing a huge bigint, then there&#39;s a space doubling penalty in the tempora=
ry bigint needed for the subtraction.<br>
&gt; <br>
&gt; Yes, that is an interesting observation.=C2=A0 <br>
&gt; Maybe it=E2=80=99s worth to spend a tag to represent a negative bigint=
 (bignint) in magnitude format.<br>
&gt; But then, tag 3 is not that hard for 1=E2=80=99s complement or magnitu=
de:<br>
&gt; <br>
&gt; For creating normal CBOR bignints, an algorithm for subtracting one th=
at does not need to create another copy would be to first find the place wh=
ere the carry chain ends from the LSB up (usually the last byte, but could =
be up to the MSB) and then copy out the number starting from MSB up to that=
 place, and subtract 1 from each byte from there on (well, spewing out 0xFF=
 for all but the highest).=C2=A0 (I hope you don=E2=80=99t have to deal wit=
h negative zero, but that is an easy special case if you do.=C2=A0 The othe=
r special case is ingesting a CBOR bignint with 0xFF times N, because you h=
ave to add a byte for the magnitude.)<br>
&gt; <br>
&gt;&gt; 4. Because of #3, my CBOR codec implementation now depends on mult=
iprecision integer arithmetic.<br>
&gt; <br>
&gt; Subtracting one maybe does not cause a need to pull in a big library (=
see example algorithm above).<br>
&gt; <br>
&gt;&gt; I&#39;m now forced to do one of the following:<br>
&gt;&gt; <br>
&gt;&gt; a) Add a dependency to a multiprecision arithmetic library, which =
may not be the same one that&#39;s used by the application. For example, my=
 library depends on Boost.Multiprecision, but the application wants to seri=
alize a GMP bignum. The application now ends up with dependencies on two mu=
ltiprecision libraries - yuck!<br>
&gt;&gt; <br>
&gt;&gt; b) Write the multiprecision subtraction by hand to avoid introduci=
ng a dependency on a multiprecision arithmetic library. While the algorithm=
 isn&#39;t too complicated, what I write is certain to be slower than a mul=
tiprecision library.<br>
&gt;&gt; <br>
&gt;&gt; c) Require that the intermediary byte format passed to the encoder=
 be the same as what CBOR expects (which may not be the same format as what=
 other binary serialization formats want). For example, the header in my li=
brary which adds GMP serialization support could use GMP itself to perform =
the -1 subtraction and pass those bytes to the encoder. I should note here =
that the encoder interface in my library is agnostic of the serialization f=
ormat. That is, the JSON encoder interface is the same as the CBOR encoder =
interface. This makes it easy for the application to serialize to different=
 formats (JSON, CBOR, etc) without having to change anything in the applica=
tion&#39;s serialization code.<br>
&gt; <br>
&gt; I think the algorithm I gave above is simple enough that this should o=
bviate these considerations.<br>
&gt; <br>
&gt;&gt; In short, my life would be much easier if CBOR bignums were differ=
ent in the following way:<br>
&gt;&gt; <br>
&gt;&gt; - The sign is part of the message payload, and not &quot;deduced&q=
uot; by the tag value,<br>
&gt; <br>
&gt; If you mean going to a 2=E2=80=99s complement representation, or steal=
ing the msb of the MSB for a sign bit, that would be a big problem as bigui=
nts often are designed fill all of the bytes, so adding a sign inside the r=
epresentation adds a byte in half of the cases.=C2=A0 Remember that negativ=
e values are rarely used, and CBOR is optimized for the biguints we find in=
 many applications.<br>
&gt; <br>
&gt;&gt; - The bytes represent the magnitude of the bignum: no subtraction/=
addition by 1 for negative values.<br>
&gt; <br>
&gt; That could be added (see discussion of adding a tag for this, above).<=
br>
&gt; <br>
&gt;&gt; There are other tags that currently depend on the existing bignum =
tag (bigdecimal, bigfloat, extended time), so I don&#39;t expect there to b=
e much interest in a new &quot;sane bignum&quot; tag that addresses the &qu=
ot;flaws&quot; I brought up here. I&#39;m just documenting the challenges I=
&#39;m facing with the existing bignum tag so that they&#39;re considered i=
f there&#39;s ever a fork of this standard, or if some other binary protoco=
l wants to implement bignums.<br>
&gt;&gt; <br>
&gt;&gt; Overall I feel there&#39;s too much emphasis in CBOR on cramming e=
verything into as few bytes as possible, and not enough on decoding simplic=
ity and speed.<br>
&gt; <br>
&gt; Simplicity and speed depends a lot on what your platform has.<br>
&gt; CBOR is very efficient for biguints.<br>
&gt; If you need to handle negative numbers, unfortunately there is a lot o=
f variety, and I=E2=80=99m sorry that what we chose doesn=E2=80=99t map one=
-to-one with what you find in your platform.<br>
&gt; <br>
&gt;&gt; I also think some tags have been &quot;abused&quot; for storing in=
formation that should otherwise be part of the message payload (all in the =
name of saving a few bytes). This makes tags go beyond their purpose of pro=
viding semantic meaning.<br>
&gt; <br>
&gt; I do not agree at all that using a tag to transfer information is abus=
e.<br>
&gt; Tags are a significant innovation that make a lot of things much easie=
r than they are in other formats.<br>
&gt; (They also can be overused, which is why CDDL has =E2=80=9Cunwrap=E2=
=80=9D for tags, and why the comment mentioned above was made.)<br>
&gt; <br>
&gt;&gt; Sorry if this comes across as a rant. It&#39;s not my intention to=
 belittle anyone. I just wanted to share my challenges in implementing CBOR=
 for my C++ serialization library. Perhaps someone here will have advice on=
 how I can overcome these challenges.<br>
&gt; <br>
&gt; See my algorithm proposal for converting negative bignums into magnitu=
de and back, above.<br>
&gt; <br>
&gt; Gr=C3=BC=C3=9Fe, Carsten<br>
&gt; <br>
&gt; [1]: <a href=3D"https://www.dreamsongs.com/Files/HOPL2-Uncut.pdf" rel=
=3D"noreferrer" target=3D"_blank">https://www.dreamsongs.com/Files/HOPL2-Un=
cut.pdf</a><br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; CBOR mailing list<br>
&gt; <a href=3D"mailto:CBOR@ietf.org" target=3D"_blank">CBOR@ietf.org</a><b=
r>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/cbor" rel=3D"noreferr=
er" target=3D"_blank">https://www.ietf.org/mailman/listinfo/cbor</a><br>
<br>
</blockquote></div>

--000000000000f7e3b405d220ba9c--


From nobody Wed Dec  1 21:35:00 2021
Return-Path: <kriszyp@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 7C75C3A0A87 for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 21:34:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level: 
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 RA5nODoWGoC4 for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 21:34:51 -0800 (PST)
Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (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 6BDCE3A0A86 for <cbor@ietf.org>; Wed,  1 Dec 2021 21:34:51 -0800 (PST)
Received: by mail-ed1-x52e.google.com with SMTP id l25so111087185eda.11 for <cbor@ietf.org>; Wed, 01 Dec 2021 21:34:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qz3Ms4wpfBeLomvZl053Oj0LxPndxSBqHXgW3yDcvH8=; b=Bo8tuDWXojxT2GVi2kE7A3cD8gkTt0YYZmkx6pGypQztVZbnr899jrMqwOzdeZ/zMw ILNkbWlAaCtQqEJCDR3ucJbYZbNRo6cf/W2XDZu8sp/ySQY0p5hyXuC0eIsDE+vsxpA7 EpVd0BWdUukFHySYYYAa4Ax5W6R79g8wAEhQqn7o80n/WKlQ9Yc5/CGZyKKYqZ6TOoCw vj4W24mKad9FHiNk25WpIfFsMPKOWzajUkFqNhj+bYJDTqpc6Llgc3ciRyvePXc+/Tjy GgZb/fhLhPL7Cxu0K2VnerbAO3MaVFjkiG5atD7jpYeZqLdX4MiqonSxuvK8BALFxEDo ozww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qz3Ms4wpfBeLomvZl053Oj0LxPndxSBqHXgW3yDcvH8=; b=6mm3McdGKhi9izRbGJjq+TzicK+f2icUH+Levoflt6li3uz3Otmcg+Sivfm3KeykYZ 0mYhm0wpetDxctHFuCxBwGB3hhSeHneNzizkBwe07ZJmb91tFRGih50KUBqy5Wik4Smg QtmphbNBBLpjqN4xkSevaSvOO/sjAn8uceUKow6nBXtBAx9pnb5omzc2RLN+SylONSZU syfLMuAHF0zk7D2lL+AA1uexwUaPmj8VzbKeZWm3Gcr9H/oSvo/YBYbeUyWemFdjeg7G 6nscRp1a4v/GgKA0ndNo7bFLIXGPDdGgxcbVu17M4fmMWu2ZUdlmlWHJ66Ec1EHqO3+x Hjug==
X-Gm-Message-State: AOAM532W29x0qs30SzlXELiq+4UiXu1cR21LzNKq4haKmSpcXLgUWUVU XC2oO6qFNSl+1fxs7J6D7vlL/6Ccp6LQjmJ/8g4Uuj0X
X-Google-Smtp-Source: ABdhPJyO2FsAOBZvmu1sxE1VRY72U3DouqXBHWIqE4XZknGghRPWXLJ4BlnZl84KLXN9iTl/LT+DCoD/CkqJhHnHIy0=
X-Received: by 2002:a17:906:c14b:: with SMTP id dp11mr12660097ejc.294.1638423288993;  Wed, 01 Dec 2021 21:34:48 -0800 (PST)
MIME-Version: 1.0
References: <CAEs2a6vNhrHhaiPUNtbJ68WYfbrprETPr+kmWNJgNXMSawyBig@mail.gmail.com> <E3F121DA-95EE-43C6-BC72-E3763C034944@tzi.org> <CAEs2a6uZrT9FFP6qa+hPV2sYO0y+xJJmLaF-pPoynE2vqspfBg@mail.gmail.com> <CAEs2a6uHyvvghAMCN=UmhpJMoiES7zoPmGi-bATZWXgjA068Mg@mail.gmail.com> <YY0B4YxuMuw20umu@hephaistos.amsuess.com> <CAEs2a6utA=GQSx2Ln=5wnoNdS6z+0ExdCcfNXG6cAg=1MxnT=w@mail.gmail.com> <901541DC-A520-44CD-AA8D-F2CE77F03FA0@tzi.org> <CAEs2a6sZd4s-DJ3R_M4BLwO12s8i2AGfv0yXCaWdy+baOuAEqw@mail.gmail.com> <8CA1A63D-70B5-4109-ABE7-9CF9197F0375@tzi.org> <CAEs2a6uTKJ1DOTjREjKaRSY6kNAHSof97OoRAZbjDWOazLQC+A@mail.gmail.com> <CAEs2a6tY02haauD4OL18fp15Zet2bqkq+xVzEvAEiK5cvTpy2w@mail.gmail.com> <5C7719D8-8DCB-41BE-9111-882A02D43506@tzi.org> <CAEs2a6vVL9_wvrbwske80m5P5Y1xKw6_ecitDL9uybf2TsvWHw@mail.gmail.com> <CAEs2a6tW7K71wKfK-EerdntmyTppqDrz=Fjb7BfADXAkH5N3gA@mail.gmail.com> <CAM70yxB_YaRWccUk_UfLgxwd1gSUNxkDmaWfh-15wEiXsVe9Ng@mail.gmail.com>
In-Reply-To: <CAM70yxB_YaRWccUk_UfLgxwd1gSUNxkDmaWfh-15wEiXsVe9Ng@mail.gmail.com>
From: Kris Zyp <kriszyp@gmail.com>
Date: Wed, 1 Dec 2021 22:34:37 -0700
Message-ID: <CAEs2a6s3=jSb2N7+JHntApW9PWgBCUxV5TP5ej7vLfuR4T6fug@mail.gmail.com>
To: Emile Cormier <emile.cormier.jr@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, =?UTF-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>,  "cbor@ietf.org" <cbor@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000021dcc705d22326f1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/VKBA-7GXg6XjtbxvRQH_OuklT-U>
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: Thu, 02 Dec 2021 05:34:57 -0000

--00000000000021dcc705d22326f1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I certainly empathize with the idea of keeping tags as conceptually
distinct in terms of just adding some extra non-transformational semantic
description to the underlying CBOR data structure. However, there is a wide
range of "meanings" in tags, and realistically, with many, or even most
tags, you can't really "make sense" of a payload without the "semantic
meaning"; the meaning is what provides the direction for how to make sense
of the data. For many tags, something needs to understand the data beyond
just a raw CBOR structure.


Without the semantic meaning, there isn't data loss; raw CBOR structures
could always be transcoded to JSON or anything else (with conventions for
tags and such), but those basic data structures could still be (and needs
to be) interpreted by a decoder/app that understands how the tags encode
things like the distinction between a record and map to properly translate
to various language constructs (failure to distinguish these and conflating
them all into a single JSON object or map would be the real data loss). And
likewise there are many other tags that also have significant meaning for
interpretation, such as the packed-CBOR tags, tags 1-5, 28/29, 100, 256/25,
and I'm sure many more, that do not make useful sense without understanding
the tags. Of course a decoder can always simply defer interpretation of
tags and decode CBOR to a set of tags, array, maps, etc., and leave the
interpretation to a higher level component.


Thanks,

Kris



*From: *Emile Cormier <emile.cormier.jr@gmail.com>
*Sent: *December 1, 2021 4:57 PM
*To: *Kris Zyp <kriszyp@gmail.com>
*Cc: *Carsten Bormann <cabo@tzi.org>; Christian Ams=C3=BCss
<christian@amsuess.com>; cbor@ietf.org
*Subject: *Re: [Cbor] Record proposal



I'd like to point out that this proposal as it's currently written will
result in loss of information with CBOR decoders that don't understand the
tags, or when the data elements are transcoded to another protocol such as
JSON. This is due to the tags carrying information (record IDs) that the
application needs in order to make sense of the received payload. The
proposed tags do more than provide "semantic meaning"; they also carry
information.



This practice of bundling numeric information into the tags is making it so
that these CBOR items are not interoperable when transcoded to JSON (think
web browser), or when a CBOR decoder doesn't understand the tags and
doesn't propagate them up to the application.





On Mon, Nov 29, 2021 at 9:35 AM Kris Zyp <kriszyp@gmail.com> wrote:

To follow up, I did update the proposal/spec to use the tag id range
of 57342-57599. Let me know if you would prefer different ids.
Thanks,
Kris

On Wed, Nov 17, 2021 at 10:52 PM Kris Zyp <kriszyp@gmail.com> wrote:
>
> That sounds reasonable to me.
>
> To clarify a little bit of the rationale for this:
> The purpose of a global registry, as I understand it, is to define the
> global tag ids that need to be known by independent encoders and
> decoders prior to their encoding and decoding interaction. However,
> ids that can be communicated within a message for the scope of that
> message, don't require global allocation, if they are only used within
> a specified scope. This is just like in a programming language: a
> variable from an inner block may shadow another variable from an outer
> block or a global scope temporarily within its block without affecting
> the outer or global scope (this doesn't require any coordination with
> a registry of globals). And a decoder that really implements this
> proposal would, by definition, be implementing this behavior of
> temporary tag reassignment/shadowing, if it really is a true record
> implementation (i.e. a real record implementation wouldn't see
> gobbledygook if it is conformant).
>
> Also allowing dynamic/temporary allocation permits potential use of
> shorter/more efficient tag ids based on known use of other tags, and
> in the case of record references, these may occur much more frequently
> in a data item/document compared record definitions, and be much more
> sensitive to size differences. Furthermore, this also sidesteps issues
> with having to figure out the appropriate size of a range of ids to
> globally allocate. How many ids should be allocated? In terms of
> percentage of available space, registering/using 256 ids from the tag
> 1+2 range seems like it is effectively equivalent as registering 1 id
> from the tag 1+1 range (and tag 1+4 would definitely be undesirable
> due to the high frequency and sensitivity to size). And I have had
> users of my implementations say they need a few hundred structures to
> be defined and referenceable, so even 256 may be somewhat limiting to
> some users.
>
> But that being said, if you are thinking that it may be too onerous
> for (record) implementators to support this type of potentially
> dynamic/temporary tag reassignment with possibly conflicting ids (as
> opposed to using a more stable table of tags or tag ranges), I can
> understand that concern. What size of chunk of tag ids (above 32768)
> do you think would be appropriate to allocate? Would a chunk of 256 be
> reasonable?
>
> Anyway, thank you for your help and feedback!
> Thanks,
> Kris
>
>
>
> On Wed, Nov 17, 2021 at 1:52 PM Carsten Bormann <cabo@tzi.org> wrote:
> >
> > Hi Kris,
> >
> > thank you for the update.
> > I still need to take a closer look, but I have one immediate reaction:
> > You probably shouldn=E2=80=99t induce implementations to =E2=80=9Chijac=
k=E2=80=9D a tag number.
> > The handling of a tag number that has actually been allocated for
something else may be deeply embedded into the CBOR decoder; a record
implementation then would only see gobbledygook.
> > So I think we should allocate some space for tag-allocated tags =E2=80=
=94 I
don=E2=80=99t see a big problem with allocating a chunk above 32768 just fo=
r the
record proposal.
> >
> > Gr=C3=BC=C3=9Fe, Carsten
> >
> >
> > > On 2021-11-17, at 16:16, Kris Zyp <kriszyp@gmail.com> wrote:
> > >
> > > I have updated my tag registration proposal/submission at
> > > https://github.com/kriszyp/cbor-records to use 1+2 tag entries, which
> > > hopefully makes this a much less intrusive registry entry. I have als=
o
> > > updated the proposed tag definitions to also support up-front
> > > declaration of a set of record structure definitions for a data item
> > > ("around" that data item, like the packed approach, as you suggested)=
,
> > > in addition to the current inline record definitions (which can be
> > > scoped with record definitions and should follow a well-specified
> > > order for when they can be referenced by subsequent references). I
> > > hope this offers flexibility for encoders that have all structures
> > > known a-priori and streaming encoders (that do not), while still
> > > maintaining nearly the same mechanics for decoders. Let me know if yo=
u
> > > think this looks reasonable.
> > > Thank you!
> > > Kris
> > >
> > > On Thu, Nov 11, 2021 at 9:15 PM Kris Zyp <kriszyp@gmail.com> wrote:
> > >>
> > >>> Actually, stats would be very interesting.
> > >>> I was assuming that the 1+1 setup comes with a number of 1+2
referencing records, the hit from going to 1+2 there as well would be
relatively insignificant.
> > >>> Number are better than assumptions!
> > >>
> > >> You are definitely right, using 1+2 tag for defining records is
pretty
> > >> insignificant (around a quarter of percent in my tests). Anyway, I
put
> > >> together some tests comparing CBOR packed, record structures, and
> > >> combinations with a couple test data structures, with my library, fo=
r
> > >> the sake of further comparisons:
> > >> https://gist.github.com/kriszyp/b623b85d2dc25ac9e3b07d8f39df9307
> > >>
> > >> Anyway, seeing this, I am happy to go ahead and update my proposal t=
o
> > >> use a 1+2 tag for defining records. And thinking about this, I don't
> > >> think my proposal necessarily even needs to mandate the tag ids used
> > >> for referencing records since those are dynamically assigned and
> > >> explicitly specified by the encoder itself (encoder obviously must
not
> > >> conflict and use tag ids that will be used for other purposes),
albeit
> > >> can encourage a certain range (presumably from the first-come
> > >> first-serve range).
> > >>
> > >> Do you have any preference for a tag id to use? It looks like 279 is
> > >> the next in the contiguous block, but sounds like choosing aesthetic
> > >> characters is the new preference (29299/"rs" perhaps).
> > >>
> > >> Anyway, thanks again for the helpful feedback, really appreciate it!
> > >>
> > >> Thanks,
> > >> Kris
> > >
> > > _______________________________________________
> > > CBOR mailing list
> > > CBOR@ietf.org
> > > https://www.ietf.org/mailman/listinfo/cbor
> >

_______________________________________________
CBOR mailing list
CBOR@ietf.org
https://www.ietf.org/mailman/listinfo/cbor

--00000000000021dcc705d22326f1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div lang=3D"EN-CA" link=3D"blue" vlink=3D"#954F72" style=
=3D"word-wrap:break-word"><div class=3D"m_-7342144613652109812WordSection1"=
><p class=3D"MsoNormal"><u></u>I certainly empathize with the idea of keepi=
ng tags as conceptually distinct in terms of just adding some extra non-tra=
nsformational semantic description to the underlying CBOR data structure. H=
owever, there is a wide range of &quot;meanings&quot; in tags, and realisti=
cally, with many, or even most tags, you can&#39;t really &quot;make sense&=
quot; of a payload without the &quot;semantic meaning&quot;;=C2=A0the meani=
ng is what provides the direction for how to make sense of the data. For ma=
ny tags, something needs to understand the data beyond just a raw CBOR stru=
cture.</p><p class=3D"MsoNormal"><br></p><p class=3D"MsoNormal">Without the=
 semantic meaning, there isn&#39;t data loss; raw CBOR structures could alw=
ays be transcoded to JSON or anything else (with conventions for tags and s=
uch), but those basic data structures could=C2=A0still be (and needs to be)=
 interpreted by a decoder/app that understands how the tags encode things l=
ike the distinction between a record and map to properly translate to vario=
us language constructs (failure to distinguish these and conflating them al=
l into a single JSON object or map would be the real data loss). And likewi=
se there are many other tags that also have significant meaning for interpr=
etation, such as the packed-CBOR tags, tags 1-5, 28/29, 100, 256/25, and I&=
#39;m sure many more, that=C2=A0do not make useful sense without understand=
ing the tags. Of course a decoder can always simply defer interpretation of=
 tags and decode CBOR to a set of tags, array, maps, etc., and leave the in=
terpretation to a higher level component.<u></u></p><p class=3D"MsoNormal">=
<br></p><p class=3D"MsoNormal">Thanks,</p><p class=3D"MsoNormal">Kris</p><p=
 class=3D"MsoNormal"><a name=3D"m_-7342144613652109812__olk_signature"><spa=
n><u></u>=C2=A0<u></u></span></a></p><span></span><div style=3D"border:none=
;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class=3D"MsoN=
ormal" style=3D"border:none;padding:0cm"><a name=3D"m_-7342144613652109812_=
_olk_replyheader"><b>From: </b></a><a href=3D"mailto:emile.cormier.jr@gmail=
.com" target=3D"_blank"><span>Emile Cormier</span><span></span></a><span><b=
r><b>Sent: </b>December 1, 2021 4:57 PM<br><b>To: </b></span><a href=3D"mai=
lto:kriszyp@gmail.com" target=3D"_blank"><span>Kris Zyp</span><span></span>=
</a><span><br><b>Cc: </b></span><a href=3D"mailto:cabo@tzi.org" target=3D"_=
blank"><span>Carsten Bormann</span><span></span></a><span>; </span><a href=
=3D"mailto:christian@amsuess.com" target=3D"_blank"><span>Christian Ams=C3=
=BCss</span><span></span></a><span>; </span><a href=3D"mailto:cbor@ietf.org=
" target=3D"_blank"><span>cbor@ietf.org</span><span></span></a><span><br><b=
>Subject: </b>Re: [Cbor] Record proposal</span></p></div><p class=3D"MsoNor=
mal"><span><span><u></u>=C2=A0<u></u></span></span></p><span></span><div><d=
iv><p class=3D"MsoNormal">I&#39;d like to point out that this proposal as i=
t&#39;s currently written will result in loss of information with CBOR deco=
ders that don&#39;t understand the tags, or when the data elements are tran=
scoded to another protocol such as JSON. This is due to the tags carrying i=
nformation (record IDs) that the application needs in order to make sense o=
f the received payload. The proposed tags do more than provide &quot;semant=
ic meaning&quot;; they also carry information.</p></div><div><p class=3D"Ms=
oNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">This pra=
ctice of bundling numeric information into the tags is making it so that th=
ese CBOR items are not interoperable when transcoded to JSON (think web bro=
wser), or when a CBOR decoder doesn&#39;t understand the tags and doesn&#39=
;t propagate them up to the application.</p></div><p class=3D"MsoNormal"><u=
></u>=C2=A0<u></u></p></div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>=
<div><div><p class=3D"MsoNormal">On Mon, Nov 29, 2021 at 9:35 AM Kris Zyp &=
lt;<a href=3D"mailto:kriszyp@gmail.com" target=3D"_blank">kriszyp@gmail.com=
</a>&gt; wrote:</p></div></div><p class=3D"MsoNormal" style=3D"margin-left:=
4.8pt">To follow up, I did update the proposal/spec to use the tag id range=
<br>of 57342-57599. Let me know if you would prefer different ids.<br>Thank=
s,<br>Kris<br><br>On Wed, Nov 17, 2021 at 10:52 PM Kris Zyp &lt;<a href=3D"=
mailto:kriszyp@gmail.com" target=3D"_blank">kriszyp@gmail.com</a>&gt; wrote=
:<br>&gt;<br>&gt; That sounds reasonable to me.<br>&gt;<br>&gt; To clarify =
a little bit of the rationale for this:<br>&gt; The purpose of a global reg=
istry, as I understand it, is to define the<br>&gt; global tag ids that nee=
d to be known by independent encoders and<br>&gt; decoders prior to their e=
ncoding and decoding interaction. However,<br>&gt; ids that can be communic=
ated within a message for the scope of that<br>&gt; message, don&#39;t requ=
ire global allocation, if they are only used within<br>&gt; a specified sco=
pe. This is just like in a programming language: a<br>&gt; variable from an=
 inner block may shadow another variable from an outer<br>&gt; block or a g=
lobal scope temporarily within its block without affecting<br>&gt; the oute=
r or global scope (this doesn&#39;t require any coordination with<br>&gt; a=
 registry of globals). And a decoder that really implements this<br>&gt; pr=
oposal would, by definition, be implementing this behavior of<br>&gt; tempo=
rary tag reassignment/shadowing, if it really is a true record<br>&gt; impl=
ementation (i.e. a real record implementation wouldn&#39;t see<br>&gt; gobb=
ledygook if it is conformant).<br>&gt;<br>&gt; Also allowing dynamic/tempor=
ary allocation permits potential use of<br>&gt; shorter/more efficient tag =
ids based on known use of other tags, and<br>&gt; in the case of record ref=
erences, these may occur much more frequently<br>&gt; in a data item/docume=
nt compared record definitions, and be much more<br>&gt; sensitive to size =
differences. Furthermore, this also sidesteps issues<br>&gt; with having to=
 figure out the appropriate size of a range of ids to<br>&gt; globally allo=
cate. How many ids should be allocated? In terms of<br>&gt; percentage of a=
vailable space, registering/using 256 ids from the tag<br>&gt; 1+2 range se=
ems like it is effectively equivalent as registering 1 id<br>&gt; from the =
tag 1+1 range (and tag 1+4 would definitely be undesirable<br>&gt; due to t=
he high frequency and sensitivity to size). And I have had<br>&gt; users of=
 my implementations say they need a few hundred structures to<br>&gt; be de=
fined and referenceable, so even 256 may be somewhat limiting to<br>&gt; so=
me users.<br>&gt;<br>&gt; But that being said, if you are thinking that it =
may be too onerous<br>&gt; for (record) implementators to support this type=
 of potentially<br>&gt; dynamic/temporary tag reassignment with possibly co=
nflicting ids (as<br>&gt; opposed to using a more stable table of tags or t=
ag ranges), I can<br>&gt; understand that concern. What size of chunk of ta=
g ids (above 32768)<br>&gt; do you think would be appropriate to allocate? =
Would a chunk of 256 be<br>&gt; reasonable?<br>&gt;<br>&gt; Anyway, thank y=
ou for your help and feedback!<br>&gt; Thanks,<br>&gt; Kris<br>&gt;<br>&gt;=
<br>&gt;<br>&gt; On Wed, Nov 17, 2021 at 1:52 PM Carsten Bormann &lt;<a hre=
f=3D"mailto:cabo@tzi.org" target=3D"_blank">cabo@tzi.org</a>&gt; wrote:<br>=
&gt; &gt;<br>&gt; &gt; Hi Kris,<br>&gt; &gt;<br>&gt; &gt; thank you for the=
 update.<br>&gt; &gt; I still need to take a closer look, but I have one im=
mediate reaction:<br>&gt; &gt; You probably shouldn=E2=80=99t induce implem=
entations to =E2=80=9Chijack=E2=80=9D a tag number.<br>&gt; &gt; The handli=
ng of a tag number that has actually been allocated for something else may =
be deeply embedded into the CBOR decoder; a record implementation then woul=
d only see gobbledygook.<br>&gt; &gt; So I think we should allocate some sp=
ace for tag-allocated tags =E2=80=94 I don=E2=80=99t see a big problem with=
 allocating a chunk above 32768 just for the record proposal.<br>&gt; &gt;<=
br>&gt; &gt; Gr=C3=BC=C3=9Fe, Carsten<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt=
; &gt; On 2021-11-17, at 16:16, Kris Zyp &lt;<a href=3D"mailto:kriszyp@gmai=
l.com" target=3D"_blank">kriszyp@gmail.com</a>&gt; wrote:<br>&gt; &gt; &gt;=
<br>&gt; &gt; &gt; I have updated my tag registration proposal/submission a=
t<br>&gt; &gt; &gt; <a href=3D"https://github.com/kriszyp/cbor-records" tar=
get=3D"_blank">https://github.com/kriszyp/cbor-records</a> to use 1+2 tag e=
ntries, which<br>&gt; &gt; &gt; hopefully makes this a much less intrusive =
registry entry. I have also<br>&gt; &gt; &gt; updated the proposed tag defi=
nitions to also support up-front<br>&gt; &gt; &gt; declaration of a set of =
record structure definitions for a data item<br>&gt; &gt; &gt; (&quot;aroun=
d&quot; that data item, like the packed approach, as you suggested),<br>&gt=
; &gt; &gt; in addition to the current inline record definitions (which can=
 be<br>&gt; &gt; &gt; scoped with record definitions and should follow a we=
ll-specified<br>&gt; &gt; &gt; order for when they can be referenced by sub=
sequent references). I<br>&gt; &gt; &gt; hope this offers flexibility for e=
ncoders that have all structures<br>&gt; &gt; &gt; known a-priori and strea=
ming encoders (that do not), while still<br>&gt; &gt; &gt; maintaining near=
ly the same mechanics for decoders. Let me know if you<br>&gt; &gt; &gt; th=
ink this looks reasonable.<br>&gt; &gt; &gt; Thank you!<br>&gt; &gt; &gt; K=
ris<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; On Thu, Nov 11, 2021 at 9:15 PM Kri=
s Zyp &lt;<a href=3D"mailto:kriszyp@gmail.com" target=3D"_blank">kriszyp@gm=
ail.com</a>&gt; wrote:<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&gt; Actu=
ally, stats would be very interesting.<br>&gt; &gt; &gt;&gt;&gt; I was assu=
ming that the 1+1 setup comes with a number of 1+2 referencing records, the=
 hit from going to 1+2 there as well would be relatively insignificant.<br>=
&gt; &gt; &gt;&gt;&gt; Number are better than assumptions!<br>&gt; &gt; &gt=
;&gt;<br>&gt; &gt; &gt;&gt; You are definitely right, using 1+2 tag for def=
ining records is pretty<br>&gt; &gt; &gt;&gt; insignificant (around a quart=
er of percent in my tests). Anyway, I put<br>&gt; &gt; &gt;&gt; together so=
me tests comparing CBOR packed, record structures, and<br>&gt; &gt; &gt;&gt=
; combinations with a couple test data structures, with my library, for<br>=
&gt; &gt; &gt;&gt; the sake of further comparisons:<br>&gt; &gt; &gt;&gt; <=
a href=3D"https://gist.github.com/kriszyp/b623b85d2dc25ac9e3b07d8f39df9307"=
 target=3D"_blank">https://gist.github.com/kriszyp/b623b85d2dc25ac9e3b07d8f=
39df9307</a><br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; Anyway, seeing thi=
s, I am happy to go ahead and update my proposal to<br>&gt; &gt; &gt;&gt; u=
se a 1+2 tag for defining records. And thinking about this, I don&#39;t<br>=
&gt; &gt; &gt;&gt; think my proposal necessarily even needs to mandate the =
tag ids used<br>&gt; &gt; &gt;&gt; for referencing records since those are =
dynamically assigned and<br>&gt; &gt; &gt;&gt; explicitly specified by the =
encoder itself (encoder obviously must not<br>&gt; &gt; &gt;&gt; conflict a=
nd use tag ids that will be used for other purposes), albeit<br>&gt; &gt; &=
gt;&gt; can encourage a certain range (presumably from the first-come<br>&g=
t; &gt; &gt;&gt; first-serve range).<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt=
;&gt; Do you have any preference for a tag id to use? It looks like 279 is<=
br>&gt; &gt; &gt;&gt; the next in the contiguous block, but sounds like cho=
osing aesthetic<br>&gt; &gt; &gt;&gt; characters is the new preference (292=
99/&quot;rs&quot; perhaps).<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; Any=
way, thanks again for the helpful feedback, really appreciate it!<br>&gt; &=
gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; Thanks,<br>&gt; &gt; &gt;&gt; Kris<br>&g=
t; &gt; &gt;<br>&gt; &gt; &gt; ____________________________________________=
___<br>&gt; &gt; &gt; CBOR mailing list<br>&gt; &gt; &gt; <a href=3D"mailto=
:CBOR@ietf.org" target=3D"_blank">CBOR@ietf.org</a><br>&gt; &gt; &gt; <a hr=
ef=3D"https://www.ietf.org/mailman/listinfo/cbor" target=3D"_blank">https:/=
/www.ietf.org/mailman/listinfo/cbor</a><br>&gt; &gt;<br><br>_______________=
________________________________<br>CBOR mailing list<br><a href=3D"mailto:=
CBOR@ietf.org" target=3D"_blank">CBOR@ietf.org</a><br><a href=3D"https://ww=
w.ietf.org/mailman/listinfo/cbor" target=3D"_blank">https://www.ietf.org/ma=
ilman/listinfo/cbor</a></p><p class=3D"MsoNormal"><span><u></u>=C2=A0<u></u=
></span></p></div></div></div>

--00000000000021dcc705d22326f1--


From nobody Wed Dec  1 22:18:48 2021
Return-Path: <emile.cormier.jr@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 EC2213A0AFE for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 22:18:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level: 
X-Spam-Status: No, score=-2.098 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, HTML_MESSAGE=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 Eyelx-4WG8oT for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 22:18:43 -0800 (PST)
Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) (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 44AEF3A0AFB for <cbor@ietf.org>; Wed,  1 Dec 2021 22:18:43 -0800 (PST)
Received: by mail-yb1-xb33.google.com with SMTP id d10so70407586ybe.3 for <cbor@ietf.org>; Wed, 01 Dec 2021 22:18:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yZs4hsPPRo2diyOwcvDRsrXmugRNIoyTVd+/+ybKrBk=; b=H29J4ANh87/US/LG/qZE3N3d5wZY9IiX1m7hSrg4lZwwqyhConq0I4+DHRt0ZyFchK 6sH+eX+zlU+z8gaSdF0OtFkxaFJomKDnbsJMKh62HKebn6AL0vFK+ZNQUQIXedjORMJH CwdzxHwkzdMkNoQo0sw785VxOa5JNUziFvgBiyw9hMGaEhix/pqzf5BtHHSKya5S6gk7 qoIzWPDDVx+15m+c+nGIS/3Q3FaS3CzkJAvNIg/SynWSvWiH790L6Xj97No/Ti0j0qgW mmJwUwDGywmE1CEFx+EHIHa+zpjBExvAGYqUnaDdmWgE/R16bjszL/bKa3PoADHqoBWi zkPQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yZs4hsPPRo2diyOwcvDRsrXmugRNIoyTVd+/+ybKrBk=; b=tKNKvBBwawO+ueQpug6YpljZzICgnJYIzytL7XgByIPGErm3I3SRQLjByAau1z3fFO SioSPUteXzJRf41ZAVpLEluZht0Rvu404EkA3mFqUeQdtWPxORz9YqJzRDMVCJQbtujZ XKNekiliEj51R7tEoczUjKL3faaaWtZ65rNilv2/vyxprKYVrpMD2wUabSoTQdZt6IA3 iY7RiVviBdXDPaSy1J4HmsM2JRju21Su3VEAPoXDuQ6FaCykKhz/iL1m47Ojvv821etE Y8RADKldnX7pngpziEwTaVwfkqlkcQt95W1lFlAliLCgXAzpY9BB1HamH82qddtHG3LE 5LZA==
X-Gm-Message-State: AOAM533m+EMx4Xx/SFSG/qAFuSyphEhDcObqthwm8eLrl+8dFv4IAnXH 8xv4oJusxH1eM+j5nkFkyg612CSjOlmKeBYo2V4/foWMcvQ=
X-Google-Smtp-Source: ABdhPJx+2rq8cUqozxoaO+Ps38fnvMgmDQXGfC1jtZ21NQTJHiN43BueDgnUMev7kfTd/fmm3/u6lLpEXpx+YxdfHm4=
X-Received: by 2002:a25:bfca:: with SMTP id q10mr12370142ybm.68.1638425920898;  Wed, 01 Dec 2021 22:18:40 -0800 (PST)
MIME-Version: 1.0
References: <CAEs2a6vNhrHhaiPUNtbJ68WYfbrprETPr+kmWNJgNXMSawyBig@mail.gmail.com> <E3F121DA-95EE-43C6-BC72-E3763C034944@tzi.org> <CAEs2a6uZrT9FFP6qa+hPV2sYO0y+xJJmLaF-pPoynE2vqspfBg@mail.gmail.com> <CAEs2a6uHyvvghAMCN=UmhpJMoiES7zoPmGi-bATZWXgjA068Mg@mail.gmail.com> <YY0B4YxuMuw20umu@hephaistos.amsuess.com> <CAEs2a6utA=GQSx2Ln=5wnoNdS6z+0ExdCcfNXG6cAg=1MxnT=w@mail.gmail.com> <901541DC-A520-44CD-AA8D-F2CE77F03FA0@tzi.org> <CAEs2a6sZd4s-DJ3R_M4BLwO12s8i2AGfv0yXCaWdy+baOuAEqw@mail.gmail.com> <8CA1A63D-70B5-4109-ABE7-9CF9197F0375@tzi.org> <CAEs2a6uTKJ1DOTjREjKaRSY6kNAHSof97OoRAZbjDWOazLQC+A@mail.gmail.com> <CAEs2a6tY02haauD4OL18fp15Zet2bqkq+xVzEvAEiK5cvTpy2w@mail.gmail.com> <5C7719D8-8DCB-41BE-9111-882A02D43506@tzi.org> <CAEs2a6vVL9_wvrbwske80m5P5Y1xKw6_ecitDL9uybf2TsvWHw@mail.gmail.com> <CAEs2a6tW7K71wKfK-EerdntmyTppqDrz=Fjb7BfADXAkH5N3gA@mail.gmail.com> <CAM70yxB_YaRWccUk_UfLgxwd1gSUNxkDmaWfh-15wEiXsVe9Ng@mail.gmail.com> <CAEs2a6s3=jSb2N7+JHntApW9PWgBCUxV5TP5ej7vLfuR4T6fug@mail.gmail.com>
In-Reply-To: <CAEs2a6s3=jSb2N7+JHntApW9PWgBCUxV5TP5ej7vLfuR4T6fug@mail.gmail.com>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Thu, 2 Dec 2021 02:18:29 -0400
Message-ID: <CAM70yxDJFiv=skuU4=vkos9Zk1JpqQ+6xGGDFj6+Tb6gqCdKFg@mail.gmail.com>
To: Kris Zyp <kriszyp@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, =?UTF-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>,  "cbor@ietf.org" <cbor@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000018c8505d223c349"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/NJZ05AWEDeiNfg4MV6NbL942wIM>
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: Thu, 02 Dec 2021 06:18:46 -0000

--000000000000018c8505d223c349
Content-Type: text/plain; charset="UTF-8"

On Thu, Dec 2, 2021 at 1:34 AM Kris Zyp <kriszyp@gmail.com> wrote:

> I certainly empathize with the idea of keeping tags as conceptually
> distinct in terms of just adding some extra non-transformational semantic
> description to the underlying CBOR data structure. However, there is a wide
> range of "meanings" in tags, and realistically, with many, or even most
> tags, you can't really "make sense" of a payload without the "semantic
> meaning"; the meaning is what provides the direction for how to make sense
> of the data. For many tags, something needs to understand the data beyond
> just a raw CBOR structure.
>

But it should be possible for applications to agree in advance on the
meaning of the data and still be able to interpret it in the absence of
tags. This practice of embedding an extra number via a tag range is ruining
this ability for applications to agree in advance on the meaning of the
data in the absence of tags.

Your proposed tag range of 57344 - 57599 could simply be replaced by a
single tag followed by an array of size 2. The first element of that array
would be the record ID that would otherwise be encoded via the tag value.
In this way, an application expecting a record set would still be able to
interpret the data in the absence of tags, because the record IDs appear
explicitly in the data.

In section 3.4 of the spec, it says: "If a tag requires further structure
to its content, this structure is *provided by the enclosed data item*."
(emphasis mine). This clause is being violated by tags that rely on tag
range to convey additional data.


> Without the semantic meaning, there isn't data loss; raw CBOR structures
> could always be transcoded to JSON or anything else (with conventions for
> tags and such)
>

Well, that's the problem: there is no convention for tags in JSON. A
CBOR-to-JSON converter now needs to understand your record set tags, and
generate a modified structure for JSON that contains the record IDs that
would otherwise be lost.

This practice of using a tag range to avoid the few measly bytes of a
two-element tuple is making it so that once an application adopts these
tags, it can never switch to another encoding other than CBOR.

I'm afraid CBOR can no longer be considered as the binary equivalent of
JSON plus byte arrays. Instead of tags enhancing data with semantic meaning
hints, it's effectively extending the number of data types. This is what
I've realized with signed CBOR bignums which also rely on tag ranges (a
range of two): they are now a new data type that my decoder needs to
interpret if I don't want the application layer to be concerned with tags.

--000000000000018c8505d223c349
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail=
_attr">On Thu, Dec 2, 2021 at 1:34 AM Kris Zyp &lt;<a href=3D"mailto:kriszy=
p@gmail.com">kriszyp@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D=
"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(2=
04,204,204);padding-left:1ex"><div dir=3D"ltr"><div style=3D"overflow-wrap:=
 break-word;" lang=3D"EN-CA"><div><p class=3D"MsoNormal"><u></u>I certainly=
 empathize with the idea of keeping tags as conceptually distinct in terms =
of just adding some extra non-transformational semantic description to the =
underlying CBOR data structure. However, there is a wide range of &quot;mea=
nings&quot; in tags, and realistically, with many, or even most tags, you c=
an&#39;t really &quot;make sense&quot; of a payload without the &quot;seman=
tic meaning&quot;;=C2=A0the meaning is what provides the direction for how =
to make sense of the data. For many tags, something needs to understand the=
 data beyond just a raw CBOR structure.</p></div></div></div></blockquote><=
div><br></div><div>But it should be possible for applications to agree in a=
dvance on the meaning of the data and still be able to interpret it in the =
absence of tags. This practice of embedding an extra number via a tag range=
 is ruining this ability for applications to agree in advance on the meanin=
g of the data in the absence of tags.</div><div><br></div><div>Your propose=
d tag range of 57344 - 57599 could simply be replaced by a single tag follo=
wed by an array of size 2. The first element of that array would be the rec=
ord ID that would otherwise be encoded via the tag value. In this way, an a=
pplication expecting a record set would still be able to interpret the data=
 in the absence of tags, because the record IDs appear explicitly in the da=
ta.</div><div><br></div><div>In section 3.4 of the spec, it says: &quot;If =
a tag requires further structure to its content, this structure is
<b>provided by the enclosed data item</b>.&quot; (emphasis mine). This clau=
se is being violated by tags that rely on tag range to convey additional da=
ta.<br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:=
1ex"><div dir=3D"ltr"><div style=3D"overflow-wrap: break-word;" lang=3D"EN-=
CA"><div><p class=3D"MsoNormal"></p><p class=3D"MsoNormal">Without the sema=
ntic meaning, there isn&#39;t data loss; raw CBOR structures could always b=
e transcoded to JSON or anything else (with conventions for tags and such)<=
/p></div></div></div></blockquote><div><br></div><div>Well, that&#39;s the =
problem: there is no convention for tags in JSON. A CBOR-to-JSON converter =
now needs to understand your record set tags, and generate a modified struc=
ture for JSON that contains the record IDs that would otherwise be lost.</d=
iv><div><br></div><div>This practice of using a tag range to avoid the few =
measly bytes of a two-element tuple is making it so that once an applicatio=
n adopts these tags, it can never switch to another encoding other than CBO=
R.</div><div><br></div><div>I&#39;m afraid CBOR can no longer be considered=
 as the binary equivalent of JSON plus byte arrays. Instead of tags enhanci=
ng data with semantic meaning hints, it&#39;s effectively extending the num=
ber of data types. This is what I&#39;ve realized with signed CBOR bignums =
which also rely on tag ranges (a range of two): they are now a new data typ=
e that my decoder needs to interpret if I don&#39;t want the application la=
yer to be concerned with tags.</div><div><p class=3D"MsoNormal"><a name=3D"=
m_8788745808277214149_m_-7342144613652109812__olk_signature"></a><span></sp=
an></p></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>

--000000000000018c8505d223c349--


From nobody Wed Dec  1 23:35:35 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 9E2CC3A0C38 for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 23:35:33 -0800 (PST)
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 hoTvmrYOiP5x for <cbor@ietfa.amsl.com>; Wed,  1 Dec 2021 23:35:29 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E41173A0C39 for <cbor@ietf.org>; Wed,  1 Dec 2021 23:35:26 -0800 (PST)
Received: from smtpclient.apple (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4J4SRG517fz2yHr; Thu,  2 Dec 2021 08:35:22 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CAM70yxDJFiv=skuU4=vkos9Zk1JpqQ+6xGGDFj6+Tb6gqCdKFg@mail.gmail.com>
Date: Thu, 2 Dec 2021 08:35:22 +0100
Cc: Kris Zyp <kriszyp@gmail.com>, =?utf-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>, "cbor@ietf.org" <cbor@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <7AF3052A-3B03-4F8A-988D-9F7228001C91@tzi.org>
References: <CAEs2a6vNhrHhaiPUNtbJ68WYfbrprETPr+kmWNJgNXMSawyBig@mail.gmail.com> <E3F121DA-95EE-43C6-BC72-E3763C034944@tzi.org> <CAEs2a6uZrT9FFP6qa+hPV2sYO0y+xJJmLaF-pPoynE2vqspfBg@mail.gmail.com> <CAEs2a6uHyvvghAMCN=UmhpJMoiES7zoPmGi-bATZWXgjA068Mg@mail.gmail.com> <YY0B4YxuMuw20umu@hephaistos.amsuess.com> <CAEs2a6utA=GQSx2Ln=5wnoNdS6z+0ExdCcfNXG6cAg=1MxnT=w@mail.gmail.com> <901541DC-A520-44CD-AA8D-F2CE77F03FA0@tzi.org> <CAEs2a6sZd4s-DJ3R_M4BLwO12s8i2AGfv0yXCaWdy+baOuAEqw@mail.gmail.com> <8CA1A63D-70B5-4109-ABE7-9CF9197F0375@tzi.org> <CAEs2a6uTKJ1DOTjREjKaRSY6kNAHSof97OoRAZbjDWOazLQC+A@mail.gmail.com> <CAEs2a6tY02haauD4OL18fp15Zet2bqkq+xVzEvAEiK5cvTpy2w@mail.gmail.com> <5C7719D8-8DCB-41BE-9111-882A02D43506@tzi.org> <CAEs2a6vVL9_wvrbwske80m5P5Y1xKw6_ecitDL9uybf2TsvWHw@mail.gmail.com> <CAEs2a6tW7K71wKfK-EerdntmyTppqDrz=Fjb7BfADXAkH5N3gA@mail.gmail.com> <CAM70yxB_YaRWccUk_UfLgxwd1gSUNxkDmaWfh-15wEiXsVe9Ng@mail.gmail.com> <CAEs2a6s3=jSb2N7+JHntApW9PWgBCUxV5TP5ej7vLfuR4T6fug@mail.gmail.com> <CAM70yxDJFiv=skuU4=vkos9Zk1JpqQ+6xGGDFj6+Tb6gqCdKFg@mail.gmail.com>
To: Emile Cormier <emile.cormier.jr@gmail.com>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/O5z0gTMOwtj6jBQRlq0Jm88WEjw>
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: Thu, 02 Dec 2021 07:35:34 -0000

On 2. Dec 2021, at 07:18, Emile Cormier <emile.cormier.jr@gmail.com> =
wrote:
>=20
> On Thu, Dec 2, 2021 at 1:34 AM Kris Zyp <kriszyp@gmail.com> wrote:
> I certainly empathize with the idea of keeping tags as conceptually =
distinct in terms of just adding some extra non-transformational =
semantic description to the underlying CBOR data structure. However, =
there is a wide range of "meanings" in tags, and realistically, with =
many, or even most tags, you can't really "make sense" of a payload =
without the "semantic meaning"; the meaning is what provides the =
direction for how to make sense of the data. For many tags, something =
needs to understand the data beyond just a raw CBOR structure.
>=20
>=20
> But it should be possible for applications to agree in advance on the =
meaning of the data and still be able to interpret it in the absence of =
tags.

I do not agree that this is a worthwhile goal.
Ensuring this causes gymnastics that simply does not provide that much =
benefit.

> This practice of embedding an extra number via a tag range is ruining =
this ability for applications to agree in advance on the meaning of the =
data in the absence of tags.

There is no rule that CBOR data need to make sense after removal of =
tags.

For instance, in YANG-CBOR [1], tag 47 means that a given map key is an =
absolute SID, not a relative SID delta.
An implementation that discards these tags is not going to work very =
well.

[1]: https://www.ietf.org/archive/id/draft-ietf-core-yang-cbor-17.html
[2]: =
https://www.ietf.org/archive/id/draft-ietf-core-yang-cbor-17.html#sid

> Your proposed tag range of 57344 - 57599 could simply be replaced by a =
single tag followed by an array of size 2.

Yes.  Encoding this needs some additional bytes.

> In section 3.4 of the spec, it says: "If a tag requires further =
structure to its content, this structure is provided by the enclosed =
data item." (emphasis mine). This clause is being violated by tags that =
rely on tag range to convey additional data.

No, a tag that expresses information in its tag number simply may not =
"require further structure to its content=E2=80=9D, so the cited =
statement of fact simply doesn=E2=80=99t apply.

> Without the semantic meaning, there isn't data loss; raw CBOR =
structures could always be transcoded to JSON or anything else (with =
conventions for tags and such)

That doesn=E2=80=99t work in general: An array with two elements could =
be a valid data item as well, so you get ambiguity.
Tags provide with a clean way to extend the data model.

I think you are better off accepting that the CBOR generic data model is =
a superset of that of JSON.

> Well, that's the problem: there is no convention for tags in JSON. A =
CBOR-to-JSON converter now needs to understand your record set tags, and =
generate a modified structure for JSON that contains the record IDs that =
would otherwise be lost.

Generic CBOR-to-JSON converters very well can be designed so they are =
round-trippable without information loss (*).
It=E2=80=99s just a bit ugly.

> This practice of using a tag range to avoid the few measly bytes of a =
two-element tuple is making it so that once an application adopts these =
tags, it can never switch to another encoding other than CBOR.

I don=E2=80=99t know why it would want to, but it can, see above.

> I'm afraid CBOR can no longer be considered as the binary equivalent =
of JSON plus byte arrays.

It never was!
A simplistic view of its generic data model is JSON plus bytes plus =
extensibility via tags.

> Instead of tags enhancing data with semantic meaning hints, it's =
effectively extending the number of data types.

Yes!

> This is what I've realized with signed CBOR bignums which also rely on =
tag ranges (a range of two): they are now a new data type that my =
decoder needs to interpret if I don't want the application layer to be =
concerned with tags.

Handling tags inside generic codecs is definitely one implementation =
strategy; it requires the tagged information to be representable by =
platform types (which often is not a problem for bignums).  I=E2=80=99m =
not sure how a platform type for Kris=E2=80=99 records would look like; =
I=E2=80=99m sure one can be defined in many platforms.

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

(*): E.g., see =
https://github.com/cabo/cbor-diag/blob/master/lib/cbor-transform-j.rb
This isn=E2=80=99t perfect (it would also need code to handle certain =
strings to obtain full data transparency), but it was good enough for =
one application.


From nobody Thu Dec  2 01:49:15 2021
Return-Path: <emile.cormier.jr@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 666873A0D7B for <cbor@ietfa.amsl.com>; Thu,  2 Dec 2021 01:49:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level: 
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 w2RRlW9TmUFn for <cbor@ietfa.amsl.com>; Thu,  2 Dec 2021 01:49:08 -0800 (PST)
Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) (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 C06DC3A0854 for <cbor@ietf.org>; Thu,  2 Dec 2021 01:49:08 -0800 (PST)
Received: by mail-yb1-xb36.google.com with SMTP id d10so71702768ybe.3 for <cbor@ietf.org>; Thu, 02 Dec 2021 01:49:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0tAmoxQ4oUpZNnNmDpF7/zZr78MQfNTW9QEP9Hmxv9w=; b=Ubm7UBXxBQGdUUnBAuxv90XA2tYpzjXatg//FIeZYHYrxmFmRK7tiIPOe2M6/3JB4n rODHZjYwcfGNaN/Hw+1xRpXplHJsSE5D3w4i8DcrNEgYMbrZ22WmaiSTcNQH6QAjKyN6 h1YC/juBgcUHdo0y/PKYtdF6heUB/8CNKqOUIaugrCjiE4IEGX+Z2gdhybsBx9JtyrEf w7hmPqZ5Lw1g9iJa0apEtpvs4q/x4rcq+JNkYFhF2g7gnsvdelpl9bMgecX2aKwHGJxF ccKkTJLFS+xmesWyoWAkUJSP3CEMkbVlKYWKE1fQYqL4sb4DN4wZMvVovRfjWQsGrXDh n9kg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0tAmoxQ4oUpZNnNmDpF7/zZr78MQfNTW9QEP9Hmxv9w=; b=gGTXnmJsW64Io27qbxChvB1xREXRin4M9vYLQ2CzntKZIXGzl1EGSwNJPhoHfHkjZa kIz0wEMvWJ+AvIg9Z/7oRqYvaekrq31dBfOICLTRuZJiYiUYkFzGEfY2sbqixZsZL08B TWlgCz87ebi/Ibzimm/H5ZvlBkJwbFK3aAKO8xPSIp8dHmKQ83Bkx955Zw0/Qn5hI0U4 RL9J7qdwEHgbkJQ55gXSEXoWDE7CZwYSc/MbCx4pn+1hRGGrgQM7bhI/6o7WhGUyhob0 ULTlMgGgoek7Dd0QOHkJDFwZp0Dn1HZWSzCIES0yfxlDNLNntpbEeqU7ICAOJuCgvnq2 jIRw==
X-Gm-Message-State: AOAM530ppN3nlBUHBapGy7G2r1lrSbt/2HoGcR/gk+/SVxA3xnFakemC gPiWtigzdaVDLW7sAf3NwVi8sauJ6hyNbr1XkV4=
X-Google-Smtp-Source: ABdhPJzatbdvzLubmKcjG6DV9itC2vMzZZ22qngkogouTA66RxD7vr/5gkbQ+w+Uh01nIul1vrI70LdKvy1m/BOJOV8=
X-Received: by 2002:a25:bfca:: with SMTP id q10mr13280970ybm.68.1638438545289;  Thu, 02 Dec 2021 01:49:05 -0800 (PST)
MIME-Version: 1.0
References: <CAEs2a6vNhrHhaiPUNtbJ68WYfbrprETPr+kmWNJgNXMSawyBig@mail.gmail.com> <E3F121DA-95EE-43C6-BC72-E3763C034944@tzi.org> <CAEs2a6uZrT9FFP6qa+hPV2sYO0y+xJJmLaF-pPoynE2vqspfBg@mail.gmail.com> <CAEs2a6uHyvvghAMCN=UmhpJMoiES7zoPmGi-bATZWXgjA068Mg@mail.gmail.com> <YY0B4YxuMuw20umu@hephaistos.amsuess.com> <CAEs2a6utA=GQSx2Ln=5wnoNdS6z+0ExdCcfNXG6cAg=1MxnT=w@mail.gmail.com> <901541DC-A520-44CD-AA8D-F2CE77F03FA0@tzi.org> <CAEs2a6sZd4s-DJ3R_M4BLwO12s8i2AGfv0yXCaWdy+baOuAEqw@mail.gmail.com> <8CA1A63D-70B5-4109-ABE7-9CF9197F0375@tzi.org> <CAEs2a6uTKJ1DOTjREjKaRSY6kNAHSof97OoRAZbjDWOazLQC+A@mail.gmail.com> <CAEs2a6tY02haauD4OL18fp15Zet2bqkq+xVzEvAEiK5cvTpy2w@mail.gmail.com> <5C7719D8-8DCB-41BE-9111-882A02D43506@tzi.org> <CAEs2a6vVL9_wvrbwske80m5P5Y1xKw6_ecitDL9uybf2TsvWHw@mail.gmail.com> <CAEs2a6tW7K71wKfK-EerdntmyTppqDrz=Fjb7BfADXAkH5N3gA@mail.gmail.com> <CAM70yxB_YaRWccUk_UfLgxwd1gSUNxkDmaWfh-15wEiXsVe9Ng@mail.gmail.com> <CAEs2a6s3=jSb2N7+JHntApW9PWgBCUxV5TP5ej7vLfuR4T6fug@mail.gmail.com> <CAM70yxDJFiv=skuU4=vkos9Zk1JpqQ+6xGGDFj6+Tb6gqCdKFg@mail.gmail.com> <7AF3052A-3B03-4F8A-988D-9F7228001C91@tzi.org>
In-Reply-To: <7AF3052A-3B03-4F8A-988D-9F7228001C91@tzi.org>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Thu, 2 Dec 2021 05:48:54 -0400
Message-ID: <CAM70yxBhyXTGLegrQVFGu1pxKcZDfd6Q+oYDcoyotSPNAun0oA@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: =?UTF-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>,  "cbor@ietf.org" <cbor@ietf.org>, Kris Zyp <kriszyp@gmail.com>
Content-Type: multipart/alternative; boundary="0000000000007a7a3805d226b3d1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Y4pWCyNEpSd8dn6cO3t7FR1YcS8>
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: Thu, 02 Dec 2021 09:49:14 -0000

--0000000000007a7a3805d226b3d1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 2, 2021 at 3:35 AM Carsten Bormann <cabo@tzi.org> wrote:


> > Without the semantic meaning, there isn't data loss; raw CBOR structure=
s
> could always be transcoded to JSON or anything else (with conventions for
> tags and such)
>
> That doesn=E2=80=99t work in general: An array with two elements could be=
 a valid
> data item as well, so you get ambiguity.
> Tags provide with a clean way to extend the data model.
>

For the record, the "Without the semantic meaning, there isn't data
loss..." remark was by Kris, not me.

I think it would have been cleaner for extensions to the data model to be
done purely in terms of the core data model. All tags should do is
*identify* the new data type and not provide a few extra bytes of storage
to that new data type.

Well it seems the genie is out of the bottle in terms of tag ranges being
used to "cheaply" store a few bytes of extra information and I'm not going
to convince you of putting the genie back in. :-)

--0000000000007a7a3805d226b3d1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail=
_attr">On Thu, Dec 2, 2021 at 3:35 AM Carsten Bormann &lt;<a href=3D"mailto=
:cabo@tzi.org">cabo@tzi.org</a>&gt; wrote:<br></div><div>=C2=A0</div><block=
quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1=
px solid rgb(204,204,204);padding-left:1ex">
&gt; Without the semantic meaning, there isn&#39;t data loss; raw CBOR stru=
ctures could always be transcoded to JSON or anything else (with convention=
s for tags and such)<br>
<br>
That doesn=E2=80=99t work in general: An array with two elements could be a=
 valid data item as well, so you get ambiguity.<br>
Tags provide with a clean way to extend the data model.<br></blockquote><di=
v><br></div><div>For the record, the &quot;Without the semantic meaning, th=
ere isn&#39;t data loss...&quot; remark was by Kris, not me.<br></div><div>=
<br></div><div>I think it would have been cleaner for extensions to the dat=
a model to be done purely in terms of the core data model. All tags should =
do is *identify* the new data type and not provide a few extra bytes of sto=
rage to that new data type.<br></div><div><br></div><div>Well it seems the =
genie is out of the bottle in terms of tag ranges being used to &quot;cheap=
ly&quot; store a few bytes of extra information and I&#39;m not going to co=
nvince you of putting the genie back in. :-)<br></div></div></div>

--0000000000007a7a3805d226b3d1--


From nobody Tue Dec  7 13:12:46 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 8915B3A18DD for <cbor@ietfa.amsl.com>; Tue,  7 Dec 2021 13:12:44 -0800 (PST)
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 U24MU48dCcg1 for <cbor@ietfa.amsl.com>; Tue,  7 Dec 2021 13:12:39 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4F0303A18DA for <cbor@ietf.org>; Tue,  7 Dec 2021 13:12:37 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4J7tKs6wb6zDCd0; Tue,  7 Dec 2021 22:12:33 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
Date: Tue, 7 Dec 2021 22:12:33 +0100
X-Mao-Original-Outgoing-Id: 660604353.458914-e0e39bf85328bff5d0e0ff7c0abf7a04
Content-Transfer-Encoding: quoted-printable
Message-Id: <BD71DE08-ABB4-445E-9215-AB8144F5A087@tzi.org>
References: <077EDC59-74CE-42B4-B651-BA8846719CD9@tzi.org>
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/dNulH3PiCf4AMVhX9nmtVKqiYLI>
Subject: [Cbor] Glitch in cddl-control AUTH48
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, 07 Dec 2021 21:12:45 -0000

Hi,

In the last step (=E2=80=9CAUTH48=E2=80=9D) before a document like =
cddl-control becomes an RFC, the author(s) are supposed to do a full =
reread to capture any problems that remained hidden during the =
incremental development of the I-D.

Normally, we find a few editorial problems (which we did; they since =
have been dealt with).
This time, however, there is also a technical contradiction between an =
illustration (Figure 4) and the normative text that would need to be =
considered in making up the example in the illustration (

Background: cddl-control deliberately allows byte string literals in =
places where text string literals would really make more sense.  The =
reason is that the content of these literals often is specification text =
(ABNF) with embedded newlines, which are much easier to write as byte =
strings (where embedded newlines are allowed in RFC 8610) than as text =
strings (which inherit the JSON syntax that requires replacing every =
newline with a linear \n, creating essentially unreadable source text).  =
This is demonstrated in Figure 2:

>    c =3D "foo" .cat '
>      bar
>      baz
>    '
>    ; on a system where the newline is \n, is the same string as:
>    b =3D "foo\n  bar\n  baz\n"
>=20
>        Figure 2: An Example of Concatenation of Text and Byte Strings

So we handled that properly for .cat and .det, but it turns out we did =
not for .abnf and .abnfb themselves.  Here, bullet 1 (which mostly is =
about the target and its interpretation) in Section 3 tersely says:

>    The controller string MUST be a text string.

This is not only not what is implemented in the cddl tool (which accepts =
a byte string just fine), it is also directly contradicting Figure 4:

>    oid =3D bytes .abnfb 'oid
>    oid =3D 1*arc
>    roid =3D *arc
>    arc =3D [nlsb] %x00-7f
>    nlsb =3D %x81-ff *%x80-ff
>    '
>=20
>              Figure 4: Dedenting example: result of first .det

To me, this is an oversight where we simply didn=E2=80=99t update that =
sentence to the more useful way of accepting byte strings just for their =
better syntax handling newlines.  So I am suggesting we change the =
sentence to:

> The controller MUST be a string.  When a byte string, it MUST be valid =
UTF-8 and is interpreted as the text string that has the same sequence =
of bytes.

=E2=80=A6 which I=E2=80=99m suggesting as a fix in the excerpt of the =
AUTH48 processing mail copied below.  I apologize for not seeing this =
earlier.

Our AD Francesca brought to my attention that cbor@ietf.org is not =
copied on AUTH48 processing; I had forgotten that (other WGs do that =
copying habitually).  So I didn=E2=80=99t think to bring this up =
separately here, which I am now doing.

You can find the text that will be published if we do make the =
last-minute change, at the end of the bullet:

https://www.rfc-editor.org/authors/rfc9165.html#section-3-4.1

(Note that this text is an RFC-to-be, not the final RFC, please don=E2=80=99=
t start citing it as an RFC before it has been published.)

Does anybody in the CBOR WG see a technical problem coming up with =
making this last minute fix?  If you see a problem (with implementation =
or use of byte string literals not only in the controller arguments of =
.cat/.det, but also in those of .abnf/.abnfb), please speak up quickly; =
this is the last item standing in the way towards publishing this RFC.

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



> Begin forwarded message:
>=20
> From: Carsten Bormann <cabo@tzi.org>
> Date: 2021-12-04 at 17:00:03 CET
> To: <rfc-editor@rfc-editor.org>
> Cc: cbor-ads@ietf.org, cbor-chairs@ietf.org, Christian Ams=C3=BCss =
<christian@amsuess.com>, francesca.palombini@ericsson.com
> Message-Id: <077EDC59-74CE-42B4-B651-BA8846719CD9@tzi.org>
>=20
[=E2=80=A6]
> (0)
> The last sentence in the first bullet in 3 says "The controller string =
MUST be a text string.=E2=80=9D.
> However, the previous section=E2=80=99s example in Figure 4 happens to =
use a byte string literal, and leniently allowing both kinds of strings =
is also what is implemented.
> I believe loosening this up has the upside of simplifying cases such =
as in Figure 4, and no downside, so I would suggest:
>=20
> OLD:
> The controller string MUST be a text string.
> NEW:
> The controller MUST be a string.  When a byte string, it MUST be valid =
UTF-8 and is interpreted as the text string that has the same sequence =
of bytes.
[=E2=80=A6]


From nobody Tue Dec  7 14:16:59 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 7D6033A0112 for <cbor@ietfa.amsl.com>; Tue,  7 Dec 2021 14:16:57 -0800 (PST)
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, RCVD_IN_MSPIKE_H2=-0.001, 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 bL1t1gDYEnhb for <cbor@ietfa.amsl.com>; Tue,  7 Dec 2021 14:16:55 -0800 (PST)
Received: from p3plsmtpa12-07.prod.phx3.secureserver.net (p3plsmtpa12-07.prod.phx3.secureserver.net [68.178.252.236]) (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 08B653A00D3 for <cbor@ietf.org>; Tue,  7 Dec 2021 14:16:54 -0800 (PST)
Received: from [192.168.1.3] ([75.80.148.243]) by :SMTPAUTH: with ESMTPSA id uilZmlnWnUZTIuilamGnu8; Tue, 07 Dec 2021 15:16:54 -0700
X-CMAE-Analysis: v=2.4 cv=V+24bcri c=1 sm=1 tr=0 ts=61afdd56 a=VPU1mRQhDhA4uSX60JRRww==:117 a=VPU1mRQhDhA4uSX60JRRww==:17 a=IkcTkHD0fZMA:10 a=dRGUXtHy4CwCIdc_utsA:9 a=QEXdDO2ut3YA:10
X-SECURESERVER-ACCT: lgl@island-resort.com
From: Laurence Lundblade <lgl@island-resort.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
Message-Id: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com>
Date: Tue, 7 Dec 2021 14:16:53 -0800
Cc: cbor@ietf.org, Hannes Tschofenig <Hannes.Tschofenig@arm.com>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
To: cose <cose@ietf.org>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
X-CMAE-Envelope: MS4xfHlGKqHqP/40Hrwr2oC3E3cDGWuXb3gBjA8KGz/EQ4yFp5YWFlqOK24P6vW/8yR7SYfnbCNjSGRLlSsEHLDpE43kHK4y9qs6a3U+fuujN3fXdmFrgK+U DMTj7q2+L1d5HG7D1dwsfwXHoHlUc4b2ImuGDodXYIWY65QXdH7ERoidqyjYbVWOtXUDWAFMWOOOgJCbNjtjb7ltb6Is9fG5jrJMViWAApzgIuN7jfd04aSq ZqcoIX/EgThqJwkO8n7Y5VXx6dLGzuXWFZO+6c6CySMIzr7k2QNZhdCoFHunPy2S
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/gGDLWk8YlcRtMg0Y-aHyb-ddLIs>
Subject: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 07 Dec 2021 22:16:58 -0000

Hi,

Not sure where this will go, but thought it worth running up the flag =
pole.

To validate EAT CDDL I=E2=80=99m pulling in *all* of these into one:
=E2=80=94 CoSWID CDDL
=E2=80=94 SUIT CDDL
=E2=80=94 COSE CDDL
=E2=80=94 EAT/CWT CDDL

I have diag format EAT example tokens with claims that are CoSWIDs that =
validate against the above.

CoSWID replicates and modifies a lot of COSE CDDL in normative text =
primarily so it can fully specify the COSE payload with a .cbor control.=20=


SUIT doesn=E2=80=99t replicate COSE. It specifies the COSE payload in =
prose.

I have thus far taken SUITs approach as I don=E2=80=99t want to =
replicate and modify COSE CDDL. EAT also must support nesting of COSE =
encryption inside COSE signing and such. (It seems CoSWID=E2=80=99s =
approach actively prohibits COSE encryption).

In an ideal world, I think the CDDL in the COSE struct draft would some =
how use a CDDL template through which one could specify the CDDL for the =
COSE payload.  This CDDL template would work for COSE signed, then =
encrypted or encrypted then MAC=E2=80=99=E2=80=99d and any other nesting =
of COSE. In this ideal world CoSWID wouldn=E2=80=99t have to replicate =
CDDL from COSE and SUIT and EAT could use it too. I=E2=80=99m not sure =
this ideal COSE CDDL is possible though.

Has anyone considered writing the COSE CDDL this way?

Another problem with the replicated COSE CDDL in CoSWID in the EAT =
document build and validate is that there is collision between the names =
of CDDL rules. I=E2=80=99m just manually tweaking stuff to get around =
this. CDDL name spaces would fix this.


If the world stays the same (no change to COSE struct document or =
CoSWID) I can make EAT work as follows:
 - No .cbor control to specify the COSE payload, only prose
 - Some non-normative, unpublished glue CDDL that is part of the EAT =
document build and example validation script is needed.

LL









From nobody Tue Dec  7 14:22:03 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 2430D3A0483; Tue,  7 Dec 2021 14:22:02 -0800 (PST)
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, RCVD_IN_MSPIKE_H2=-0.001, 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 hbhL3A2DAujl; Tue,  7 Dec 2021 14:21:57 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 903313A046E; Tue,  7 Dec 2021 14:21:57 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4J7vst25MLzDCd4; Tue,  7 Dec 2021 23:21:54 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com>
Date: Tue, 7 Dec 2021 23:21:53 +0100
Cc: cose <cose@ietf.org>, cbor@ietf.org, Hannes Tschofenig <Hannes.Tschofenig@arm.com>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
X-Mao-Original-Outgoing-Id: 660608513.915571-e2eb6b3d7c8a9e2003ad1fdac927c99c
Content-Transfer-Encoding: quoted-printable
Message-Id: <DA4D4B8C-65A7-4651-826F-572EC7F364A9@tzi.org>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com>
To: Laurence Lundblade <lgl@island-resort.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/r5LuGW5W_3kq0t586ygqUoTVWYw>
Subject: Re: [Cbor] [COSE] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 07 Dec 2021 22:22:02 -0000

On 2021-12-07, at 23:16, Laurence Lundblade <lgl@island-resort.com> =
wrote:
>=20
> Has anyone considered writing the COSE CDDL this way?

Yes.  I think that is easy to do for MACed/signed, not so easy for =
encrypted (because that is not transparent to the CDDL engine).

We could define a control operator for the encryption.

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


From nobody Wed Dec  8 04:30:25 2021
Return-Path: <Hannes.Tschofenig@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 2910F3A0763; Wed,  8 Dec 2021 04:30:23 -0800 (PST)
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=EaVzk1Ea; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=EaVzk1Ea
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 phMn-X1pW8BC; Wed,  8 Dec 2021 04:30:18 -0800 (PST)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20057.outbound.protection.outlook.com [40.107.2.57]) (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 BE79D3A074E; Wed,  8 Dec 2021 04:30:17 -0800 (PST)
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=8zoSPgIG9R02NqBAG3Dgq3wlTFWxyCIzJEL3Nq0lWv8=; b=EaVzk1EahFFf1/qDtivZzMJmlZ3Q9Qa2sk5MWfsP1LyoM6M+a/3vXGJ+JCdASBdZp1JYSeST4BjzF7qToT3VhT8jg1BVw6in7s8kE2LBKD3TmXUNo8cJ5VVoVVywZpZCQuKtbr61t9SwTKJISqYr986QX12rIditE8TVykWlIBU=
Received: from AM6P194CA0049.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:84::26) by AS1PR08MB7476.eurprd08.prod.outlook.com (2603:10a6:20b:4dc::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.13; Wed, 8 Dec 2021 12:30:14 +0000
Received: from AM5EUR03FT045.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:84:cafe::3a) by AM6P194CA0049.outlook.office365.com (2603:10a6:209:84::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.17 via Frontend Transport; Wed, 8 Dec 2021 12:30:13 +0000
X-MS-Exchange-Authentication-Results: spf=temperror (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=temperror action=none header.from=arm.com;
Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout)
Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT045.mail.protection.outlook.com (10.152.17.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.13 via Frontend Transport; Wed, 8 Dec 2021 12:30:12 +0000
Received: ("Tessian outbound c61f076cbd30:v110"); Wed, 08 Dec 2021 12:30:12 +0000
X-CR-MTA-TID: 64aa7808
Received: from e5ac3ab311d8.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E0EA7E78-85FE-49EE-B2F9-6B3F9B7CB2FE.1;  Wed, 08 Dec 2021 12:30:06 +0000
Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e5ac3ab311d8.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 08 Dec 2021 12:30:06 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DpcqCuHikBPHXq3xz7pUsIOw4b/CHwFtbe2ge4qhkOR30cOYpkxqMeANKNPcOs2GYOddo+C91iZvFZaBrnq4NQVr84lH6BLFLUq7qxjqx2wdiehwPKcBs8ao0tWZ73l8ww0IyyqfDQ95KtApBhjGb9MQynOMuQBLfjXKrNDuurrEf6g8ORim+GTErJmeHXTsEOvEimODCvR5urDRaqY2IWjogHoTorG6HgCz68waz9a3aNAJfCa33lbhHKkR8ZdY6e0SMDcqPHPsDRsiXXOZpsWyMtFv41+ufgWE0XptyY+SUbdWKDpmvx8MOr1JAcSpAP3qc615UwY/f2+ZBA4bMA==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8zoSPgIG9R02NqBAG3Dgq3wlTFWxyCIzJEL3Nq0lWv8=; b=LPaNPS/T5k6Z0Ud4mcxXBQvsBkuOQ0MvFoHXtzQG3Ic4CBpK+URvj4OxlXgB022Ic8CWhwjk5vs6N0mPrxDobIlJbvzJuTVcZyA1wNjfkYzXOu4Pp2DfSROQcG1wcB9O71gwwDpKW61prHGOZ3vUBvF/K2gMtpWiCuXTYr2NgxfpASyELCfUrvs3waREVh8o1FUIW4X9rBcyp68aySqLVlmtc9AszdqRmCpEeKGkEHBJ9EzEi4TlIQbFMURZHkWrSk6eRWMHhWsU91iipiclxeHLZfo0/sZ1/ZE2OHNYh1VAA4fmhBgSARiw0GYyxd+RvwvbKOZXK/DHiEFI3fZKcg==
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=8zoSPgIG9R02NqBAG3Dgq3wlTFWxyCIzJEL3Nq0lWv8=; b=EaVzk1EahFFf1/qDtivZzMJmlZ3Q9Qa2sk5MWfsP1LyoM6M+a/3vXGJ+JCdASBdZp1JYSeST4BjzF7qToT3VhT8jg1BVw6in7s8kE2LBKD3TmXUNo8cJ5VVoVVywZpZCQuKtbr61t9SwTKJISqYr986QX12rIditE8TVykWlIBU=
Received: from DBBPR08MB5915.eurprd08.prod.outlook.com (2603:10a6:10:20d::17) by DB6PR0802MB2535.eurprd08.prod.outlook.com (2603:10a6:4:a1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.21; Wed, 8 Dec 2021 12:30:05 +0000
Received: from DBBPR08MB5915.eurprd08.prod.outlook.com ([fe80::dd96:eb7:b263:b290]) by DBBPR08MB5915.eurprd08.prod.outlook.com ([fe80::dd96:eb7:b263:b290%4]) with mapi id 15.20.4755.022; Wed, 8 Dec 2021 12:30:05 +0000
From: Hannes Tschofenig <Hannes.Tschofenig@arm.com>
To: Laurence Lundblade <lgl@island-resort.com>, cose <cose@ietf.org>
CC: "cbor@ietf.org" <cbor@ietf.org>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
Thread-Topic: CDDL for COSE + EAT/CWT + SUIT + CoSIWD
Thread-Index: AQHX67gvNbcS2jfqyUOwtKjobSbIKKwohLpQ
Date: Wed, 8 Dec 2021 12:30:05 +0000
Message-ID: <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com>
In-Reply-To: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ts-tracking-id: 3B1020697708E84D9ECC04E7986A1ACA.0
x-checkrecipientchecked: true
Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
X-MS-Office365-Filtering-Correlation-Id: f1230114-12c6-44ab-7078-08d9ba467b0c
x-ms-traffictypediagnostic: DB6PR0802MB2535:EE_|AM5EUR03FT045:EE_|AS1PR08MB7476:
X-Microsoft-Antispam-PRVS: <AS1PR08MB74766E9482AE30B5B643BD7AFA6F9@AS1PR08MB7476.eurprd08.prod.outlook.com>
x-checkrecipientrouted: true
nodisclaimer: true
x-ms-oob-tlc-oobclassifiers: OLM:9508;OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam-Untrusted: BCL:0;
X-Microsoft-Antispam-Message-Info-Original: c0VC99rHjxrX3aj/YPNlwYdtwTaUTYUfKwibA5E59x/ufPVq0bATnoeKeD/QBFmjfIq30bZWN2yI+qJhsCuBa0YxsV2lIil92+LqlAA3ShgCj9QfAjY3trHJzSufIGKCMdI2T+rs1wEa8Kldsrog6Nulwf5K/XqWfCZJoH0Ka6IIXbYn+SBWn8h5pzVDFh01AVe7/wlblT0GbCC6jkPBt2Zq64MhSqZwCEdFEH5Jmv7USOdIV74UVwDqVrp8GPiDHXGjWvv1nqcbkVe88ych9OZpmrbjL/65OIcjMcOrZd66XVyrJaTdJDxYGx2KQbakyPiGT6fKsEijjFYvsxblCNEfCVWFIPILqQZ2+3u9s8j8YePrIzEe/5z0gZmon9+rpPHlAcYeXQRIzKHT88zUWD3uysoSpVbA/EG3Jxw8YYiwEQp/IcRtj55ZjgGmREwfnn/YQbM/vzzjDj+amHCLw9sfGyYOrHSnthYxtQYSQpGdPl7GN2z0fqqeySSIxi2ZpuAN+xi6YaFBfGYiFpnrhV3SyucuMaZd3l0+zp0sRPIathsg7kdUnZzKtYIvBhsQgixqHR2o2Oh/feSIvwf/Po8pblwwWIVgs7w/ndMS1+DNVEXXNYL0o1MIFRU8DA3cYgcV3PVjsih5yVthQVkslPWexBg9X4vetobTZSNfyrIuil4ft3e55xLQDoWr4fjAPWCD0flGR72hpkIYAmKxtQ==
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB5915.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(110136005)(55016003)(38100700002)(83380400001)(8676002)(7696005)(76116006)(9686003)(54906003)(66446008)(2906002)(5660300002)(8936002)(316002)(64756008)(66556008)(122000001)(66476007)(66946007)(4326008)(52536014)(86362001)(71200400001)(38070700005)(6506007)(33656002)(53546011)(508600001)(26005)(186003); DIR:OUT; SFP:1101; 
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2535
Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT045.eop-EUR03.prod.protection.outlook.com
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id-Prvs: 142fa822-26de-4017-875a-08d9ba4676ab
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: azZU2zA6GO+JQPXii6q2YIIEe9oxzn1NJUa/U+D4wEfIE8HTcCeps6coGRClZQZLfoUEIiM2ezK1fZNqKLWztqG0Q1u9zhmn2hkuvCI5nqwIDXM8JV5PnSj9Zm7g5czEu8dQFrlMT0ME7gI7aW7M90HQuHs5uieqOhj2cJTFUhxTbvunUnX7a9QBycVgZwAY1rG7QaSXcsuKfJlrdA0gfh1j41X8jptqD3hekKY7FGCLIRXb3eaf+lPWJ1QtYOBnMhZu/2vX9jNYS4vGK+u2mscCMXmc9O/gvUVi2hycDUELAGxlo839PavoQGEbpCnsGUT7LAjtb4DzYWmscjEi8Z09M0rrWBBZ5rJVAIK1dr8xa+SHS8X9ARPk06IR7Uv+tTVh4xgsbZAjbvu0/8zizR2lRTuPbEG0rGvWwSxqbHUmWj1++ZSAh6kFpvkHaaM+AK12M7u9UMib7s1whz0p6bGoq/PiWjnSC5a+iINe2acOmklAenIPHrB9q5vshsBMI0OMXoFKPlKI29nVgT/c/7cRjeeQDTuGwRSonLEbUpwX6Yei+burUL0ZHhbFqtD5KYD4TFHn4L8Z4KbYkflk0GFkfXfuS6rF+dzb5bhHzwMECijb6v/6ZuynRs3Tj3MmbB9odz0+u0hRopixXTQi1MYoT+iyOmWYyx7igwf4L2j20vlUQtHZEjXevmc5HWpZNn2XmqM6SHbzzya7vzQZC/8lOERq8V2NfSSk5UbczyGz7HyOzcKGUD7ewWFCKopvCFQXM2gbzbpgjOfVCDniIw==
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)(46966006)(36840700001)(40470700001)(450100002)(83380400001)(70206006)(63370400001)(55016003)(5660300002)(8676002)(54906003)(336012)(36860700001)(81166007)(82310400004)(70586007)(63350400001)(110136005)(40460700001)(316002)(86362001)(26005)(47076005)(8936002)(33656002)(186003)(2906002)(9686003)(7696005)(52536014)(53546011)(6506007)(107886003)(356005)(4326008)(508600001); DIR:OUT; SFP:1101; 
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2021 12:30:12.3742 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: f1230114-12c6-44ab-7078-08d9ba467b0c
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: AM5EUR03FT045.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR08MB7476
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/ZDXfEV-OIFTDFnSNgkBGaBZwgi0>
Subject: Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 08 Dec 2021 12:30:23 -0000

SGkgTGF1cmVuY2UsDQoNCkkgYW0gd29uZGVyaW5nIHdoeSB5b3Ugd2FudCB0byBkbyB0aGlzLiBU
aGUgcmVhc29uIGlzIHRoYXQgRUFUIGJ5IGl0c2VsZiBpcyBub3QgcmVhbGx5IGFuIGludGVyb3Bl
cmFibGUgc3BlYy4gQ09TRSBvbiBpdHMgb3duIGlzIG5vdCBpbnRlcm9wZXJhYmxlIGVpdGhlci4g
V2l0aCB0aGUgU1VJVCBtYW5pZmVzdCB3ZSBoYXZlIGp1c3Qgc3RyaXBwZWQgaXQgZG93biB0byB0
aGUgYmFyZSBtaW5pbXVtIHRvIG1ha2UgaXQgaW50ZXJvcGVyYWJsZSBidXQgaXQgaXMgbm90IGZp
bmlzaGVkLiBJIGhhdmUgbm8gaWRlYSB3aGV0aGVyIENvU1dJRCBpcyBhbiBpbnRlcm9wZXJhYmxl
IHNwZWMuDQoNCkhlbmNlLCBJIHdvbmRlciB3aGV0aGVyIGl0IGlzIGp1c3QgYmV0dGVyIHRvIHJl
Z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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 99BDB3A077E; Wed,  8 Dec 2021 04:36:53 -0800 (PST)
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 dNztpSCUWcIu; Wed,  8 Dec 2021 04:36:49 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1BB7F3A077D; Wed,  8 Dec 2021 04:36:47 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4J8GrC117WzDCjl; Wed,  8 Dec 2021 13:36:43 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
Date: Wed, 8 Dec 2021 13:36:42 +0100
Cc: Laurence Lundblade <lgl@island-resort.com>, cose <cose@ietf.org>, "cbor@ietf.org" <cbor@ietf.org>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
X-Mao-Original-Outgoing-Id: 660659802.522487-b05e0afd710e0b36426e21142d798d26
Content-Transfer-Encoding: quoted-printable
Message-Id: <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
To: Hannes Tschofenig <Hannes.Tschofenig@arm.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/GmvyUvX29UsaoZ6AMWgynEKkdzo>
Subject: Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 08 Dec 2021 12:36:54 -0000

On 2021-12-08, at 13:30, Hannes Tschofenig <Hannes.Tschofenig@arm.com> =
wrote:
>=20
> EAT by itself is not really an interoperable spec. COSE on its own is =
not interoperable either.=20

If I guess about the definition of "interoperable spec=E2=80=9D you are =
using here, ASCII is not an interoperable spec either - you still have =
to agree on what the text means=E2=80=A6  Still, ASCII was kind of =
useful as the basis for a lot of interoperability, I think.

I think the point here was to shape some CDDL that makes it easier to =
talk about the way a more specific (interoperable?) spec uses COSE =
(which does have CDDL, just not in a way that usually can be integrated =
as-is to express the additional constraints a COSE-using specification =
typically makes).

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


From nobody Wed Dec  8 04:46:52 2021
Return-Path: <Hannes.Tschofenig@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 09C8E3A079E; Wed,  8 Dec 2021 04:46:51 -0800 (PST)
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=HQ1yBbTE; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=HQ1yBbTE
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 07Cvi4j-Wt8x; Wed,  8 Dec 2021 04:46:45 -0800 (PST)
Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70088.outbound.protection.outlook.com [40.107.7.88]) (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 22DC53A079D; Wed,  8 Dec 2021 04:46:44 -0800 (PST)
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=VUB4KrM3ZmNECOH8lItVH4uRTG6JO000BVj7FjhjMiI=; b=HQ1yBbTEGwesxxqsPru6mnGLBggteF5Xt/Yc2+Nt4MFDCe8YAGms3KGtZ18iAEILhzS3fOfV0ud9ndu2GCRUedriutttnitup9EbHjY4M60visb1v1fGOVXSHaDCDaXdsWoUgLhXHO8DYt6N7Dp3vddshlj66PyENl8d010ikHU=
Received: from AS9PR06CA0290.eurprd06.prod.outlook.com (2603:10a6:20b:45a::8) by VI1PR08MB3632.eurprd08.prod.outlook.com (2603:10a6:803:79::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.20; Wed, 8 Dec 2021 12:46:41 +0000
Received: from VE1EUR03FT052.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45a:cafe::43) by AS9PR06CA0290.outlook.office365.com (2603:10a6:20b:45a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.11 via Frontend Transport; Wed, 8 Dec 2021 12:46:41 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;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 VE1EUR03FT052.mail.protection.outlook.com (10.152.19.173) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.13 via Frontend Transport; Wed, 8 Dec 2021 12:46:40 +0000
Received: ("Tessian outbound f493ab4f1fb8:v110"); Wed, 08 Dec 2021 12:46:40 +0000
X-CR-MTA-TID: 64aa7808
Received: from fb87c15b9261.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B5F1275B-9912-420A-AB1E-B18F4F3DD09E.1;  Wed, 08 Dec 2021 12:46:35 +0000
Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id fb87c15b9261.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 08 Dec 2021 12:46:35 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kY1nKDedudHcdrNRZk2R02Imm4BUpGq+MS5JI3j8sUyE1D+y+S/zydxB1wDm0rdXnMVjxacG8TzwU444+7rMiNJWFDg0MppK7c7cUKbpELAE/82XeTaYT/kIl8OiIqLDMSc+VUvepj+JukCAMSPlYl7uUzc+NHIZyvwmEWl3Yj/lZKFhzJeTNjCCs452mG+x1rIa8nPqAkjACFOWmxJi2UVqhPa35bOVWJerViZW5x1zkMLoLTuexENsoSobpx8q8Ni+/+KkECrAzNYRUEU3TX/TIySTId827PmMfWufyyWe4YhMobdglLib+EVVixtwTQlYxatRb7KDQ7ldlNpGXA==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VUB4KrM3ZmNECOH8lItVH4uRTG6JO000BVj7FjhjMiI=; b=T/K+W/6sM6aJW4TqjoLQcIJYJmdm1aloqLo5Z73/WNif1kolTaFaohYWpoeSusBrthkR0oxc25VVgqB3kzx67Muv1Q4g7+pJM9h3V/yQUxUPyA/aLvXSfFy20e+eE/McZGvdPcw/DnnY6AQrG1cmfqhjTARg9VMkQZGXW5UlQSNaRO+OafG0WPAFO3IK/esuA42aikOBXmalAx4oX0E2INOqFcYFetN3CRM428MWUOw5SGCIuC15ANe+g4CvvxhodpMtP2KTtpfW2RZT5QvlAn3KZz6tTEbMmZjOAKwCG81GDwxx0iRLXKao8MWMUtfTxC+I/cgq+O05lq97GPyMMg==
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=VUB4KrM3ZmNECOH8lItVH4uRTG6JO000BVj7FjhjMiI=; b=HQ1yBbTEGwesxxqsPru6mnGLBggteF5Xt/Yc2+Nt4MFDCe8YAGms3KGtZ18iAEILhzS3fOfV0ud9ndu2GCRUedriutttnitup9EbHjY4M60visb1v1fGOVXSHaDCDaXdsWoUgLhXHO8DYt6N7Dp3vddshlj66PyENl8d010ikHU=
Received: from DBBPR08MB5915.eurprd08.prod.outlook.com (2603:10a6:10:20d::17) by DB8PR08MB4105.eurprd08.prod.outlook.com (2603:10a6:10:b0::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.21; Wed, 8 Dec 2021 12:46:34 +0000
Received: from DBBPR08MB5915.eurprd08.prod.outlook.com ([fe80::dd96:eb7:b263:b290]) by DBBPR08MB5915.eurprd08.prod.outlook.com ([fe80::dd96:eb7:b263:b290%4]) with mapi id 15.20.4755.022; Wed, 8 Dec 2021 12:46:34 +0000
From: Hannes Tschofenig <Hannes.Tschofenig@arm.com>
To: Carsten Bormann <cabo@tzi.org>
CC: Laurence Lundblade <lgl@island-resort.com>, cose <cose@ietf.org>, "cbor@ietf.org" <cbor@ietf.org>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
Thread-Topic: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
Thread-Index: AQHX67gvNbcS2jfqyUOwtKjobSbIKKwohLpQgAAEVwCAAAJZAA==
Date: Wed, 8 Dec 2021 12:46:34 +0000
Message-ID: <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org>
In-Reply-To: <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ts-tracking-id: ACEF9131246AE54793C163F17DC8CFE8.0
x-checkrecipientchecked: true
Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
X-MS-Office365-Filtering-Correlation-Id: 0258bbad-7953-4127-eda8-08d9ba48c834
x-ms-traffictypediagnostic: DB8PR08MB4105:EE_|VE1EUR03FT052:EE_|VI1PR08MB3632:EE_
X-Microsoft-Antispam-PRVS: <VI1PR08MB3632A749283E532780DA837CFA6F9@VI1PR08MB3632.eurprd08.prod.outlook.com>
x-checkrecipientrouted: true
nodisclaimer: true
x-ms-oob-tlc-oobclassifiers: OLM:7219;OLM:8882;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam-Untrusted: BCL:0;
X-Microsoft-Antispam-Message-Info-Original: ccbpUrcT6Qn3jGrthPwc4ea7xsaTMydPD/ahTqv9EJAX3FtxzFOOujpYA6rUUJFaFdzVuYHuZ7pOa3obfPQEhawaoNZL7gg0gtjovYJ1Fi1OxzrDdHuKSfkTA5gNGowjP/qT8JtjePAIucbOXviVoV5g8ZadzUo3e6ncG5E2RBk3WukfyvU6tP/o4/5HU9xdBiqxvFPVzcZRRBfQOFYuwkHBgaftqNzFueI+jfrzwloyBfr+QxsoopcD90GhE2c18MTm+ghQ880wlqPHLEcu7yo+RugQtdyxshXzDfVew6LY8sr0OBZTP8SAsehwAOkmPClmr8QJPuxL1loQ5b7+Ur4vwqYb4UCquw6rAKkmhi3cIyW4QT75Ufox403S4RCllQorNbl2rOW0jcCJOUeX03wqluUBWLi6kePxjkEFFJulAJh2NC+0uu4CWOyMUvL0vwxEaN0LEfV2le+3Vexfc0++Vkf7TCeweD93LwatxjKW0JmG7bW5M+o+0diz/t+/aS4ehBW/P+vDGax9cXH9W5fYnolvcjauoeDuZz5UOzedMUZi/Vh2BysIOf/6GGIyYjVgS6OfAAco88KgSiph5aSdAVTOcLpkIrSm0fVxfDG1tQ2PgLmKFBdhi7i3ehcgHENTVqzdeI0AYzPAxTQX+riJ6iPB5MWrSrXcGktoNjpx2xOdq1s8KUp8wwHTHNnIbsuK/O7Vx7l/cDiGLy4Usw==
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB5915.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(508600001)(6506007)(52536014)(86362001)(5660300002)(4326008)(2906002)(33656002)(316002)(71200400001)(53546011)(122000001)(54906003)(76116006)(26005)(38100700002)(8936002)(8676002)(6916009)(7696005)(66946007)(83380400001)(66476007)(186003)(55016003)(66446008)(9686003)(66556008)(38070700005)(64756008); DIR:OUT; SFP:1101; 
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB4105
Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT052.eop-EUR03.prod.protection.outlook.com
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id-Prvs: 806d126b-159d-4f41-f8bd-08d9ba48c43c
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: s65rbLC5cbak9WZ/TBLielZAiJq4It8BRhNF/sYNXgUvP0zde/LQwE8aHNpu2ra2xStw4QlF24HfWkhCxyAE1TnarPv+azHNsI6196cEnPcFrNbk2rAmQevONY45uZgc9Z8nsUYQ51zErf4iPdusckQzvem+d0qK2dMngdt0I8wSBoPHheB2IlC5jyQOYQL3wctpPMUm7CN7RT4RvLNfA/PdLIAbJiFelI9R78lUL6iM7SZ8r2i8bW75HooQrJZRIwmuvOBg9UxDFC/Ja5yIVZ6t0GngankXeArmm6TLg+hPpCuai86Ag/6E6RmqCayRBVkL4IV713Qmh+IyJDB0SfJM718QY1bgiR9zu3JoTKcIZEJelpq5a6eglEheqgfIhJ5gPA+5KdpXprhfZrn7pYurBbabFd5iRMnxr4P9jfJ5Lynv9pxoVaywcPvO7UNJOV/YJlAHjTe9BGSQTvmlMMZnD5xIeWfcycPAy9T4Urx+eBMLCTT99YlWinE204creqZrYCdqQSOAGRAzEop07UJby8asnrCqmqkeIePgsb/lPTuoL8umWyiyZ1FtEASe5quLa2O4+pNYUfzcG5wM1LkIOR9z6vVZvV9iFb3VMgu9OGIMuuOjJwBhKvq7kd3UH6bxihIUDauwOTErjVWTh3lvIICb1P5qGoX6arQAFEwswNCp7svMkj0HnmazxD9zUeWLXOiWhderbfi6fJZ9pA==
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)(46966006)(36840700001)(7696005)(81166007)(2906002)(8936002)(70586007)(70206006)(55016003)(82310400004)(8676002)(450100002)(5660300002)(356005)(36860700001)(107886003)(9686003)(336012)(83380400001)(6862004)(26005)(47076005)(54906003)(316002)(4326008)(33656002)(86362001)(52536014)(508600001)(6506007)(53546011)(186003); DIR:OUT; SFP:1101; 
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2021 12:46:40.7396 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 0258bbad-7953-4127-eda8-08d9ba48c834
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: VE1EUR03FT052.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3632
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/wCfJqqhEIASekdcQZEGlOh_eyd4>
Subject: Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 08 Dec 2021 12:46:51 -0000

SGkgQ2Fyc3RlbiwNCg0KSSBzdXNwZWN0IExhdXJlbmNlIGlzIHNlbmRpbmcgdGhpcyBlbWFpbCBi
ZWNhdXNlIG9mIGhpcyB3b3JrIG9uIEVBVC4gSSBhbSBhcmd1aW5nIHRoYXQgYW4gYXR0ZW1wdCB0
byBpbXByb3ZlIHRoZSBDRERMIGZvciB0aGUgbWVudGlvbmVkIHNwZWNzIHdpbGwgbm90IGxlYWQg
dG8gYW55IGltcHJvdmVtZW50IGF0IGFsbCBiZWNhdXNlIHRoZSBwcm9ibGVtIGlzIGVsc2V3aGVy
ZS4gSSBhbSBzYXlpbmcg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bor@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 018983A0803; Wed,  8 Dec 2021 05:26:57 -0800 (PST)
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 SXL9lkGrXLaf; Wed,  8 Dec 2021 05:26:52 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E43533A07F5; Wed,  8 Dec 2021 05:26:50 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4J8Hxv2T09zDCjW; Wed,  8 Dec 2021 14:26:43 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
Date: Wed, 8 Dec 2021 14:26:42 +0100
Cc: Laurence Lundblade <lgl@island-resort.com>, cose <cose@ietf.org>, "cbor@ietf.org" <cbor@ietf.org>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
X-Mao-Original-Outgoing-Id: 660662802.622587-b62e5f569a931beb919e2440c636a6d5
Content-Transfer-Encoding: quoted-printable
Message-Id: <F51A9E64-D6DE-464C-8443-20009AE8E98D@tzi.org>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org> <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
To: Hannes Tschofenig <Hannes.Tschofenig@arm.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/lRrJuEdTd6s93Q7Nf-gVbzPBoKk>
Subject: Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 08 Dec 2021 13:26:57 -0000

Hi Hannes,

> On 2021-12-08, at 13:46, Hannes Tschofenig <Hannes.Tschofenig@arm.com> =
wrote:
>=20
> Hi Carsten,
>=20
> I suspect Laurence is sending this email because of his work on EAT. I =
am arguing that an attempt to improve the CDDL for the mentioned specs =
will not lead to any improvement at all because the problem is =
elsewhere. I am saying that because I have just spent many hours reading =
the EAT spec.

Thank you for clarifying this, providing the RATS perspective that I=E2=80=
=99m missing here.

I=E2=80=99m glad to hear that EAT only has one problem :-) (=E2=80=9Cthe =
problem=E2=80=9D).

I still think that doing the work I was outlining would help us in =
various specifications.
And when it comes to EAT, I=E2=80=99m assuming that at some point we =
want to describe EAT claims with some statements about their structure, =
which would naturally use CDDL.  But that may not be needed for the =
initial EAT specification; I haven=E2=80=99t checked that.  If it is not =
needed, it might be too much of a distraction to apply the work I was =
outlining to EAT now.

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


>=20
> Ciao
> Hannes
>=20
> -----Original Message-----
> From: Carsten Bormann <cabo@tzi.org>
> Sent: Wednesday, December 8, 2021 1:37 PM
> To: Hannes Tschofenig <Hannes.Tschofenig@arm.com>
> Cc: Laurence Lundblade <lgl@island-resort.com>; cose <cose@ietf.org>; =
cbor@ietf.org; Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
> Subject: Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
>=20
> On 2021-12-08, at 13:30, Hannes Tschofenig <Hannes.Tschofenig@arm.com> =
wrote:
>>=20
>> EAT by itself is not really an interoperable spec. COSE on its own is =
not interoperable either.
>=20
> If I guess about the definition of "interoperable spec=E2=80=9D you =
are using here, ASCII is not an interoperable spec either - you still =
have to agree on what the text means=E2=80=A6  Still, ASCII was kind of =
useful as the basis for a lot of interoperability, I think.
>=20
> I think the point here was to shape some CDDL that makes it easier to =
talk about the way a more specific (interoperable?) spec uses COSE =
(which does have CDDL, just not in a way that usually can be integrated =
as-is to express the additional constraints a COSE-using specification =
typically makes).
>=20
> Gr=C3=BC=C3=9Fe, Carsten
>=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.


From nobody Wed Dec  8 06:31:09 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 765AC3A09FF for <cbor@ietfa.amsl.com>; Wed,  8 Dec 2021 06:31:00 -0800 (PST)
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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, 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 21Qt6D8JMe7n for <cbor@ietfa.amsl.com>; Wed,  8 Dec 2021 06:30:56 -0800 (PST)
Received: from p3plsmtpa07-10.prod.phx3.secureserver.net (p3plsmtpa07-10.prod.phx3.secureserver.net [173.201.192.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 BBC693A09B7 for <cbor@ietf.org>; Wed,  8 Dec 2021 06:30:55 -0800 (PST)
Received: from [192.168.1.3] ([75.80.148.243]) by :SMTPAUTH: with ESMTPSA id uxyAm5zfM0JyzuxyAmPwcF; Wed, 08 Dec 2021 07:30:55 -0700
X-CMAE-Analysis: v=2.4 cv=XbtMcK15 c=1 sm=1 tr=0 ts=61b0c19f a=VPU1mRQhDhA4uSX60JRRww==:117 a=VPU1mRQhDhA4uSX60JRRww==:17 a=48vgC7mUAAAA:8 a=7CQSdrXTAAAA:8 a=gKmFwSsBAAAA:8 a=K6EGIJCdAAAA:8 a=L82XNSfBcFglpR8BiegA:9 a=QEXdDO2ut3YA:10 a=yBqH_-WlQU1ZunpDcGsA:9 a=wffzYXZO9mBj5Gis:21 a=_W_S_7VecoQA:10 a=w1C3t2QeGrPiZgrLijVG:22 a=a-qgeE7W1pNrGK8U0ZQC:22 a=nnPW6aIcBuj1ljLj_o6Q:22 a=L6pVIi0Kn1GYQfi8-iRI:22
X-SECURESERVER-ACCT: lgl@island-resort.com
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <27539CB9-42E7-4313-8786-58B0A504E7E2@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_8367B9BA-5C32-4196-B3CF-41EBDE6DEF5C"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
Date: Wed, 8 Dec 2021 06:30:54 -0800
In-Reply-To: <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
Cc: Carsten Bormann <cabo@tzi.org>, cose <cose@ietf.org>, "cbor@ietf.org" <cbor@ietf.org>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
To: Hannes Tschofenig <Hannes.Tschofenig@arm.com>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org> <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
X-CMAE-Envelope: MS4xfKpxrRABl70OXh9WhJiEdHLYuOBwWCM3BgtyBwsJdWhfogWKtHNlZoD7C5EiNgMoA1vhZz2218c9iggXWBQyu2NrbCHMxUtnwvJuaSqy8xkNph65pjbE hgG6nqx3aELVRfhAppKIqZ4IEgDPfifioLzFYaVAmQO9Gn668Ix8kuRAf0AWMhOtpgmwVfvcfHAZtYS0V04G9SS6MlS9jCgZ/+foUHPG1di+UubokRR05pT4 6Hhkde3zdH9eweaBZU8KO+Gx9Ng/0vSQeYeJKO8w1wSykLoWa3NH3oBJY4BPqI8Qz/BKpgW3CykwLnW3wiOLhA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/VipYagqjYmxjnBMNwq3sareCJSM>
Subject: Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 08 Dec 2021 14:31:07 -0000

--Apple-Mail=_8367B9BA-5C32-4196-B3CF-41EBDE6DEF5C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi Hannes,

This is only about a tiny little part of the EAT spec and is not =
important for EAT publication.

This is only about how to use CDDL with COSE. It=E2=80=99s not about =
interoperability or what claims there are in the EAT spec.

Hannes, you can probably ignore this thread if you want.


To go further=E2=80=A6

I am observing how two different protocols that use COSE specify what =
the COSE payload should be. I am interested because EAT must specify =
this too. I noticed that they do it different:
=E2=80=94 CoSWID goes to a lot of trouble to use CDDL via a .cbor =
control
=E2=80=94 SUIT just uses simple prose, not CDDL

Note that I am only talking about the CDDL link between COSE and the =
COSE payload. Clearly SUIT, EAT and CoSWID all of which are COSE =
payloads are described in CDDL. See details below for what I mean by the =
link.

I was quite happy with simple prose, but then I saw what CoSWID did. It =
seemed worth checking in because CoSWID went to a lot of trouble to do =
what it did.

Right now, I think simple prose is fine and even prefer it.=20

If I were the CoSWID author I would probably stick with simple prose so =
the CDDL for COSE doesn=E2=80=99t have to be replicated and to allow for =
COSE encryption.

If I were the draft-ietf-cose-rfc8152bis-struct author, I=E2=80=99d make =
an attempt at a CDDL template for COSE so that future standards could do =
what CoSWID did without replicating COSE CDDL.

If that turned out well, then for future protocols after publication of =
draft-ietf-cose-rfc8152bis-struct, I=E2=80=99d consider using the CDDL =
template for COSE messages.

LL


Here=E2=80=99s the link between for COSE payload for CoSWID. It is in =
blue in this CDDL that is replicated from COSE. It occurs in  section 7 =
of CoSWID. =
<https://datatracker.ietf.org/doc/html/draft-ietf-sacm-coswid-19#section-7=
>

   COSE-Sign1-coswid<payload> =3D [
       protected: bstr .cbor protected-signed-coswid-header,
       unprotected: unprotected-signed-coswid-header,
       payload: bstr .cbor payload,
       signature: bstr,
   ]


Here it is in prose in SUIT in section 5.2 =
<https://datatracker.ietf.org/doc/html/draft-ietf-suit-manifest-16#section=
-5.2>:

 These blocks
   are one of:


   *  COSE_Sign_Tagged

   *  COSE_Sign1_Tagged

   *  COSE_Mac_Tagged

   *  COSE_Mac0_Tagged

   Each of these objects is used in detached payload mode.  The payload
   is the bstr-wrapped SUIT_Digest.


Here it is in CWT, section 7.1 in prose =
<https://datatracker.ietf.org/doc/html/rfc8392#section-7.1>

   1.  Create a CWT Claims Set containing the desired claims.

   2.  Let the Message be the binary representation of the CWT Claims
       Set.

   3.  Create a COSE Header containing the desired set of Header
       Parameters.  The COSE Header MUST be valid per the [RFC8152 =
<https://datatracker.ietf.org/doc/html/rfc8152>]
       specification.

   4.  Depending upon whether the CWT is signed, MACed, or encrypted,
       there are three cases:

       *  If the CWT is signed, create a COSE_Sign/COSE_Sign1 object
          using the Message as the COSE_Sign/COSE_Sign1 Payload; all
          steps specified in [RFC8152 =
<https://datatracker.ietf.org/doc/html/rfc8152>] for creating a =
COSE_Sign/
          COSE_Sign1 object MUST be followed.


EAT inherits this from CWT so it doesn=E2=80=99t need to say it =
explicitly.=20

However EAT uses CDDL so it is a possibility that EAT can do what CoSWID =
did.



> On Dec 8, 2021, at 4:46 AM, Hannes Tschofenig =
<Hannes.Tschofenig@arm.com> wrote:
>=20
> Hi Carsten,
>=20
> I suspect Laurence is sending this email because of his work on EAT. I =
am arguing that an attempt to improve the CDDL for the mentioned specs =
will not lead to any improvement at all because the problem is =
elsewhere. I am saying that because I have just spent many hours reading =
the EAT spec.
>=20
> Ciao
> Hannes
>=20
> -----Original Message-----
> From: Carsten Bormann <cabo@tzi.org>
> Sent: Wednesday, December 8, 2021 1:37 PM
> To: Hannes Tschofenig <Hannes.Tschofenig@arm.com>
> Cc: Laurence Lundblade <lgl@island-resort.com>; cose <cose@ietf.org>; =
cbor@ietf.org; Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
> Subject: Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
>=20
> On 2021-12-08, at 13:30, Hannes Tschofenig <Hannes.Tschofenig@arm.com> =
wrote:
>>=20
>> EAT by itself is not really an interoperable spec. COSE on its own is =
not interoperable either.
>=20
> If I guess about the definition of "interoperable spec=E2=80=9D you =
are using here, ASCII is not an interoperable spec either - you still =
have to agree on what the text means=E2=80=A6  Still, ASCII was kind of =
useful as the basis for a lot of interoperability, I think.
>=20
> I think the point here was to shape some CDDL that makes it easier to =
talk about the way a more specific (interoperable?) spec uses COSE =
(which does have CDDL, just not in a way that usually can be integrated =
as-is to express the additional constraints a COSE-using specification =
typically makes).
>=20
> Gr=C3=BC=C3=9Fe, Carsten
>=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.


--Apple-Mail=_8367B9BA-5C32-4196-B3CF-41EBDE6DEF5C
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"">Hi Hannes,</div><div class=3D""><br class=3D""></div><div =
class=3D"">This is only about a tiny little part of the EAT spec and is =
not important for EAT publication.</div><div class=3D""><br =
class=3D""></div><div class=3D"">This is only about how to use CDDL with =
COSE. It=E2=80=99s not about interoperability or what claims there are =
in the EAT spec.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Hannes, you can probably ignore this thread if you =
want.</div><div class=3D""><br class=3D""></div><div class=3D""><br =
class=3D""></div><div class=3D"">To go further=E2=80=A6</div><div =
class=3D""><br class=3D""></div><div class=3D"">I am observing how two =
different protocols that use COSE specify what the COSE payload should =
be. I am interested because EAT must specify this too. I noticed that =
they do it different:</div><div class=3D"">=E2=80=94 CoSWID goes to a =
lot of trouble to use CDDL via a .cbor control</div><div class=3D"">=E2=80=
=94 SUIT just uses simple prose, not CDDL</div><div class=3D""><br =
class=3D""></div><div class=3D"">Note that I am only talking about the =
CDDL link between COSE and the COSE payload. Clearly SUIT, EAT and =
CoSWID all of which are COSE payloads are described in CDDL. See details =
below for what I mean by the link.</div><div class=3D""><br =
class=3D""></div><div class=3D"">I was quite happy with simple prose, =
but then I saw what CoSWID did. It seemed worth checking in because =
CoSWID went to a lot of trouble to do what it did.</div><div =
class=3D""><br class=3D""></div><div class=3D"">Right now, I think =
simple prose is fine and even prefer it.&nbsp;</div><div class=3D""><br =
class=3D""></div><div class=3D"">If I were the CoSWID author I would =
probably stick with simple prose so the CDDL for COSE doesn=E2=80=99t =
have to be replicated and to allow for COSE encryption.</div><div =
class=3D""><br class=3D""></div><div class=3D"">If I were the&nbsp;<span =
style=3D"font-size: 1em; font-weight: bold; caret-color: rgb(0, 0, 0); =
color: rgb(0, 0, 0);" class=3D"">draft-ietf-cose-rfc8152bis-struct =
</span>author, I=E2=80=99d make an attempt at a CDDL template for COSE =
so that future standards could do what CoSWID did without replicating =
COSE CDDL.</div><div class=3D""><br class=3D""></div><div class=3D"">If =
that turned out well, then for future protocols after publication =
of&nbsp;<span style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); =
font-weight: bold;" =
class=3D"">draft-ietf-cose-rfc8152bis-struct</span><font color=3D"#000000"=
 class=3D""><span style=3D"caret-color: rgb(0, 0, 0);" class=3D"">, =
I=E2=80=99d consider using the CDDL template for COSE =
messages.</span></font></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 class=3D"">Here=E2=80=99s the link =
between for COSE payload for CoSWID. It is in blue in this CDDL that is =
replicated from COSE. It occurs in &nbsp;<a =
href=3D"https://datatracker.ietf.org/doc/html/draft-ietf-sacm-coswid-19#se=
ction-7" class=3D"">section 7 of CoSWID.</a></div><div class=3D""><br =
class=3D""></div><div class=3D""><pre class=3D"newpage" =
style=3D"font-size: 13.333333015441895px; margin-top: 0px; =
margin-bottom: 0px; break-before: page; caret-color: rgb(0, 0, =
0);"><span style=3D"color: rgb(0, 0, 0);" class=3D"">   =
COSE-Sign1-coswid&lt;payload&gt; =3D [
       protected: bstr .cbor protected-signed-coswid-header,
       unprotected: unprotected-signed-coswid-header,
</span><font color=3D"#4578ff" class=3D"">       payload: bstr .cbor =
payload,
</font><font color=3D"#000000" class=3D"">       signature: bstr,
   ]</font></pre><div class=3D""><br class=3D""></div></div><div =
class=3D""><br class=3D""></div><div class=3D"">Here it is in prose =
in&nbsp;<a =
href=3D"https://datatracker.ietf.org/doc/html/draft-ietf-suit-manifest-16#=
section-5.2" class=3D"">SUIT in section 5.2</a>:</div><div class=3D""><br =
class=3D""></div><div class=3D""><pre class=3D"newpage" =
style=3D"font-size: 13.333333015441895px; margin-top: 0px; =
margin-bottom: 0px; break-before: page; caret-color: rgb(0, 0, 0); =
color: rgb(0, 0, 0);"> These blocks
   are one of:

</pre><pre class=3D"newpage" style=3D"font-size: 13.333333015441895px; =
margin-top: 0px; margin-bottom: 0px; break-before: page; caret-color: =
rgb(0, 0, 0);"><span style=3D"color: rgb(0, 0, 0);" class=3D"">
   *  COSE_Sign_Tagged

   *  COSE_Sign1_Tagged

   *  COSE_Mac_Tagged

   *  COSE_Mac0_Tagged

   Each of these objects is used in detached payload mode.  </span><font =
color=3D"#4578ff" class=3D"">The payload
   is the bstr-wrapped SUIT_Digest.</font><font color=3D"#000000" =
class=3D"">
</font></pre></div><div class=3D""><br class=3D""></div><div =
class=3D""><br class=3D""></div><div class=3D"">Here it is in&nbsp;<a =
href=3D"https://datatracker.ietf.org/doc/html/rfc8392#section-7.1" =
class=3D"">CWT, section 7.1 in prose</a></div><div class=3D""><br =
class=3D""></div><div class=3D""><pre class=3D"newpage" =
style=3D"font-size: 13.333333015441895px; margin-top: 0px; =
margin-bottom: 0px; break-before: page; caret-color: rgb(0, 0, =
0);"><span style=3D"color: rgb(0, 0, 0);" class=3D"">   1.  Create a CWT =
Claims Set containing the desired claims.

   2.  </span><font color=3D"#4578ff" class=3D"">Let the Message be the =
binary representation of the CWT Claims
       Set.</font><font color=3D"#000000" class=3D"">

   3.  Create a COSE Header containing the desired set of Header
       Parameters.  The COSE Header MUST be valid per the [</font><a =
href=3D"https://datatracker.ietf.org/doc/html/rfc8152" title=3D"&quot;CBOR=
 Object Signing and Encryption (COSE)&quot;" style=3D"color: rgb(0, 0, =
0);" class=3D"">RFC8152</a><font color=3D"#000000" class=3D"">]
       specification.

   4.  Depending upon whether the CWT is signed, MACed, or encrypted,
       there are three cases:

       *  If the CWT is signed, create a COSE_Sign/COSE_Sign1 object
          using the Message as the COSE_Sign/COSE_Sign1 Payload; all
          steps specified in [</font><a =
href=3D"https://datatracker.ietf.org/doc/html/rfc8152" title=3D"&quot;CBOR=
 Object Signing and Encryption (COSE)&quot;" style=3D"color: rgb(0, 0, =
0);" class=3D"">RFC8152</a><font color=3D"#000000" class=3D"">] for =
creating a COSE_Sign/
          COSE_Sign1 object MUST be followed.</font></pre><div =
class=3D""><br class=3D""></div></div><div class=3D""><br =
class=3D""></div><div class=3D"">EAT inherits this from CWT so it =
doesn=E2=80=99t need to say it explicitly.&nbsp;</div><div class=3D""><br =
class=3D""></div><div class=3D"">However EAT uses CDDL so it is a =
possibility that EAT can do what CoSWID did.</div><div class=3D""><br =
class=3D""></div><br class=3D""><div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D"">On Dec 8, 2021, at 4:46 AM, =
Hannes Tschofenig &lt;<a href=3D"mailto:Hannes.Tschofenig@arm.com" =
class=3D"">Hannes.Tschofenig@arm.com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">Hi =
Carsten,<br class=3D""><br class=3D"">I suspect Laurence is sending this =
email because of his work on EAT. I am arguing that an attempt to =
improve the CDDL for the mentioned specs will not lead to any =
improvement at all because the problem is elsewhere. I am saying that =
because I have just spent many hours reading the EAT spec.<br =
class=3D""><br class=3D"">Ciao<br class=3D"">Hannes<br class=3D""><br =
class=3D"">-----Original Message-----<br class=3D"">From: Carsten =
Bormann &lt;<a href=3D"mailto:cabo@tzi.org" =
class=3D"">cabo@tzi.org</a>&gt;<br class=3D"">Sent: Wednesday, December =
8, 2021 1:37 PM<br class=3D"">To: Hannes Tschofenig &lt;<a =
href=3D"mailto:Hannes.Tschofenig@arm.com" =
class=3D"">Hannes.Tschofenig@arm.com</a>&gt;<br class=3D"">Cc: Laurence =
Lundblade &lt;<a href=3D"mailto:lgl@island-resort.com" =
class=3D"">lgl@island-resort.com</a>&gt;; cose &lt;<a =
href=3D"mailto:cose@ietf.org" class=3D"">cose@ietf.org</a>&gt;; <a =
href=3D"mailto:cbor@ietf.org" class=3D"">cbor@ietf.org</a>; Henk =
Birkholz &lt;<a href=3D"mailto:henk.birkholz@sit.fraunhofer.de" =
class=3D"">henk.birkholz@sit.fraunhofer.de</a>&gt;<br class=3D"">Subject: =
Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD<br class=3D""><br =
class=3D"">On 2021-12-08, at 13:30, Hannes Tschofenig &lt;<a =
href=3D"mailto:Hannes.Tschofenig@arm.com" =
class=3D"">Hannes.Tschofenig@arm.com</a>&gt; wrote:<br =
class=3D""><blockquote type=3D"cite" class=3D""><br class=3D"">EAT by =
itself is not really an interoperable spec. COSE on its own is not =
interoperable either.<br class=3D""></blockquote><br class=3D"">If I =
guess about the definition of "interoperable spec=E2=80=9D you are using =
here, ASCII is not an interoperable spec either - you still have to =
agree on what the text means=E2=80=A6 &nbsp;Still, ASCII was kind of =
useful as the basis for a lot of interoperability, I think.<br =
class=3D""><br class=3D"">I think the point here was to shape some CDDL =
that makes it easier to talk about the way a more specific =
(interoperable?) spec uses COSE (which does have CDDL, just not in a way =
that usually can be integrated as-is to express the additional =
constraints a COSE-using specification typically makes).<br class=3D""><br=
 class=3D"">Gr=C3=BC=C3=9Fe, Carsten<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""></div></div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_8367B9BA-5C32-4196-B3CF-41EBDE6DEF5C--


From nobody Wed Dec  8 06:46:18 2021
Return-Path: <Hannes.Tschofenig@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 845143A09D5; Wed,  8 Dec 2021 06:46:04 -0800 (PST)
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, 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=2h+qEbLL; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=2h+qEbLL
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 raf1HJuADhoY; Wed,  8 Dec 2021 06:45:59 -0800 (PST)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80048.outbound.protection.outlook.com [40.107.8.48]) (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 BCDB03A09A3; Wed,  8 Dec 2021 06:45:58 -0800 (PST)
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=bKwUq8/R5Td/L2AzbrNkopl+RET1idTHGeXPbHjNy7k=; b=2h+qEbLLnXFNRrN1XZqmT2b+cDz6F6kwiENpRqZ/ZOazNen1mLZDcMnIzEmlqIUVTGsZP+lVCoP1PGPfHEsBHbGkxc3RchuM8c6DoBCmxHSIDapdZXF4mwdjd7fTAeSPBc1Sll/oSZwswEHzuVDQI48zErxYDXc7tHikUmnH+SY=
Received: from DU2PR04CA0244.eurprd04.prod.outlook.com (2603:10a6:10:28e::9) by AS8PR08MB6184.eurprd08.prod.outlook.com (2603:10a6:20b:29c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.16; Wed, 8 Dec 2021 14:45:54 +0000
Received: from DB5EUR03FT010.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28e:cafe::38) by DU2PR04CA0244.outlook.office365.com (2603:10a6:10:28e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.16 via Frontend Transport; Wed, 8 Dec 2021 14:45:54 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;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 DB5EUR03FT010.mail.protection.outlook.com (10.152.20.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.13 via Frontend Transport; Wed, 8 Dec 2021 14:45:54 +0000
Received: ("Tessian outbound dbb52aec1fa6:v110"); Wed, 08 Dec 2021 14:45:54 +0000
X-CR-MTA-TID: 64aa7808
Received: from c255b6dedce4.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E52F3F17-F551-4B7A-B12A-A11114C4455C.1;  Wed, 08 Dec 2021 14:45:48 +0000
Received: from EUR03-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c255b6dedce4.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 08 Dec 2021 14:45:48 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B39P7WJkeboBrL6htu20SLINdeWtM86WlkwocZwCYopKS8bwg/f/Bay8T+nF+HURPGZr+b4RLjAYmu9w+HmS97wqo+waUpfcyICuc54zYE9Ig//HzROGapzQ0yA3I9CtH9UZtGkPwsIRR93PlTKBvJ8vZs5dpqtEuwfySrHfwTWyWl79Y9RaI1a3Uy0E1vTUJpUEnUfYxGpJGy6OfRDsboWDA8TnEOkfI2UwVcLy3DruetFeo6i7wXimuMYyDsUI7LWte9794JMRHN0zDStHBNgx0+3MrsBGipfk6SEi767YWVG1f03Tyiaez/VVc7X+4AM7TpT8UzDEF5eGZ16EdQ==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bKwUq8/R5Td/L2AzbrNkopl+RET1idTHGeXPbHjNy7k=; b=KmJXUrUY4HnDQvej98SLWYmTRBVDn4QmsCM64iwNii9B9YBZwvMBDhl/s4lNn1sqGBQZiWaI14W+kLNXWSPBzf7Lf4+4dxOCPic9V3FXDFi/GIrJMGzHa6PThubV0BxUKyrx/2Lv/k+/xfatFV1sth79XRNfqmE+PzPAYBN9RCQV0ecg5hqtv10XralOASphwEPNCq8DY1a3cr7+fV08Ci6+cqguG7BujoT6DpgaQmpmzdqQ3PuzNIvMkZ1qvDJd/EDAc5z1LIN9d76O/V09l7XYWZYin5vIcuyv8gWEpyDPzmRNXKd7tR2G0+PJhgAoKd1K6Fc0xdTr9V1YlSW54w==
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=bKwUq8/R5Td/L2AzbrNkopl+RET1idTHGeXPbHjNy7k=; b=2h+qEbLLnXFNRrN1XZqmT2b+cDz6F6kwiENpRqZ/ZOazNen1mLZDcMnIzEmlqIUVTGsZP+lVCoP1PGPfHEsBHbGkxc3RchuM8c6DoBCmxHSIDapdZXF4mwdjd7fTAeSPBc1Sll/oSZwswEHzuVDQI48zErxYDXc7tHikUmnH+SY=
Received: from DBBPR08MB5915.eurprd08.prod.outlook.com (2603:10a6:10:20d::17) by DB8PR08MB5290.eurprd08.prod.outlook.com (2603:10a6:10:a5::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.20; Wed, 8 Dec 2021 14:45:46 +0000
Received: from DBBPR08MB5915.eurprd08.prod.outlook.com ([fe80::dd96:eb7:b263:b290]) by DBBPR08MB5915.eurprd08.prod.outlook.com ([fe80::dd96:eb7:b263:b290%4]) with mapi id 15.20.4755.022; Wed, 8 Dec 2021 14:45:46 +0000
From: Hannes Tschofenig <Hannes.Tschofenig@arm.com>
To: Laurence Lundblade <lgl@island-resort.com>
CC: Carsten Bormann <cabo@tzi.org>, cose <cose@ietf.org>, "cbor@ietf.org" <cbor@ietf.org>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
Thread-Topic: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
Thread-Index: AQHX67gvNbcS2jfqyUOwtKjobSbIKKwohLpQgAAEVwCAAAJZAIAAHY8AgAAA9dA=
Date: Wed, 8 Dec 2021 14:45:46 +0000
Message-ID: <DBBPR08MB59152F25FC0FC6C23E650F66FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org> <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <27539CB9-42E7-4313-8786-58B0A504E7E2@island-resort.com>
In-Reply-To: <27539CB9-42E7-4313-8786-58B0A504E7E2@island-resort.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ts-tracking-id: 0924C27BC197D64F8FFBC9E5BB30D3A1.0
x-checkrecipientchecked: true
Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
X-MS-Office365-Filtering-Correlation-Id: c37b42ac-6f5b-4e18-b666-08d9ba59700b
x-ms-traffictypediagnostic: DB8PR08MB5290:EE_|DB5EUR03FT010:EE_|AS8PR08MB6184:EE_
X-Microsoft-Antispam-PRVS: <AS8PR08MB61842C060C47A025224EE7A8FA6F9@AS8PR08MB6184.eurprd08.prod.outlook.com>
x-checkrecipientrouted: true
nodisclaimer: true
x-ms-oob-tlc-oobclassifiers: OLM:8882;OLM:8882;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam-Untrusted: BCL:0;
X-Microsoft-Antispam-Message-Info-Original: d4DDA80gPPvMhiNh9ZB+Ml94O7pXaskSk5AFGYFuj/Y7pNvPN2V0CwpRg18WKUPS64gflSjhsVhjA61HZzknf+ah9YR3w1inun/Iio9A0Q35kqQHvhR866b1UhN59uZrnZtgFyEMaT28MvkZoUcPjIffvVlwesvTmidcycYauadEt3IIh9byi8lR58aEHAVMNPmU9s5tnF6aDy80bW0qhuiidMWH5NXjJquAUoe37KBd1HaETxlWSilEaWl4lj24L3bw0plssEs/TgiO64PiCK5bVzAYYRaS8o4mfOeONtbdMYF1PoaFLzxr0rz+5j8X+N3+OOj0sqleVhIxR7QaKCzjGFOMbbL/H9p7M5Iu5BVlqGV7Dtpp7hA0GUlFdr/dtX0cvbxGM3JmLAyqE5pxl/LHkoCf99zSdaPeHGkm1GcslHGwKlWVbfqzFgKPcyqF84vMVujCJGJBcBLCOt+sbF5n2a59L6upz0KwAK5tqfor3NdDpqx6C482FUeuOwb5NIqbUCPjqBiOLiTUMWx1jrvxrqXf4mxj43tGTMcQIfgzJBIs5Gr2zGwHM8cdBI+6aD/0nkftFwR+zEuwJupxAMdWOB+VitWTNOeiGfRDURQNz6uvdB+Yw9khg2qgDe3lD8o2ywpWjbEkI0TVRXcB+EoHUvSupuz42fRDy21PXMo3+th+TIb1K6/ZiP3QqGzF0cQw4ksAEdnzpNhMmzvL8JvttWqFI5sV1kXqTDCHlU5YMeIBgLLh6EupFJPkfu7L//Kwb+sz+y4ySpCRAMw5OQ71a1/s/l77UQhdnyFRs4r9OG4xGJrzVTEIQIjiAhir
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB5915.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(9686003)(55016003)(53546011)(54906003)(26005)(508600001)(38100700002)(122000001)(86362001)(33656002)(66476007)(76116006)(186003)(5660300002)(166002)(71200400001)(38070700005)(83380400001)(6506007)(6916009)(316002)(66556008)(64756008)(2906002)(66446008)(66946007)(4326008)(7696005)(8676002)(9326002)(8936002)(52536014); DIR:OUT; SFP:1101; 
Content-Type: multipart/alternative; boundary="_000_DBBPR08MB59152F25FC0FC6C23E650F66FA6F9DBBPR08MB5915eurp_"
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5290
Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT010.eop-EUR03.prod.protection.outlook.com
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id-Prvs: 1775ca5e-ad42-47b3-0bff-08d9ba596b2e
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: KTHl6vZ1Ry0nzXLVl5HO6mIqfWQCZco0w1jSzWO7LiooRBaiubElVCgUJ9/RYDH1T5dxOrbo0hdSO5C0TKJd3flz3++85LJRu+sPThQ8Xy+PrvhUaSGfGM5cdDJgpYtPUel7roFgORNUxxC7wm353uq3isDKBEl0Opbtn8I0L4CKR9oU8gc6UxJfKVBCjSbLpEaVyI4gsCv7F4D7HUEMuISU93p8Oh3vt0HL6zOslAcYCIEgJWtWZyC1Ivg0HbVhHnWJl2S1WX/YLecpiPAJhlT1NHgzRIv3AKGrf+u/IjsrsjB2o97xwjkW+mUfVAiZp+odv5yzWoRVoLEFbLo8ZFVnbW9ptKFqHjLbpzlzpbf3Qx3TXb7u+D0uC1vGI5pSBipu4Vzlj3k28OreQOE202ccJfUM/qKNHicOu4o2ood5IQygWem+DxOo1KpZ3IJtwQyrLjId5lpD5M0MQFtm92ai3csqhCMWBMzFZNV8zkp42caeVyb52rRBF2qlf1Bf178flVjvznqqq7CXKWl4k/o4Y8JjsqTfRyXd8MhQiz18U3c0s1cop1yegstPLLrHY0pgd+5Dyd/ExlTtc6mJla47SggDqhX99BS1mIoTAgjO34sc26Kg1KzWmBrPMeWTakWBkkcRPUSmYKXrC87l99Ueb/Ex3mOHnWIB6yuwrTzh5t5NfKARaZ83a/ntKu0qGgz1/9CqhB9BA35I8XGjgCTYkNq+W0Er4vSx8Jdezj+w25pNVlwtV3QWDXl0i51/ff2VMtmlrSaLoxMD/U4xFVVWjFtMhY6UjxIvhfQ6L9eFVM+ja776AUhseh0x+zhycO1sKT9I8H+kWJ6ILspI2xSXKgmebAmRZkHkCT5h2A9fAjeVxx6/0xd53gE775Cn
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)(36840700001)(46966006)(40470700001)(70586007)(9326002)(336012)(86362001)(55016003)(316002)(70206006)(7696005)(83380400001)(82310400004)(33964004)(356005)(166002)(81166007)(26005)(36860700001)(40460700001)(54906003)(8676002)(4326008)(450100002)(508600001)(5660300002)(9686003)(6506007)(53546011)(52536014)(8936002)(186003)(2906002)(107886003)(6862004)(47076005)(30864003)(33656002); DIR:OUT; SFP:1101; 
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2021 14:45:54.4187 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: c37b42ac-6f5b-4e18-b666-08d9ba59700b
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: DB5EUR03FT010.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6184
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/YaiPDMK2NZDX3SmdRJCPSRSJtWg>
Subject: Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 08 Dec 2021 14:46:13 -0000

--_000_DBBPR08MB59152F25FC0FC6C23E650F66FA6F9DBBPR08MB5915eurp_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

SGkgTGF1cmVuY2UsDQoNCklmIHlvdSBvbmx5IGNhcmUgYWJvdXQgaG93IHRvIHVzZSBDT1NFIENE
REwgaW4geW91ciBzcGVjIHRoZW4gdGhlIGFuc3dlciBpcyBzaW1wbGU6DQoNCg0KICAxLiAgSWYg
eW91IGFyZSBoYXBweSB3aXRoIHRoZSBjb25zdHJ1Y3RzIG9mZmVyZWQgYnkgQ09TRSwgdGhlbiB5
b3UganVzdCB1c2UgdGhlIENPU0UgQ0RETCBjb25zdHJ1Y3RzLg0KICAyLiAgSWYgeW91IGhhdmUg
dG8gYXBwbHkgYWRkaXRpb25hb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G8gYW55IG90aGVyIHBlcnNvbiwgdXNlIGl0IGZvciBhbnkgcHVycG9zZSwNCiBv
ciBzdG9yZSBvciBjb3B5IHRoZSBpbmZvcm1hdGlvbiBpbiBhbnkgbWVkaXVtLiBUaGFuayB5b3Uu
DQo8L2JvZHk+DQo8L2h0bWw+DQo=

--_000_DBBPR08MB59152F25FC0FC6C23E650F66FA6F9DBBPR08MB5915eurp_--


From nobody Wed Dec  8 07:48:39 2021
Return-Path: <blueroofmusic@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 CF4BD3A0A85 for <cbor@ietfa.amsl.com>; Wed,  8 Dec 2021 07:48:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level: 
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 7X-8NxwU7Sad for <cbor@ietfa.amsl.com>; Wed,  8 Dec 2021 07:48:32 -0800 (PST)
Received: from mail-ua1-x932.google.com (mail-ua1-x932.google.com [IPv6:2607:f8b0:4864:20::932]) (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 E3F803A0A87 for <cbor@ietf.org>; Wed,  8 Dec 2021 07:48:31 -0800 (PST)
Received: by mail-ua1-x932.google.com with SMTP id o1so5470567uap.4 for <cbor@ietf.org>; Wed, 08 Dec 2021 07:48:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dQztJ6Cy4Jc4c0Cw9NcXNyUnki84Z8e2gIAe1dXSBGE=; b=k5WZyGrkNkzlgFgsZqdnkJaWF1x4bKp9vK7bxivgCeUh8xeBHayH2IgbKn7R3pwJ8M AQt3j96iGyfthEqdZTrn9w//CmOG658sOPQ/9+nqSDtZnuK9yts7mrCYdzpnMzStKwOo B+0RanCCB7fqzyyeI4f/bQiAdU1ChDR/ToHpY+WPwR04O4209Lv8nFq05yzEipH3JHzi KDAlBPxvGSNNOlufqU8GfTQyTurZTLAaNZRPLWytj+ir6W9vTY5KAHFGo5lcpEOShTeK uOtsIkfInqsqAUMn9QWQ/4abzgi2sW4CmmYOd90r/ddhWM7lm6ElByvH/zNE/AHU1cFC jGZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dQztJ6Cy4Jc4c0Cw9NcXNyUnki84Z8e2gIAe1dXSBGE=; b=uuIaokgqjGjJNsb6frMwQsSSFnomCCK42r1G8f6wAZsbZWO1cUo26b9Vc5M5DNUc7r esT4XVt1hWe/oDz8eX3u/6dc7Py8E6WNpRPNkhUxpph+4DcQh+ldItBazCGxqoGtHC/X /skeD2a4SKtwpiV6qdgaolJVA46GcQ248WwxlmOye/pcScrkbnOobxuRoBB840GDjPB4 udzSXa0icVOqMwAAB8MORzkSZAdMToSl0O64YzTN8h/qcRRIxhetKsvvxvjZSrKaCj7t KQ7pRPyBTdj0CMpWisnZyU448GdmsQ6peLXjVc1j0VUreu0mitz95zTafuYhuWmgnhr/ 2BfQ==
X-Gm-Message-State: AOAM531ETGvvbVpGYx/gQmRbZ06UAU2JDQwbm6Yq7agwdAy+tp2mHMHC Z8/AT1UY7EQOQmBV9SIMVpy+bkkwYv71IF1AUoo=
X-Google-Smtp-Source: ABdhPJxiwc9Uo/u4pqMgAr7A29mwSCVmjE65WVorJ7GqJEY+nrILkfen2RJ0f7Y+SrZ2z/yWEEolx2DjEnMFJs8cGA0=
X-Received: by 2002:a67:31d1:: with SMTP id x200mr51891125vsx.76.1638978509660;  Wed, 08 Dec 2021 07:48:29 -0800 (PST)
MIME-Version: 1.0
References: <077EDC59-74CE-42B4-B651-BA8846719CD9@tzi.org> <BD71DE08-ABB4-445E-9215-AB8144F5A087@tzi.org>
In-Reply-To: <BD71DE08-ABB4-445E-9215-AB8144F5A087@tzi.org>
From: Ira McDonald <blueroofmusic@gmail.com>
Date: Wed, 8 Dec 2021 10:48:10 -0500
Message-ID: <CAN40gSurfgK8FCeiTO8=U3Nee36SUhAcBseAgCnqNfBj2H0+wA@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>, Ira McDonald <blueroofmusic@gmail.com>
Cc: cbor@ietf.org
Content-Type: multipart/alternative; boundary="000000000000dce6a905d2a46b50"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/pnz0ruumw08UuOOd9ocg2UTdB-o>
Subject: Re: [Cbor] Glitch in cddl-control AUTH48
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, 08 Dec 2021 15:48:37 -0000

--000000000000dce6a905d2a46b50
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Carsten,

+1 to correcting the oversight as you proposae, even in AUTH-48.

Cheers,
- Ira

*Ira McDonald (Musician / Software Architect)*

*Chair - SAE Trust Anchors and Authentication TF*
*Co-Chair - TCG Trusted Mobility Solutions WG*

*Co-Chair - TCG Metadata Access Protocol SG*








*Chair - Linux Foundation Open Printing WGSecretary - IEEE-ISTO Printer
Working GroupCo-Chair - IEEE-ISTO PWG Internet Printing Protocol WGIETF
Designated Expert - IPP & Printer MIBBlue Roof Music / High North
Inchttp://sites.google.com/site/blueroofmusic
<http://sites.google.com/site/blueroofmusic>http://sites.google.com/site/hi=
ghnorthinc
<http://sites.google.com/site/highnorthinc>mailto: blueroofmusic@gmail.com
<blueroofmusic@gmail.com>(permanent) PO Box 221  Grand Marais, MI 49839
906-494-2434*


On Tue, Dec 7, 2021 at 4:12 PM Carsten Bormann <cabo@tzi.org> wrote:

> Hi,
>
> In the last step (=E2=80=9CAUTH48=E2=80=9D) before a document like cddl-c=
ontrol becomes an
> RFC, the author(s) are supposed to do a full reread to capture any proble=
ms
> that remained hidden during the incremental development of the I-D.
>
> Normally, we find a few editorial problems (which we did; they since have
> been dealt with).
> This time, however, there is also a technical contradiction between an
> illustration (Figure 4) and the normative text that would need to be
> considered in making up the example in the illustration (
>
> Background: cddl-control deliberately allows byte string literals in
> places where text string literals would really make more sense.  The reas=
on
> is that the content of these literals often is specification text (ABNF)
> with embedded newlines, which are much easier to write as byte strings
> (where embedded newlines are allowed in RFC 8610) than as text strings
> (which inherit the JSON syntax that requires replacing every newline with=
 a
> linear \n, creating essentially unreadable source text).  This is
> demonstrated in Figure 2:
>
> >    c =3D "foo" .cat '
> >      bar
> >      baz
> >    '
> >    ; on a system where the newline is \n, is the same string as:
> >    b =3D "foo\n  bar\n  baz\n"
> >
> >        Figure 2: An Example of Concatenation of Text and Byte Strings
>
> So we handled that properly for .cat and .det, but it turns out we did no=
t
> for .abnf and .abnfb themselves.  Here, bullet 1 (which mostly is about t=
he
> target and its interpretation) in Section 3 tersely says:
>
> >    The controller string MUST be a text string.
>
> This is not only not what is implemented in the cddl tool (which accepts =
a
> byte string just fine), it is also directly contradicting Figure 4:
>
> >    oid =3D bytes .abnfb 'oid
> >    oid =3D 1*arc
> >    roid =3D *arc
> >    arc =3D [nlsb] %x00-7f
> >    nlsb =3D %x81-ff *%x80-ff
> >    '
> >
> >              Figure 4: Dedenting example: result of first .det
>
> To me, this is an oversight where we simply didn=E2=80=99t update that se=
ntence to
> the more useful way of accepting byte strings just for their better synta=
x
> handling newlines.  So I am suggesting we change the sentence to:
>
> > The controller MUST be a string.  When a byte string, it MUST be valid
> UTF-8 and is interpreted as the text string that has the same sequence of
> bytes.
>
> =E2=80=A6 which I=E2=80=99m suggesting as a fix in the excerpt of the AUT=
H48 processing
> mail copied below.  I apologize for not seeing this earlier.
>
> Our AD Francesca brought to my attention that cbor@ietf.org is not copied
> on AUTH48 processing; I had forgotten that (other WGs do that copying
> habitually).  So I didn=E2=80=99t think to bring this up separately here,=
 which I
> am now doing.
>
> You can find the text that will be published if we do make the last-minut=
e
> change, at the end of the bullet:
>
> https://www.rfc-editor.org/authors/rfc9165.html#section-3-4.1
>
> (Note that this text is an RFC-to-be, not the final RFC, please don=E2=80=
=99t
> start citing it as an RFC before it has been published.)
>
> Does anybody in the CBOR WG see a technical problem coming up with making
> this last minute fix?  If you see a problem (with implementation or use o=
f
> byte string literals not only in the controller arguments of .cat/.det, b=
ut
> also in those of .abnf/.abnfb), please speak up quickly; this is the last
> item standing in the way towards publishing this RFC.
>
> Gr=C3=BC=C3=9Fe, Carsten
>
>
>
> > Begin forwarded message:
> >
> > From: Carsten Bormann <cabo@tzi.org>
> > Date: 2021-12-04 at 17:00:03 CET
> > To: <rfc-editor@rfc-editor.org>
> > Cc: cbor-ads@ietf.org, cbor-chairs@ietf.org, Christian Ams=C3=BCss <
> christian@amsuess.com>, francesca.palombini@ericsson.com
> > Message-Id: <077EDC59-74CE-42B4-B651-BA8846719CD9@tzi.org>
> >
> [=E2=80=A6]
> > (0)
> > The last sentence in the first bullet in 3 says "The controller string
> MUST be a text string.=E2=80=9D.
> > However, the previous section=E2=80=99s example in Figure 4 happens to =
use a
> byte string literal, and leniently allowing both kinds of strings is also
> what is implemented.
> > I believe loosening this up has the upside of simplifying cases such as
> in Figure 4, and no downside, so I would suggest:
> >
> > OLD:
> > The controller string MUST be a text string.
> > NEW:
> > The controller MUST be a string.  When a byte string, it MUST be valid
> UTF-8 and is interpreted as the text string that has the same sequence of
> bytes.
> [=E2=80=A6]
>
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor
>

--000000000000dce6a905d2a46b50
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Carsten,<br><div><br></div><div>+1 to correcting the ov=
ersight as you proposae, even in AUTH-48.</div><div><br></div><div>Cheers,<=
/div><div>- Ira</div><div><br></div><div><div><div dir=3D"ltr" class=3D"gma=
il_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div><div=
 dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"l=
tr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div>=
<div dir=3D"ltr"><i><font size=3D"1">Ira McDonald (Musician / Software Arch=
itect)</font></i></div><div><i><font size=3D"1">Chair - SAE Trust Anchors a=
nd Authentication TF<br></font></i></div><div dir=3D"ltr"><i><font size=3D"=
1">Co-Chair - TCG Trusted Mobility Solutions WG</font></i></div><div><i><fo=
nt size=3D"1">Co-Chair - TCG Metadata Access Protocol SG<br></font></i></di=
v><div dir=3D"ltr"><i><font size=3D"1">Chair - Linux Foundation Open Printi=
ng WG<br>Secretary - IEEE-ISTO Printer Working Group<br>Co-Chair - IEEE-IST=
O PWG Internet Printing Protocol WG<br>IETF Designated Expert - IPP &amp; P=
rinter MIB<br>Blue Roof Music / High North Inc<br><a style=3D"color:rgb(51,=
51,255)" href=3D"http://sites.google.com/site/blueroofmusic" target=3D"_bla=
nk">http://sites.google.com/site/blueroofmusic</a><br><a style=3D"color:rgb=
(102,0,204)" href=3D"http://sites.google.com/site/highnorthinc" target=3D"_=
blank">http://sites.google.com/site/highnorthinc</a><br>mailto: <a href=3D"=
mailto:blueroofmusic@gmail.com" target=3D"_blank">blueroofmusic@gmail.com</=
a><br>(permanent) PO Box 221=C2=A0 Grand Marais, MI 49839=C2=A0 906-494-243=
4</font></i></div></div></div></div></div></div></div></div></div></div></d=
iv></div></div></div></div></div></div></div></div><br></div></div><br><div=
 class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Dec 7,=
 2021 at 4:12 PM Carsten Bormann &lt;<a href=3D"mailto:cabo@tzi.org">cabo@t=
zi.org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left=
:1ex">Hi,<br>
<br>
In the last step (=E2=80=9CAUTH48=E2=80=9D) before a document like cddl-con=
trol becomes an RFC, the author(s) are supposed to do a full reread to capt=
ure any problems that remained hidden during the incremental development of=
 the I-D.<br>
<br>
Normally, we find a few editorial problems (which we did; they since have b=
een dealt with).<br>
This time, however, there is also a technical contradiction between an illu=
stration (Figure 4) and the normative text that would need to be considered=
 in making up the example in the illustration (<br>
<br>
Background: cddl-control deliberately allows byte string literals in places=
 where text string literals would really make more sense.=C2=A0 The reason =
is that the content of these literals often is specification text (ABNF) wi=
th embedded newlines, which are much easier to write as byte strings (where=
 embedded newlines are allowed in RFC 8610) than as text strings (which inh=
erit the JSON syntax that requires replacing every newline with a linear \n=
, creating essentially unreadable source text).=C2=A0 This is demonstrated =
in Figure 2:<br>
<br>
&gt;=C2=A0 =C2=A0 c =3D &quot;foo&quot; .cat &#39;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 bar<br>
&gt;=C2=A0 =C2=A0 =C2=A0 baz<br>
&gt;=C2=A0 =C2=A0 &#39;<br>
&gt;=C2=A0 =C2=A0 ; on a system where the newline is \n, is the same string=
 as:<br>
&gt;=C2=A0 =C2=A0 b =3D &quot;foo\n=C2=A0 bar\n=C2=A0 baz\n&quot;<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 Figure 2: An Example of Concatenation of Te=
xt and Byte Strings<br>
<br>
So we handled that properly for .cat and .det, but it turns out we did not =
for .abnf and .abnfb themselves.=C2=A0 Here, bullet 1 (which mostly is abou=
t the target and its interpretation) in Section 3 tersely says:<br>
<br>
&gt;=C2=A0 =C2=A0 The controller string MUST be a text string.<br>
<br>
This is not only not what is implemented in the cddl tool (which accepts a =
byte string just fine), it is also directly contradicting Figure 4:<br>
<br>
&gt;=C2=A0 =C2=A0 oid =3D bytes .abnfb &#39;oid<br>
&gt;=C2=A0 =C2=A0 oid =3D 1*arc<br>
&gt;=C2=A0 =C2=A0 roid =3D *arc<br>
&gt;=C2=A0 =C2=A0 arc =3D [nlsb] %x00-7f<br>
&gt;=C2=A0 =C2=A0 nlsb =3D %x81-ff *%x80-ff<br>
&gt;=C2=A0 =C2=A0 &#39;<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Figure 4: Dedenting ex=
ample: result of first .det<br>
<br>
To me, this is an oversight where we simply didn=E2=80=99t update that sent=
ence to the more useful way of accepting byte strings just for their better=
 syntax handling newlines.=C2=A0 So I am suggesting we change the sentence =
to:<br>
<br>
&gt; The controller MUST be a string.=C2=A0 When a byte string, it MUST be =
valid UTF-8 and is interpreted as the text string that has the same sequenc=
e of bytes.<br>
<br>
=E2=80=A6 which I=E2=80=99m suggesting as a fix in the excerpt of the AUTH4=
8 processing mail copied below.=C2=A0 I apologize for not seeing this earli=
er.<br>
<br>
Our AD Francesca brought to my attention that <a href=3D"mailto:cbor@ietf.o=
rg" target=3D"_blank">cbor@ietf.org</a> is not copied on AUTH48 processing;=
 I had forgotten that (other WGs do that copying habitually).=C2=A0 So I di=
dn=E2=80=99t think to bring this up separately here, which I am now doing.<=
br>
<br>
You can find the text that will be published if we do make the last-minute =
change, at the end of the bullet:<br>
<br>
<a href=3D"https://www.rfc-editor.org/authors/rfc9165.html#section-3-4.1" r=
el=3D"noreferrer" target=3D"_blank">https://www.rfc-editor.org/authors/rfc9=
165.html#section-3-4.1</a><br>
<br>
(Note that this text is an RFC-to-be, not the final RFC, please don=E2=80=
=99t start citing it as an RFC before it has been published.)<br>
<br>
Does anybody in the CBOR WG see a technical problem coming up with making t=
his last minute fix?=C2=A0 If you see a problem (with implementation or use=
 of byte string literals not only in the controller arguments of .cat/.det,=
 but also in those of .abnf/.abnfb), please speak up quickly; this is the l=
ast item standing in the way towards publishing this RFC.<br>
<br>
Gr=C3=BC=C3=9Fe, Carsten<br>
<br>
<br>
<br>
&gt; Begin forwarded message:<br>
&gt; <br>
&gt; From: Carsten Bormann &lt;<a href=3D"mailto:cabo@tzi.org" target=3D"_b=
lank">cabo@tzi.org</a>&gt;<br>
&gt; Date: 2021-12-04 at 17:00:03 CET<br>
&gt; To: &lt;<a href=3D"mailto:rfc-editor@rfc-editor.org" target=3D"_blank"=
>rfc-editor@rfc-editor.org</a>&gt;<br>
&gt; Cc: <a href=3D"mailto:cbor-ads@ietf.org" target=3D"_blank">cbor-ads@ie=
tf.org</a>, <a href=3D"mailto:cbor-chairs@ietf.org" target=3D"_blank">cbor-=
chairs@ietf.org</a>, Christian Ams=C3=BCss &lt;<a href=3D"mailto:christian@=
amsuess.com" target=3D"_blank">christian@amsuess.com</a>&gt;, <a href=3D"ma=
ilto:francesca.palombini@ericsson.com" target=3D"_blank">francesca.palombin=
i@ericsson.com</a><br>
&gt; Message-Id: &lt;<a href=3D"mailto:077EDC59-74CE-42B4-B651-BA8846719CD9=
@tzi.org" target=3D"_blank">077EDC59-74CE-42B4-B651-BA8846719CD9@tzi.org</a=
>&gt;<br>
&gt; <br>
[=E2=80=A6]<br>
&gt; (0)<br>
&gt; The last sentence in the first bullet in 3 says &quot;The controller s=
tring MUST be a text string.=E2=80=9D.<br>
&gt; However, the previous section=E2=80=99s example in Figure 4 happens to=
 use a byte string literal, and leniently allowing both kinds of strings is=
 also what is implemented.<br>
&gt; I believe loosening this up has the upside of simplifying cases such a=
s in Figure 4, and no downside, so I would suggest:<br>
&gt; <br>
&gt; OLD:<br>
&gt; The controller string MUST be a text string.<br>
&gt; NEW:<br>
&gt; The controller MUST be a string.=C2=A0 When a byte string, it MUST be =
valid UTF-8 and is interpreted as the text string that has the same sequenc=
e of bytes.<br>
[=E2=80=A6]<br>
<br>
_______________________________________________<br>
CBOR mailing list<br>
<a href=3D"mailto:CBOR@ietf.org" target=3D"_blank">CBOR@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/cbor" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.ietf.org/mailman/listinfo/cbor</a><br>
</blockquote></div>

--000000000000dce6a905d2a46b50--


From nobody Wed Dec  8 08:08:40 2021
Return-Path: <Hannes.Tschofenig@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 51BDC3A0AD4; Wed,  8 Dec 2021 08:08:37 -0800 (PST)
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=Ax3+wSsv; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=Ax3+wSsv
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 1UT2moTOIwsW; Wed,  8 Dec 2021 08:08:32 -0800 (PST)
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2048.outbound.protection.outlook.com [40.107.20.48]) (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 D21533A0AD3; Wed,  8 Dec 2021 08:08:31 -0800 (PST)
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=+apfa82kcWJ8WjucTW/ZzUCxqlZfLeppsqtmbWPtbe0=; b=Ax3+wSsvmaZfido2vLgmKyMuHcHW433jwVe1K+iaQPAC5tN1wS57WR71JFFg+/sZu3G9K/UcwNGC77psHfkws5+013FgKDNPnS74oRWN4FNB2/1C8XaOkgVQUI/wL0wm6T/Pfh6UAAb1OO9+i/3DGtyHmNZvRvyhZ4ihBscoZVM=
Received: from AS9PR06CA0028.eurprd06.prod.outlook.com (2603:10a6:20b:462::16) by AM0PR08MB3716.eurprd08.prod.outlook.com (2603:10a6:208:106::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.11; Wed, 8 Dec 2021 16:08:28 +0000
Received: from VE1EUR03FT047.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:462:cafe::ad) by AS9PR06CA0028.outlook.office365.com (2603:10a6:20b:462::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.11 via Frontend Transport; Wed, 8 Dec 2021 16:08:27 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;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 VE1EUR03FT047.mail.protection.outlook.com (10.152.19.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.13 via Frontend Transport; Wed, 8 Dec 2021 16:08:26 +0000
Received: ("Tessian outbound 9a8c656e7c94:v110"); Wed, 08 Dec 2021 16:08:26 +0000
X-CR-MTA-TID: 64aa7808
Received: from 929b31dfe03d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5B10758F-C5CE-4453-9DD8-D87F69F36259.1;  Wed, 08 Dec 2021 16:08:19 +0000
Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 929b31dfe03d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 08 Dec 2021 16:08:19 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QrGBfl1KPpL5mKgWFEYjA3RFlQNPGQ9Qq18Z62z6X0AOD245+q4pflQSYHi7JQMPviH7ZOEAlQrshXVno6XUNZqOyuVbnxDEEbar3QEPTeK7LIlQJ19AfkF6E5tTQvUttaKSdeaUfPbjz/YmlVWMPSDoyBtayMtpGyEpuvXC9TWxMDHyCk2Undc0i2kKEjeKXwnThPO4R+9GtHEYdFOUyVOBV7crWnYPhWPo+gcrcNzQYIwYJ9pevMPuj8naCySlFv5Dt4LFkLNyKMSauP5+zvG0GAWaUtfKMAYJDrGYlCSpBKffk3VLl2HesBpDu0c3Bc6QVkDny1eJaNDtxv0qcQ==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+apfa82kcWJ8WjucTW/ZzUCxqlZfLeppsqtmbWPtbe0=; b=gtN5PYl/EhpV7UgD0H3eQPKBk/W6ovXrY0ABC4ywXfT+DB2FKFup0z4UnrFcVOXXynH118FI0WFmNlzhRAStuQS/Am3V0+Xt2+Xe12BByOt/h9YuK1FHtpPLvvqIgsWkX9dew9GtEc3Dp48r3eOLMng4Whs6jO8IYubEyuNFyx/4mPpkdhxvmBtUgWzdH+jC1Kh0wocDzcPi7XV9OGWBxRIDn4+FJhuTUww8/niZjDCJhAMyHVC5+qDdV0DntqHrcDBsZ9W6vL3AfrXdE33SdSa9RMgxfO5QSUBui4lwndh4Nubm1oeY2M3uDnkN9qdHorxspvqba4NfoSzZjsnAXw==
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=+apfa82kcWJ8WjucTW/ZzUCxqlZfLeppsqtmbWPtbe0=; b=Ax3+wSsvmaZfido2vLgmKyMuHcHW433jwVe1K+iaQPAC5tN1wS57WR71JFFg+/sZu3G9K/UcwNGC77psHfkws5+013FgKDNPnS74oRWN4FNB2/1C8XaOkgVQUI/wL0wm6T/Pfh6UAAb1OO9+i/3DGtyHmNZvRvyhZ4ihBscoZVM=
Received: from DBBPR08MB5915.eurprd08.prod.outlook.com (2603:10a6:10:20d::17) by DB7PR08MB3898.eurprd08.prod.outlook.com (2603:10a6:10:30::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.21; Wed, 8 Dec 2021 16:08:17 +0000
Received: from DBBPR08MB5915.eurprd08.prod.outlook.com ([fe80::dd96:eb7:b263:b290]) by DBBPR08MB5915.eurprd08.prod.outlook.com ([fe80::dd96:eb7:b263:b290%4]) with mapi id 15.20.4755.022; Wed, 8 Dec 2021 16:08:17 +0000
From: Hannes Tschofenig <Hannes.Tschofenig@arm.com>
To: Carsten Bormann <cabo@tzi.org>
CC: Laurence Lundblade <lgl@island-resort.com>, cose <cose@ietf.org>, "cbor@ietf.org" <cbor@ietf.org>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
Thread-Topic: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
Thread-Index: AQHX67gvNbcS2jfqyUOwtKjobSbIKKwohLpQgAAEVwCAAAJZAIAAC58AgAAFYeA=
Date: Wed, 8 Dec 2021 16:08:17 +0000
Message-ID: <DBBPR08MB59159E4701598A7654E5A5A8FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org> <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <F51A9E64-D6DE-464C-8443-20009AE8E98D@tzi.org>
In-Reply-To: <F51A9E64-D6DE-464C-8443-20009AE8E98D@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ts-tracking-id: B23331E978B4024D9B6B0C15784565F9.0
x-checkrecipientchecked: true
Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
X-MS-Office365-Filtering-Correlation-Id: 36c5e96e-8b30-4964-efba-08d9ba64f7f9
x-ms-traffictypediagnostic: DB7PR08MB3898:EE_|VE1EUR03FT047:EE_|AM0PR08MB3716:EE_
X-Microsoft-Antispam-PRVS: <AM0PR08MB3716A371EB3EE92C8C606842FA6F9@AM0PR08MB3716.eurprd08.prod.outlook.com>
x-checkrecipientrouted: true
nodisclaimer: true
x-ms-oob-tlc-oobclassifiers: OLM:9508;OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam-Untrusted: BCL:0;
X-Microsoft-Antispam-Message-Info-Original: hJkTTmNJt2eHDiWyKtODUVxGOajsVmORGqpbxFWewZS+yc3wnkrePHMMQoAmmx5bOSTK18ddeWGe/Ltv10HC7czOPmCKPcxnE9P35901h6WB6tFzee4A6zpuCLPajzEiTspzC8Y+87z0XRiDzB4kbs3nzGKDlPukEoaMN5AJ/FNTevcHkByrH/DMLnJDWtc1h60kmEcFEujW4gWQtAjFQBLzwQbQFq0/f+EmDwzcRNGsHyLkHpORJ4JveRRq3eSEXL6OSz0yIC5r3D/a+qrrk06Il/ppPcOc2bdEF4USqPSdY4Cyfg3IgbxV87VyIQWKJ7wr2LMctrZEP1/BwOO24O4pO3e+CrFWCjVkj4h+G06BkPBvw5F9Kdv/1C8woNTES/F9jqSpx46hNZhoHj7T/Yh7RFxpm2UIbuMJOB47e1GM8K65BY4yq/dhMJh6hnsSqChgTa23VaTFLSatNXZ4TSH/1/kcU1cDEng/cTQSJ30OTLaa0aLHuOJOksS84zyyMzcrdEwxDNeVTgqrYlnUafrl4PxmY8376SUYsq2thAAmErfmeeO5YAKDv5BDwODZIyxl87WPFkGz3Y9RTP/Mk+AgGCIBVglSANsYlpk+ZNUZ4FLXbTagTBoEobutLceIv7/lJ0g1z3W025byXw7nmw6+h5F+cqrWzltX1mIw9FnDbQPcWqjUfUGD/+nx2lwhHlJKTG540apCsnSf3+eCDQ==
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB5915.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(38100700002)(66946007)(66556008)(64756008)(4326008)(66446008)(71200400001)(66476007)(9686003)(122000001)(7696005)(26005)(186003)(52536014)(33656002)(8936002)(83380400001)(2906002)(316002)(6916009)(54906003)(53546011)(508600001)(38070700005)(5660300002)(6506007)(76116006)(8676002)(86362001)(55016003); DIR:OUT; SFP:1101; 
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3898
Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT047.eop-EUR03.prod.protection.outlook.com
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id-Prvs: 4157a532-2a4a-4960-2f7c-08d9ba64f280
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: Ut4WPJLa8eKUwy9tmSKK+ERan9DnbNZzk0nUGBtYqxyiy2oLxj9VdGIojKblMG+qcwq3aTCx8l19/y3ZAnol5J/mb2dG71LDIN63ExMA73m0kvPTRKOsMDBiQyr2mgcyoGEVauiHxonVaBN3/MDa776NBrZT7XdbaVvRX8XLpkAPtHM2wutFz2m/KSoHJctyUAjgZjjddbSbpWzwVqxo+hUz2Ait36DAd7FOuo/TfqrLhy7R+fP8I8fHzp3med0tInXlA6i9LGBZjTkkr9y/vTZsJ1JIwEhPYqBPjU+kDx+PkCusbkfze0BtjyJl5APdlhH3oY5hzXt3t72xjuBKVt4I+XaQHT0FU8R7j3fhS4IrlwI8mFctn0I+hcAbl8Was+I33pTd9GSw0mI/vJSsfZICOiEv518qesDuOgfFSk/oh85CDZ/N5PlrEGGnptM23UmcHn6AHRGzclWbMbSWQrMuQ4E/UMpbvO7rky4V2oUS6d/BKYoIVNnLCd2YRexJOfj+IFS48zBLoiSRB/NbdIvr4HEAplXEamG2gXMoJt96fRQdKD7CuEMFkwsIaTDBtZ9GKsbf48dJG432iea4TkxxGzRkQdT4LOat+WEvb4kBdeVxsT+JulRFsuDQGbO6S/eB1JAh18GXMTSOxXa2ifkB6xdbvDWZk1KK3oAyRLbah1Lk89Av5+awsfztBbIHyJNDk/PSontbXlUsGP3IXq8qc45RVDGjp+EXlIpO1V/uYW5/xrxF/r6Hy8zq7CQJ7o33kRX2ebclUCnzY8NdwQ==
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)(36840700001)(46966006)(40470700001)(36860700001)(450100002)(83380400001)(82310400004)(5660300002)(508600001)(40460700001)(336012)(356005)(4326008)(2906002)(55016003)(7696005)(8676002)(8936002)(81166007)(70586007)(33656002)(86362001)(316002)(6862004)(52536014)(53546011)(107886003)(9686003)(186003)(47076005)(54906003)(6506007)(26005)(70206006); DIR:OUT; SFP:1101; 
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2021 16:08:26.7609 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 36c5e96e-8b30-4964-efba-08d9ba64f7f9
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: VE1EUR03FT047.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3716
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/GI1tluvxGeoKkqo99PoTFpN2HIM>
Subject: Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 08 Dec 2021 16:08:37 -0000

SGkgQ2Fyc3RlbiwNCg0KTGV0IHVzIGlnbm9yZSB0aGUgY3VycmVudCBzdGF0dXMgb2YgdGhlIEVB
VCBzcGVjIGZvciBhIG1vbWVudC4NCg0KTGF1cmVuY2Ugd2FzIHNheWluZzoNCiINCkNvU1dJRCBy
ZXBsaWNhdGVzIGFuZCBtb2RpZmllcyBhIGxvdCBvZiBDT1NFIENEREwgaW4gbm9ybWF0aXZlIHRl
eHQgcHJpbWFyaWx5IHNvIGl0IGNhbiBmdWxseSBzcGVjaWZ5IHRoZSBDT1NFIHBheWxvYWQgd2l0
aCBhIC5jYm9yIGNvbnRyb2wuDQoNClNVSVQgZG9lc27igJl0IHJlcGxpY2F0ZSBDT1NFLiBJdCBz
cGVjaWZpZXMgdGhlIENPU0UgcGF5bG9hZCBpbiBwcm9zZS4NCiINCg0KVGhlIHN0YXRlbWVudCBh
Ym91dCBTVUlUIGlzIG9ubHkgcGFydGlhbGx5IHRydWUuIEF0IHRoZSBiZWdpbm5pbmcgd2Ugb25s
eSByZWZlc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JQ0U6IFRoZSBjb250ZW50cyBv
ZiB0aGlzIGVtYWlsIGFuZCBhbnkgYXR0YWNobWVudHMgYXJlIGNvbmZpZGVudGlhbCBhbmQgbWF5
IGFsc28gYmUgcHJpdmlsZWdlZC4gSWYgeW91IGFyZSBub3QgdGhlIGludGVuZGVkIHJlY2lwaWVu
dCwgcGxlYXNlIG5vdGlmeSB0aGUgc2VuZGVyIGltbWVkaWF0ZWx5IGFuZCBkbyBub3QgZGlzY2xv
c2UgdGhlIGNvbnRlbnRzIHRvIGFueSBvdGhlciBwZXJzb24sIHVzZSBpdCBmb3IgYW55IHB1cnBv
c2UsIG9yIHN0b3JlIG9yIGNvcHkgdGhlIGluZm9ybWF0aW9uIGluIGFueSBtZWRpdW0uIFRoYW5r
IHlvdS4NCg==


From nobody Wed Dec  8 09:47:14 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 130A23A086B for <cbor@ietfa.amsl.com>; Wed,  8 Dec 2021 09:47:12 -0800 (PST)
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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 UeQ9VKBvntyB for <cbor@ietfa.amsl.com>; Wed,  8 Dec 2021 09:47:06 -0800 (PST)
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 D18A83A0878 for <cbor@ietf.org>; Wed,  8 Dec 2021 09:47:06 -0800 (PST)
Received: from [192.168.1.7] ([75.80.148.243]) by :SMTPAUTH: with ESMTPA id v120m63EHmfO9v121mCFxa; Wed, 08 Dec 2021 10:47:05 -0700
X-CMAE-Analysis: v=2.4 cv=DfXSFthW c=1 sm=1 tr=0 ts=61b0ef99 a=VPU1mRQhDhA4uSX60JRRww==:117 a=VPU1mRQhDhA4uSX60JRRww==:17 a=7CQSdrXTAAAA:8 a=RDk_gf4Sgsb-ipFJy3AA:9 a=CjuIK1q_8ugA:10 a=iGhmJdy9a58gvXFyleYA:9 a=w27S44N8fsmviEEI: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: <838A2E81-2A4B-457E-86BA-D7C553C3CA2C@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_CF312FC4-5C31-4558-B28D-9118BB28B468"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\))
Date: Wed, 8 Dec 2021 09:47:04 -0800
In-Reply-To: <DBBPR08MB59159E4701598A7654E5A5A8FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
Cc: Carsten Bormann <cabo@tzi.org>, cose <cose@ietf.org>, "cbor@ietf.org" <cbor@ietf.org>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
To: Hannes Tschofenig <Hannes.Tschofenig@arm.com>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org> <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <F51A9E64-D6DE-464C-8443-20009AE8E98D@tzi.org> <DBBPR08MB59159E4701598A7654E5A5A8FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com>
X-Mailer: Apple Mail (2.3445.104.17)
X-CMAE-Envelope: MS4xfE5BnZz2dtDNtKMQwYpEFVReTe3euCcy83XbInUol1LRge3908HeqiYqAFabWzU606zWurN+98/FpcLNr/RV7TnnX/4LoGok10qsaC3tNNksPMf6KIgC 5a3IfeY3mA3COtIRCEFFCHpwtOHQOMqXJSfCDsXjn4gnvyXjV5jlA9dSE33ReV+MXEX7EO+nRHMUjJRAxKWdEcFejmZnEk8KnSwyIOigX6c1BL/DbNVatTlc 3mBD7loFPD6TAN1w1o2FKA0wKMXBNeaCcTpuljZXV4ADbnJgpyqAL/DTr5b6Ly2EV/cILy5/ArCVFIQ/5tGTbw==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/7dtC-15yRVkUKDUqfQgVtzdISr0>
Subject: Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 08 Dec 2021 17:47:12 -0000

--Apple-Mail=_CF312FC4-5C31-4558-B28D-9118BB28B468
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On Dec 8, 2021, at 8:08 AM, Hannes Tschofenig =
<Hannes.Tschofenig@arm.com> wrote:
>=20
>=20
> PS: I am not sure whether the ".cbor control" is an important concept =
in this conversation.

It is absolutely critical and central to the topic I brought up. It is =
the only thing I wanted to talk about.

But, happy for you to discuss other things about COSE.

LL=

--Apple-Mail=_CF312FC4-5C31-4558-B28D-9118BB28B468
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">On =
Dec 8, 2021, at 8:08 AM, Hannes Tschofenig &lt;<a =
href=3D"mailto:Hannes.Tschofenig@arm.com" =
class=3D"">Hannes.Tschofenig@arm.com</a>&gt; wrote:<br =
class=3D""><div><blockquote type=3D"cite" class=3D""><br =
class=3D"Apple-interchange-newline"><div class=3D""><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""><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"">PS: I am not sure whether the =
".cbor control" is an important concept in this =
conversation.</span></div></blockquote></div><br class=3D""><div =
class=3D"">It is absolutely critical and central to the topic I brought =
up. It is the only thing I wanted to talk about.</div><div class=3D""><br =
class=3D""></div><div class=3D"">But, happy for you to discuss other =
things about COSE.</div><div class=3D""><br class=3D""></div><div =
class=3D"">LL</div></body></html>=

--Apple-Mail=_CF312FC4-5C31-4558-B28D-9118BB28B468--


From nobody Thu Dec  9 10:54:25 2021
Return-Path: <mcr+ietf@sandelman.ca>
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 10CF13A094B; Thu,  9 Dec 2021 10:54:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
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 ZfLN9WUzejt6; Thu,  9 Dec 2021 10:54:16 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5BBF43A0948; Thu,  9 Dec 2021 10:54:15 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 3667538A47; Thu,  9 Dec 2021 13:58:01 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sabjL-b_E29B; Thu,  9 Dec 2021 13:57:59 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id E91A938A46; Thu,  9 Dec 2021 13:57:58 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1639076278; bh=2IsZpXsNnWQy28WJ+G4BcYBnl8eBo9EAIi130qAxdzM=; h=From:To:Subject:In-Reply-To:References:Date:From; b=HHY/mWm1I4ULegdF/WdcKkRMMtsO5Q4sx78ydLtHvvheE+8gpgFznUggmNL0VZjYh XT8bdcOmVVR4kCiwEw4JVBua+ZYFFx4k7i5KxBrx18eypiJm7bIHknZttXxIyEllBw 2qhrkc6iKeyvZA/mSSfV0anhDh6KYFz1Q+DOwBPLabOtcx6FWaNeyBEEzVdbwdaayv O8T/Gznw8YJfBiSdvt0+dRiTu9bXkE47ciH1fLov7zM6lxfyEtq/pqOtisqOMh5Jan q1gYZjgjnhh49vf5fPFFHy/rS5AaUEJhMne8VRNrVsUFExLZ+uLDIEtycbs50paESL 4HotQQHlTJNlQ==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 28C181FB; Thu,  9 Dec 2021 13:54:10 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: "cbor\@ietf.org" <cbor@ietf.org>, cose <cose@ietf.org>
In-Reply-To: <27539CB9-42E7-4313-8786-58B0A504E7E2@island-resort.com>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org> <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <27539CB9-42E7-4313-8786-58B0A504E7E2@island-resort.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Thu, 09 Dec 2021 13:54:10 -0500
Message-ID: <9912.1639076050@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/VH0YIjyseWj9SJPCiK156Hdp_LU>
Subject: Re: [Cbor] CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 09 Dec 2021 18:54:22 -0000

--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

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


{noticing this is not CC'ed to SUIT or SACM or RATS}

Laurence Lundblade <lgl@island-resort.com> wrote:
    > I am observing how two different protocols that use COSE specify what=
 the COSE payload should be. I am interested because EAT must specify this =
too. I noticed that they do it different:
    > =E2=80=94 CoSWID goes to a lot of trouble to use CDDL via a .cbor con=
trol

probably because CoSWID author (Henk) is also CDDL author, and therefore is
more expert at using CDDL.

    > =E2=80=94 SUIT just uses simple prose, not CDDL

I think that the question is what kind of advice CBOR and COSE WG should pr=
ovide to
other WGs about whether or not to explain things with .cbor controls.

    > Here=E2=80=99s the link between for COSE payload for CoSWID. It is in=
 blue in this CDDL that is replicated from COSE. It occurs in  section 7 of=
 CoSWID. <https://datatracker.ietf.org/doc/html/draft-ietf-sacm-coswid-19#s=
ection-7>

    > COSE-Sign1-coswid<payload> =3D [
    > protected: bstr .cbor protected-signed-coswid-header,
    > unprotected: unprotected-signed-coswid-header,
    > payload: bstr .cbor payload,
    > signature: bstr,
    > ]

...

    > EAT inherits this from CWT so it doesn=E2=80=99t need to say it expli=
citly.
    > However EAT uses CDDL so it is a possibility that EAT can do what CoS=
WID did.

That seems like the right way to me.
It's unclear to me which direction will work better for people who are not
CDDL experts.  Consider  that a formal language like CDDL might actually be
easier to understand for non-native-english speakers!


--=-=-=
Content-Type: text/plain
Content-Disposition: inline
Content-Description: Signature

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        |    IoT architect   [
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [


--=-=-=--

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

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

iQEzBAEBCgAdFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAmGyUNEACgkQgItw+93Q
3WWQlwf/ca/7Zs3E/dIyq8Ocx/IEI3FOWuPqfbWfOHtljUVPaHIsINo2p76+oFnI
/QVmxfSw/T58nkoeR9OpcERFY5Z+5i2EIVjddXKqsIhQYtiiGuHGcm2v7dVTVc/s
FmT8n/nTOdqEsm1U8oLI7KYssJjDPb1JpfHEYHiB04VK9EhvYuwbVO4Ik1E65ZfI
nYOzkSOFTnXyX6L4iFx8ISlNtQjBcoPIA1AzMMa4VpGMz1In/k3ecqgnT7Sq3Eiy
oq02znQkHK9tZ24PTHRNF5OIJxtikRGAtGJA3JDZsGTa1rIomNmwMWIEFzC0S5b9
MAilSVZUcePd7AqefmV6HWoWQNg3iw==
=gO28
-----END PGP SIGNATURE-----
--==-=-=--


From nobody Thu Dec  9 11:52:46 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 0F1C93A0C38 for <cbor@ietfa.amsl.com>; Thu,  9 Dec 2021 11:52:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.399
X-Spam-Level: 
X-Spam-Status: No, score=-1.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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 GDTzFxXEuh8F for <cbor@ietfa.amsl.com>; Thu,  9 Dec 2021 11:52:40 -0800 (PST)
Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com [209.85.222.49]) (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 D78DD3A0C34 for <cbor@ietf.org>; Thu,  9 Dec 2021 11:52:39 -0800 (PST)
Received: by mail-ua1-f49.google.com with SMTP id o1so12900552uap.4 for <cbor@ietf.org>; Thu, 09 Dec 2021 11:52:39 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DKZvBvudOzHlVCRbytSTnK11G0kSMURtrLSd8Jj3B+I=; b=KLY/W6+AZU9TRGWDJVCoQsJRpudTjocwnC6UBtv0Rug/hJVHymM4t6JL3i4HTdV/ur YAaeOLIlMD/m9jpv1uhbGu4rsWLQyNFSKh/6jG3qWnxeydECFwRY6CVMHmHtAYvGsOen WtwpU5swOwBAnDYc/p3hau1vPzGKByuHSu+10g2YGvcpygtioaddzvNpH7XEMnve7z8a iZ1SIWxrhr9zNKp2lSBpmCZrTAmVSzIARgR3nuaZ489Xt6ggqpv0MuB61g371tkw6TP2 NWpxs09DUdrckpzwiEYH7M9NyCenFAoVY1xej0vI7uuGzkiNA07/H7KGIs7mtV0pecJH 8SJg==
X-Gm-Message-State: AOAM5337VURslP/BNPu6nzANgSD6597CNhGpmCea6+kKg/zhu+2ghykB kCJ4HLj7I6kSn7XT75eHnYDwPpuXLDvgbDg+qlRvRY+M
X-Google-Smtp-Source: ABdhPJx8yGMBNdX4aLFArzDKfwy2bociab2St1rqBiZbW2Dl8eRVFTR8m/sPUpyttd73QlforyWTI2ZQymkLv+qHLFw=
X-Received: by 2002:ab0:7c56:: with SMTP id d22mr21992195uaw.74.1639079558624;  Thu, 09 Dec 2021 11:52:38 -0800 (PST)
MIME-Version: 1.0
References: <077EDC59-74CE-42B4-B651-BA8846719CD9@tzi.org> <BD71DE08-ABB4-445E-9215-AB8144F5A087@tzi.org>
In-Reply-To: <BD71DE08-ABB4-445E-9215-AB8144F5A087@tzi.org>
From: Barry Leiba <barryleiba@computer.org>
Date: Thu, 9 Dec 2021 14:52:27 -0500
Message-ID: <CALaySJL-+YemuGLTvVN=K0MgkSy32FVb95mQ24f=6njexZTE3w@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/uvwkxGCXRkPMeDUZhl_pS6dX97I>
Subject: Re: [Cbor] Glitch in cddl-control AUTH48
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, 09 Dec 2021 19:52:44 -0000

Thanks for posting this, Carsten, and thanks to Ira for a quick
response.  So as not to leave this open ended, I'm going to put a
deadline of 16 Dec on comments.  Lacking objections by then, we will
consider this accepted.  Please speak up now if you have a problem
with it.

Thanks,
Barry

On Tue, Dec 7, 2021 at 4:13 PM Carsten Bormann <cabo@tzi.org> wrote:
>
> Hi,
>
> In the last step (=E2=80=9CAUTH48=E2=80=9D) before a document like cddl-c=
ontrol becomes an RFC, the author(s) are supposed to do a full reread to ca=
pture any problems that remained hidden during the incremental development =
of the I-D.
>
> Normally, we find a few editorial problems (which we did; they since have=
 been dealt with).
> This time, however, there is also a technical contradiction between an il=
lustration (Figure 4) and the normative text that would need to be consider=
ed in making up the example in the illustration (
>
> Background: cddl-control deliberately allows byte string literals in plac=
es where text string literals would really make more sense.  The reason is =
that the content of these literals often is specification text (ABNF) with =
embedded newlines, which are much easier to write as byte strings (where em=
bedded newlines are allowed in RFC 8610) than as text strings (which inheri=
t the JSON syntax that requires replacing every newline with a linear \n, c=
reating essentially unreadable source text).  This is demonstrated in Figur=
e 2:
>
> >    c =3D "foo" .cat '
> >      bar
> >      baz
> >    '
> >    ; on a system where the newline is \n, is the same string as:
> >    b =3D "foo\n  bar\n  baz\n"
> >
> >        Figure 2: An Example of Concatenation of Text and Byte Strings
>
> So we handled that properly for .cat and .det, but it turns out we did no=
t for .abnf and .abnfb themselves.  Here, bullet 1 (which mostly is about t=
he target and its interpretation) in Section 3 tersely says:
>
> >    The controller string MUST be a text string.
>
> This is not only not what is implemented in the cddl tool (which accepts =
a byte string just fine), it is also directly contradicting Figure 4:
>
> >    oid =3D bytes .abnfb 'oid
> >    oid =3D 1*arc
> >    roid =3D *arc
> >    arc =3D [nlsb] %x00-7f
> >    nlsb =3D %x81-ff *%x80-ff
> >    '
> >
> >              Figure 4: Dedenting example: result of first .det
>
> To me, this is an oversight where we simply didn=E2=80=99t update that se=
ntence to the more useful way of accepting byte strings just for their bett=
er syntax handling newlines.  So I am suggesting we change the sentence to:
>
> > The controller MUST be a string.  When a byte string, it MUST be valid =
UTF-8 and is interpreted as the text string that has the same sequence of b=
ytes.
>
> =E2=80=A6 which I=E2=80=99m suggesting as a fix in the excerpt of the AUT=
H48 processing mail copied below.  I apologize for not seeing this earlier.
>
> Our AD Francesca brought to my attention that cbor@ietf.org is not copied=
 on AUTH48 processing; I had forgotten that (other WGs do that copying habi=
tually).  So I didn=E2=80=99t think to bring this up separately here, which=
 I am now doing.
>
> You can find the text that will be published if we do make the last-minut=
e change, at the end of the bullet:
>
> https://www.rfc-editor.org/authors/rfc9165.html#section-3-4.1
>
> (Note that this text is an RFC-to-be, not the final RFC, please don=E2=80=
=99t start citing it as an RFC before it has been published.)
>
> Does anybody in the CBOR WG see a technical problem coming up with making=
 this last minute fix?  If you see a problem (with implementation or use of=
 byte string literals not only in the controller arguments of .cat/.det, bu=
t also in those of .abnf/.abnfb), please speak up quickly; this is the last=
 item standing in the way towards publishing this RFC.
>
> Gr=C3=BC=C3=9Fe, Carsten
>
>
>
> > Begin forwarded message:
> >
> > From: Carsten Bormann <cabo@tzi.org>
> > Date: 2021-12-04 at 17:00:03 CET
> > To: <rfc-editor@rfc-editor.org>
> > Cc: cbor-ads@ietf.org, cbor-chairs@ietf.org, Christian Ams=C3=BCss <chr=
istian@amsuess.com>, francesca.palombini@ericsson.com
> > Message-Id: <077EDC59-74CE-42B4-B651-BA8846719CD9@tzi.org>
> >
> [=E2=80=A6]
> > (0)
> > The last sentence in the first bullet in 3 says "The controller string =
MUST be a text string.=E2=80=9D.
> > However, the previous section=E2=80=99s example in Figure 4 happens to =
use a byte string literal, and leniently allowing both kinds of strings is =
also what is implemented.
> > I believe loosening this up has the upside of simplifying cases such as=
 in Figure 4, and no downside, so I would suggest:
> >
> > OLD:
> > The controller string MUST be a text string.
> > NEW:
> > The controller MUST be a string.  When a byte string, it MUST be valid =
UTF-8 and is interpreted as the text string that has the same sequence of b=
ytes.
> [=E2=80=A6]
>
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor


From nobody Mon Dec 13 08:33:29 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 BA82D3A086B for <cbor@ietfa.amsl.com>; Mon, 13 Dec 2021 08:33:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.399
X-Spam-Level: 
X-Spam-Status: No, score=-1.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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 mKmSxgDKLxm3 for <cbor@ietfa.amsl.com>; Mon, 13 Dec 2021 08:33:24 -0800 (PST)
Received: from mail-vk1-f181.google.com (mail-vk1-f181.google.com [209.85.221.181]) (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 4BC6C3A0886 for <cbor@ietf.org>; Mon, 13 Dec 2021 08:33:24 -0800 (PST)
Received: by mail-vk1-f181.google.com with SMTP id s17so10775132vka.5 for <cbor@ietf.org>; Mon, 13 Dec 2021 08:33:24 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=mINfCpeQdQhuwGDv83hegqdIds0VOpV18WibAM01D8E=; b=NRGo7fWX9Kx65t8nUaJIR8ZEFBFhrlR67LfJqlgJIPIPn2tzLCvRceFkXYR7ul4hOl V3TQEY+yBHurr5rLlpGfFcxPZ6B3TpYRYRyPh+MUVDRSbjVJMVCjmZekiQBJzt3OWfq/ Psr8etE/SRzZRgKG7Sgbii/w01aBC77cp4CIlNPHBWufrRhmiyNC3YZzrEXJcA01fKFg wnq4dBT9Glq/Nv+9CwKBstagciUmAUY/g+JI/JzwzVdbRKhuFIdEMqx0FJsi1R7SRYfg vK50qbsYKrXnyt26Y3Z9UQ1cfQ+ixJAr6XDTcTijhwFjxrLj/0e17wDa1IehyIE+/vR2 iF4w==
X-Gm-Message-State: AOAM533HKclUChY8Pi21utiTEbBODhWVm7paRzO1M7mjqKZLD5Hlmem9 6a5kyNP72+VDMUQkbSjdG/Ge/hTWui/x6IBgqn1dGmV87nA=
X-Google-Smtp-Source: ABdhPJxjgVtKBXXUqb4OcfAwoT7VDh1uwou1fEifgLOuuk+D6wPaek/6LlKkb/G2YJ5x8KH352Vxz8oISJQsoRfzyIY=
X-Received: by 2002:a05:6122:c6f:: with SMTP id i47mr32618045vkr.20.1639413202829;  Mon, 13 Dec 2021 08:33:22 -0800 (PST)
MIME-Version: 1.0
References: <163707702504.30387.8402584115975093888@ietfa.amsl.com>
In-Reply-To: <163707702504.30387.8402584115975093888@ietfa.amsl.com>
From: Barry Leiba <barryleiba@computer.org>
Date: Mon, 13 Dec 2021 11:33:11 -0500
Message-ID: <CALaySJJM9HGoC_fcqNRXDypZKwxRKYqa16Kwy+obNoPYHMY9_A@mail.gmail.com>
To: cbor@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/k6sdUDxxTeU2oPR2nhSAFAlfvGg>
Subject: [Cbor] Reminder: CBOR WG Virtual Meeting on 2021-12-15
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, 13 Dec 2021 16:33:29 -0000

Reminder:
We're resuming the one-hour Wednesday meetings every second week,
beginning this week, 15 Dec, at 15:00 UTC.  Information for this
meeting is here:

Datatracker: https://datatracker.ietf.org/meeting/interim-2021-cbor-20/session/cbor
Notes: https://notes.ietf.org/notes-ietf-interim-2021-cbor-20-cbor
Meetecho: https://meetings.conf.meetecho.com/interim/?short=c5973c8b-23b9-4af9-99de-3c404c16196e

Please go to the notes and add to the agenda.

Please go to the notes and add your name to volunteer to help take notes.

And we'll see you on Wednesday.

Barry


From nobody Mon Dec 13 08:38:32 2021
Return-Path: <blueroofmusic@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 858C83A08D0 for <cbor@ietfa.amsl.com>; Mon, 13 Dec 2021 08:38:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level: 
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 YGW-2g2tsotS for <cbor@ietfa.amsl.com>; Mon, 13 Dec 2021 08:38:20 -0800 (PST)
Received: from mail-vk1-xa35.google.com (mail-vk1-xa35.google.com [IPv6:2607:f8b0:4864:20::a35]) (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 61EA83A08BE for <cbor@ietf.org>; Mon, 13 Dec 2021 08:38:20 -0800 (PST)
Received: by mail-vk1-xa35.google.com with SMTP id m19so10746168vko.12 for <cbor@ietf.org>; Mon, 13 Dec 2021 08:38:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/Gx0+3k1zn89Kfr63DCh2vqxCH3ylX/8agNJw/CiObk=; b=MSl19d6YujIPrVs2KNpNPzyVmGGTlSzeW3pSXkxRnfWsiD4tCqbG8Aj9ZdsvBF1F+r 4RqGQZvH/EYVqQlkFAY6OBlL9psnqlttNN3xwcuVLyGFrv7NvAg529ehDVDKDxDIpkvr /XYLd7y9Ylb/sz/xujsmvpTy6EYnLFwzfBAVQpM4eeTR7H1xNavx7fHBnxPyr0mVm2qg p20/XclFcQystTr6a6ZK299zm01vSDBgGHS1XpfCijtgHcjpm0Wy7k1W84vxoSQaMeOy bLpnAJLGiO5EQMpD4iLnm+bxCutuTHmwMNoLGN6+t+XF20KKUKI+BZZjVhaO7trII+Yx CRdg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/Gx0+3k1zn89Kfr63DCh2vqxCH3ylX/8agNJw/CiObk=; b=x6AZd6WF+9dFtg0uIV6RX9AR2UKiNEwlFU/G+Swv2oEfit7p1rpKMzofZzXlDWD6MP 9JYdI15ct2/LsO6iDQzmLnvGhHXLY5T5MdmyGYgzlGcPzUha1KhAqFMNqrFVIUWVSD70 eSipKFH1yJ+w8ary0/Y/7XRT2VaFEKtyAEIJTrc8bOWRGl2T1VmeJvQyi5U0+u6ANoCr K96N2NKal2DFvYK/85fBP0KGHTEZUfiM02hdFkXTjYZMre+I0FCO6WV5czqS9ZozTnGl WzPVdvR8bSdXbQotAgrY0sbNrwNClIcjrTAc/BumThkjxESKUiEuFRUP+U0INJdb2Ivk QuVA==
X-Gm-Message-State: AOAM532Tu3a9End2rMkcHL8fTFzPvGdFwi80+AKkfhVHQNPJCH4cE/41 RQlotPes76GpscEs8Q229643YASRzlTjlap6Vo4=
X-Google-Smtp-Source: ABdhPJyweYI8Mob+4QV0veSwTaOW0JRsa+0bZBr81IY5QgqR7mgt933XaZ38y5QnZHyqhLxxvFRYdpajqAdyTn9/5mg=
X-Received: by 2002:a05:6122:988:: with SMTP id g8mr33634018vkd.2.1639413498119;  Mon, 13 Dec 2021 08:38:18 -0800 (PST)
MIME-Version: 1.0
References: <163707702504.30387.8402584115975093888@ietfa.amsl.com> <CALaySJJM9HGoC_fcqNRXDypZKwxRKYqa16Kwy+obNoPYHMY9_A@mail.gmail.com>
In-Reply-To: <CALaySJJM9HGoC_fcqNRXDypZKwxRKYqa16Kwy+obNoPYHMY9_A@mail.gmail.com>
From: Ira McDonald <blueroofmusic@gmail.com>
Date: Mon, 13 Dec 2021 11:38:02 -0500
Message-ID: <CAN40gStT6bRtXAA5eigqAR4YO_bKFoDkyr=b3djSaiL_yL+pww@mail.gmail.com>
To: Barry Leiba <barryleiba@computer.org>, Ira McDonald <blueroofmusic@gmail.com>
Cc: cbor@ietf.org
Content-Type: multipart/alternative; boundary="000000000000320a6405d309b370"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/WaG5otOJXacKZSI0CnRidSkni08>
Subject: Re: [Cbor] Reminder: CBOR WG Virtual Meeting on 2021-12-15
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, 13 Dec 2021 16:38:31 -0000

--000000000000320a6405d309b370
Content-Type: text/plain; charset="UTF-8"

Hi,

Once again, the ISO 24089 Road Vehicles: Software Update project has a
colliding call
this Wednesday.  Good luck in the CBOR call.

Cheers,
- Ira

On Mon, Dec 13, 2021 at 11:33 AM Barry Leiba <barryleiba@computer.org>
wrote:

> Reminder:
> We're resuming the one-hour Wednesday meetings every second week,
> beginning this week, 15 Dec, at 15:00 UTC.  Information for this
> meeting is here:
>
> Datatracker:
> https://datatracker.ietf.org/meeting/interim-2021-cbor-20/session/cbor
> Notes: https://notes.ietf.org/notes-ietf-interim-2021-cbor-20-cbor
> Meetecho:
> https://meetings.conf.meetecho.com/interim/?short=c5973c8b-23b9-4af9-99de-3c404c16196e
>
> Please go to the notes and add to the agenda.
>
> Please go to the notes and add your name to volunteer to help take notes.
>
> And we'll see you on Wednesday.
>
> Barry
>
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor
>

--000000000000320a6405d309b370
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>Once again, the ISO 2408=
9 Road Vehicles: Software Update project has a colliding call</div><div>thi=
s Wednesday.=C2=A0 Good luck in the CBOR call.</div><div><br></div><div>Che=
ers,<br></div><div><div><div dir=3D"ltr" class=3D"gmail_signature" data-sma=
rtmail=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div=
 dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"l=
tr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div></div></div></div></di=
v></div></div></div></div></div></div></div></div></div></div></div></div><=
/div></div>- Ira<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"=
ltr" class=3D"gmail_attr">On Mon, Dec 13, 2021 at 11:33 AM Barry Leiba &lt;=
<a href=3D"mailto:barryleiba@computer.org">barryleiba@computer.org</a>&gt; =
wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0=
px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Reminder:=
<br>
We&#39;re resuming the one-hour Wednesday meetings every second week,<br>
beginning this week, 15 Dec, at 15:00 UTC.=C2=A0 Information for this<br>
meeting is here:<br>
<br>
Datatracker: <a href=3D"https://datatracker.ietf.org/meeting/interim-2021-c=
bor-20/session/cbor" rel=3D"noreferrer" target=3D"_blank">https://datatrack=
er.ietf.org/meeting/interim-2021-cbor-20/session/cbor</a><br>
Notes: <a href=3D"https://notes.ietf.org/notes-ietf-interim-2021-cbor-20-cb=
or" rel=3D"noreferrer" target=3D"_blank">https://notes.ietf.org/notes-ietf-=
interim-2021-cbor-20-cbor</a><br>
Meetecho: <a href=3D"https://meetings.conf.meetecho.com/interim/?short=3Dc5=
973c8b-23b9-4af9-99de-3c404c16196e" rel=3D"noreferrer" target=3D"_blank">ht=
tps://meetings.conf.meetecho.com/interim/?short=3Dc5973c8b-23b9-4af9-99de-3=
c404c16196e</a><br>
<br>
Please go to the notes and add to the agenda.<br>
<br>
Please go to the notes and add your name to volunteer to help take notes.<b=
r>
<br>
And we&#39;ll see you on Wednesday.<br>
<br>
Barry<br>
<br>
_______________________________________________<br>
CBOR mailing list<br>
<a href=3D"mailto:CBOR@ietf.org" target=3D"_blank">CBOR@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/cbor" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.ietf.org/mailman/listinfo/cbor</a><br>
</blockquote></div>

--000000000000320a6405d309b370--


From nobody Mon Dec 13 15:36:26 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 454183A0CA0; Mon, 13 Dec 2021 15:36:16 -0800 (PST)
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, RCVD_IN_MSPIKE_H2=-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 kpshgmFR1vJD; Mon, 13 Dec 2021 15:36:10 -0800 (PST)
Received: from rfc-editor.org (rfc-editor.org [4.31.198.49]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3EBDC3A0C49; Mon, 13 Dec 2021 15:36:08 -0800 (PST)
Received: by rfc-editor.org (Postfix, from userid 499) id 5AD9F1DE0; Mon, 13 Dec 2021 15:36:07 -0800 (PST)
To: ietf-announce@ietf.org, rfc-dist@rfc-editor.org
From: rfc-editor@rfc-editor.org
Cc: rfc-editor@rfc-editor.org, drafts-update-ref@iana.org, cbor@ietf.org
Content-type: text/plain; charset=UTF-8
Message-Id: <20211213233607.5AD9F1DE0@rfc-editor.org>
Date: Mon, 13 Dec 2021 15:36:07 -0800 (PST)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/snHTDWxOoesZ8Vs1Igdwt2lHYiw>
Subject: [Cbor] =?utf-8?q?RFC_9164_on_Concise_Binary_Object_Representatio?= =?utf-8?q?n_=28CBOR=29_Tags_for_IPv4_and_IPv6_Addresses_and_Prefixes?=
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, 13 Dec 2021 23:36:20 -0000

A new Request for Comments is now available in online RFC libraries.

        
        RFC 9164

        Title:      Concise Binary Object Representation (CBOR) 
                    Tags for IPv4 and IPv6 Addresses 
                    and Prefixes 
        Author:     M. Richardson,
                    C. Bormann
        Status:     Standards Track
        Stream:     IETF
        Date:       December 2021
        Mailbox:    mcr+ietf@sandelman.ca,
                    cabo@tzi.org
        Pages:      10
        Updates/Obsoletes/SeeAlso:   None

        I-D Tag:    draft-ietf-cbor-network-addresses-13.txt

        URL:        https://www.rfc-editor.org/info/rfc9164

        DOI:        10.17487/RFC9164

This specification defines two Concise Binary Object Representation
(CBOR) tags for use with IPv6 and IPv4 addresses and prefixes.

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

This is now a Proposed Standard.

STANDARDS TRACK: This document specifies an Internet Standards Track
protocol for the Internet community, and requests discussion and suggestions
for improvements.  Please refer to the current edition of the Official
Internet Protocol Standards (https://www.rfc-editor.org/standards) for the 
standardization state and status of this protocol.  Distribution of this 
memo is unlimited.

This announcement is sent to the IETF-Announce and rfc-dist lists.
To subscribe or unsubscribe, see
  https://www.ietf.org/mailman/listinfo/ietf-announce
  https://mailman.rfc-editor.org/mailman/listinfo/rfc-dist

For searching the RFC series, see https://www.rfc-editor.org/search
For downloading RFCs, see https://www.rfc-editor.org/retrieve/bulk

Requests for special distribution should be addressed to either the
author of the RFC in question, or to rfc-editor@rfc-editor.org.  Unless
specifically noted otherwise on the RFC itself, all RFCs are for
unlimited distribution.


The RFC Editor Team
Association Management Solutions, LLC



From nobody Wed Dec 15 05:56:19 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 A39973A077D; Wed, 15 Dec 2021 05:56:12 -0800 (PST)
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.41.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: cbor@ietf.org
Message-ID: <163957657258.13411.7816087918094513382@ietfa.amsl.com>
Date: Wed, 15 Dec 2021 05:56:12 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/eg-92ERngDiesM2sCLkX9JraXtA>
Subject: [Cbor] I-D Action: draft-ietf-cbor-file-magic-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, 15 Dec 2021 13:56:13 -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           : On storing CBOR encoded items on stable storage
        Authors         : Michael Richardson
                          Carsten Bormann
	Filename        : draft-ietf-cbor-file-magic-07.txt
	Pages           : 17
	Date            : 2021-12-15

Abstract:
   This document defines an on-disk format for CBOR objects that is
   friendly to common on-disk recognition systems such as the Unix
   file(1) command.


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

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

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


Internet-Drafts are also available by rsync at rsync.ietf.org::internet-drafts



From nobody Wed Dec 15 06:00:36 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 115E83A076F for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 06:00:35 -0800 (PST)
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, RCVD_IN_MSPIKE_H2=-0.001, 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 V-fzXkuBONIF for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 06:00:30 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9A6F93A0769 for <cbor@ietf.org>; Wed, 15 Dec 2021 06:00:30 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JDcMb5Q4qzDCkm; Wed, 15 Dec 2021 15:00:27 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CALaySJJM9HGoC_fcqNRXDypZKwxRKYqa16Kwy+obNoPYHMY9_A@mail.gmail.com>
Date: Wed, 15 Dec 2021 15:00:27 +0100
X-Mao-Original-Outgoing-Id: 661269626.9603111-23ad39c2a8c67341542e14f04ce6d089
Content-Transfer-Encoding: quoted-printable
Message-Id: <B3480B8D-0FFB-468C-9BF4-1275099B9121@tzi.org>
References: <163707702504.30387.8402584115975093888@ietfa.amsl.com> <CALaySJJM9HGoC_fcqNRXDypZKwxRKYqa16Kwy+obNoPYHMY9_A@mail.gmail.com>
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/OPX9cMuCQYCe1puoacfl-lE6l2A>
Subject: Re: [Cbor] Reminder: CBOR WG Virtual Meeting on 2021-12-15
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, 15 Dec 2021 14:00:35 -0000

On 2021-12-13, at 17:33, Barry Leiba <barryleiba@computer.org> wrote:
>=20
> We're resuming the one-hour Wednesday meetings every second week,
> beginning this week, 15 Dec, at 15:00 UTC.  Information for this
> meeting is here:

I put in a trial balloon (which I=E2=80=99m willing to roll back if we =
arrive elsewhere):=20

Html: https://www.ietf.org/archive/id/draft-ietf-cbor-file-magic-07.html
Diff: https://www.ietf.org/rfcdiff?url2=3Ddraft-ietf-cbor-file-magic-07

This now clearly separates the case of adding a CBOR header to non-CBOR =
Content-Formats from the CBOR Sequence Tag.  It also repairs the =
examples, and adds an Appendix C that discusses CBOR headers to non-CBOR =
data identified by CoAP Content-Formats.

Technically, there would be no need to separate 55800 and 55801 (a 55801 =
tag will work with any data that normally would have a 55800 tag); but I =
found it clearer to provide this separation.

Let=E2=80=99s discuss this in 1 h=E2=80=A6

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


From nobody Wed Dec 15 07:30:23 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 B877B3A093D; Wed, 15 Dec 2021 07:30:04 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: IESG Secretary <iesg-secretary@ietf.org>
To: "IETF-Announce" <ietf-announce@ietf.org>
Cc: cbor-chairs@ietf.org, cbor@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 7.41.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <163958220421.10856.6573029711703462266@ietfa.amsl.com>
Date: Wed, 15 Dec 2021 07:30:04 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/wJOIZ1JsYnPFSGNJO0HwMv6HbKA>
Subject: [Cbor] Concise Binary Object Representation Maintenance and Extensions (cbor) WG Interim Meeting Cancelled (was 2021-12-29)
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, 15 Dec 2021 15:30:18 -0000

The Concise Binary Object Representation Maintenance and Extensions (cbor) virtual 
interim meeting for 2021-12-29 from 16:00 to 17:00 Europe/Vienna
has been cancelled.






From nobody Wed Dec 15 08:01:54 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 CEE943A0961; Wed, 15 Dec 2021 08:01:52 -0800 (PST)
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 86kqp8KQIFV1; Wed, 15 Dec 2021 08:01:49 -0800 (PST)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (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 3DE073A0933; Wed, 15 Dec 2021 08:01:44 -0800 (PST)
Received: from poseidon-mailhub.amsuess.com (095129206250.cust.akis.net [95.129.206.250]) by smtp.akis.at (8.17.1/8.17.1) with ESMTPS id 1BFG1aW0069892 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Dec 2021 17:01:36 +0100 (CET) (envelope-from christian@amsuess.com)
X-Authentication-Warning: smtp.akis.at: Host 095129206250.cust.akis.net [95.129.206.250] claimed to be poseidon-mailhub.amsuess.com
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 AB10AD0; Wed, 15 Dec 2021 17:01:35 +0100 (CET)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:7e9:207a:bc4e:790]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 7FA3F78; Wed, 15 Dec 2021 17:01:35 +0100 (CET)
Received: (nullmailer pid 429368 invoked by uid 1000); Wed, 15 Dec 2021 16:01:35 -0000
Date: Wed, 15 Dec 2021 17:01:35 +0100
From: Christian =?iso-8859-1?Q?Ams=FCss?= <christian@amsuess.com>
To: draft-ietf-cbor-file-magic@ietf.org
Cc: cbor@ietf.org
Message-ID: <YboRXwA7k7odlRjI@hephaistos.amsuess.com>
References: <163957657258.13411.7816087918094513382@ietfa.amsl.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="b2JZi+r5EJR24SJC"
Content-Disposition: inline
In-Reply-To: <163957657258.13411.7816087918094513382@ietfa.amsl.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/MHLS2SLTjXA7SGYw-9sptzd93nQ>
Subject: Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic-07.txt
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, 15 Dec 2021 16:01:53 -0000

--b2JZi+r5EJR24SJC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello Carsten, hello Michael,

a few comments (basically what I said in the interim, but rephrased and
hopefully with better understanding now):

> Exceptionally, when used immediately as tag content within a tag
> 58000 (Section 2.3) or 58001 (Appendix C), the tag content is the
> byte string 'BOR', signifying that the representation of the given
> content-format follows in the way defined for these tags.

Is this a property of the 1668546560+ct range, or really a property of
the wrapping 58000 / 58001? As I understood in the interim it's the
latter, in which case the text about the exceptions does not belong with
the allocated tag numbers 1668546560-1668612095, but with the 58001
definition. (Or 55801? Probably, and it's a small error in this
paragraph).

The text would be different there, and as you already asked me to write
something about what it means for the processing model, that might be:

[to go into Enveloping Method: CBOR Tag Sequence]

| For the processing of the CBOR Sequence Tag (55800) it should be noted
| that it alters the semantics of the tag directly encapsulated in it:
| While the inner tag would, under other circumstances, contain the data
| item it is specified for, here it unconditionally contains the 3-byte
| string 'BOR', and the semantics of the inner tag are applied to the
| following element. This is consistent with the general CBOR practice
| that an outer tag can influence processing on the unextended generic
| data model (before tags are processed according to their semantics).

[to go into Using CBOR headers for non-CBOR data]

| As with tag 55800, this tag alters the processing of the inner tag.

---

On the topic of content format processing, it is sad that the only
content formats we have registered with non-identity encoding are the
general CBOR and JSON formats.

Example or not, I think that the document should be more explicit on the
content encoding. As I understand right now, the rules are that

* When used with 55799 and 55800, the content encoding is discarded, and
  the content format needs to be of the CBOR family.

* When used with 55801, the content encoding is used to describe the
  preprocessing of anything after byte 12.

(and there are no cases in the document any more when application data
would be put into a byte string).

The document has thus two sources of tag aliasing:

* A data structure may have both a content format and a descriptive tag
  assigned now (and future formats may do that too), with the same
  semantics.

  For example, content format 16 is application/cose;
  cose-type=3D"cose-encrypt0", and tag 16 (coincidence? I think not) tags
  a COSE_Encrypt0 data item. Thus, tags 16 and 1668546576 now have the
  same semantics.

* When used outside of 55801, content formats with different content
  encodings collapse to the same semantics. (One could argue that the
  non-identity version contains a hint as to how to best encode this for
  transport, but that's about it).

There's little that can be done about these, but they are IMO worth
pointing out when it comes to compatibility. The way any of these are
transported will likely already give a good hint of which version to
best use: A COSE_Encrypt0 object transported in a single CoAP payload
gets content format 16 (there is no alternative anyway), but when part
of a larger CBOR structure it'd be tagged (because that's the obvious
thing to do), and tagging it as 1668546576 is probably nonsentical, but
not entirely wrong.

BR
c

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

--b2JZi+r5EJR24SJC
Content-Type: application/pgp-signature; name="signature.asc"

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

iQIzBAEBCAAdFiEECM1tElX6OodcH7CWOY0REtOkveEFAmG6EV8ACgkQOY0REtOk
veFoHg//VspovIhK+x/C2FJ6Nwt2TWT1xDxvMV70k9JA/7+ivrHPpT2dSvkjCL47
uEmt9j7PBe4TJQRSifjpHuiJtVWQpirXEOUsp7X/ha5xl6SBlQCFV/hneSII29Dr
RYR7Sgx1UX5algROLeQZirMH6wi+tMo47Tx+FtfJJqOI4K5tUJ4/oAdqfmFSXv7p
/fRL8Uir2N8+dc88uvHZgwFS39Iajuh3WhOlE1R/XvCfCUzDU/qaq7CC6zBhaGtQ
F1IP+tWp9kbqTDO7x6eVgTk+FRsJTFw4x/pHWW5iZoszLlV+cLRpaSAcJL42IRsB
uQp+HTjxM3NMYZH1jJHHPJu61kvjniVPXGG8R4CIraT/2Wr1jc0w4o2zQ/SgUHJC
QdwPxfmHujszWyebnJaU/Z6lq9T04eBr4u4h6OFk4ECfw50fP2EXa4FtmExmBXwo
YyEW/5yr6ZH/W0Q5f8UdmtfoS/iGwiJ9pxc4pa5GuS20zthip7IGkDtkh08zi4S1
elrjFkb0KbvW0xCUkDQBm2jKeW3mjm1jDIK8YaaX/QIlfIedKobsa6DXey5kZ/dP
8HMNumYrNW8s8HckDtgejDP9mlMBibMGklUbW20sHMxpfKl9XpaS/az6SRGrJhKp
pOvTlyNmdetnx0EaKjuRaghPNUH5+34t0q26ekdgjOkFti5fkq0=
=Wq8S
-----END PGP SIGNATURE-----

--b2JZi+r5EJR24SJC--


From nobody Wed Dec 15 10:24:18 2021
Return-Path: <mcr+ietf@sandelman.ca>
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 C4B933A0A17 for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 10:24:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
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 N9DJx_2c85LY for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 10:24:12 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 100FE3A0A13 for <cbor@ietf.org>; Wed, 15 Dec 2021 10:24:11 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id F2AA038C55 for <cbor@ietf.org>; Wed, 15 Dec 2021 13:28:19 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JSSs-nqtf8XM for <cbor@ietf.org>; Wed, 15 Dec 2021 13:28:19 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [209.87.249.21]) by tuna.sandelman.ca (Postfix) with ESMTP id F02A538C50 for <cbor@ietf.org>; Wed, 15 Dec 2021 13:28:18 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1639592898; bh=59wXIm4yi7Vgxt4iLanDjgkDXaehF+MF2SRV47HMWDs=; h=From:To:Subject:In-Reply-To:References:Date:From; b=MA5hPBuom323f1oPZ354jIRW0ImahTOEf/TMhzNw5RKFnqV0BTw/FIhLMBLmsa7TV KlaVYB9klH1Q8SEIuDOmsPBJh3LDGNtixiCxqWDtzKstcPZJ+wUaYWZ3ixObXPgDV3 4sd9EKeuQWEEJufWWSfCsf4Zhu5dY1jGGuR8xx9vCVRqCzu3XLEWq8q9Zm5I7kcapC DsPopGsURW+olWr7UxwMDv+7Si9lGD9SsWE5ZwhChnswupYuVspFh034D/GnvGBcjk uJdVBXCvJzPMdVH29wYmiqoFPhhP1FdZKu2XGYskXP7muYAMTkcEPIVZsUMSvL4LDt gRkotViDBe+6g==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id AD05D418 for <cbor@ietf.org>; Wed, 15 Dec 2021 13:24:07 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: cbor@ietf.org
In-Reply-To: <163957657258.13411.7816087918094513382@ietfa.amsl.com>
References: <163957657258.13411.7816087918094513382@ietfa.amsl.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Wed, 15 Dec 2021 13:24:07 -0500
Message-ID: <4768.1639592647@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/HJhe9J3pcfk85fL-DPEEGiSQS6U>
Subject: [Cbor] tags for non-CBOR Content-Formats (was Re: I-D Action: draft-ietf-cbor-file-magic-07.txt)
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, 15 Dec 2021 18:24:17 -0000

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


> 3.  The encoded three byte CBOR byte string containing 0x42_4F_52.

This is in: https://datatracker.ietf.org/doc/html/draft-ietf-cbor-file-magi=
c-07.txt#appendix-C
I see the argument to make this an appendix since it does not tag CBOR
content.  I fear that the reviewers and IESG will be confused though.

Should it really use CBOR as bytes 8-11, since the content is not, in fact,=
 CBOR?
Maybe we should say something else.  I don't feel strongly about this.


=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





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

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

iQEzBAEBCgAdFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAmG6MscACgkQgItw+93Q
3WUw6AgAwSxrB3bE/pyUP2+gVHlv4+E5CcpTdpvEECmBKsJjO4di50Nj5UVG8J1z
8K7eVuMOawVwfMlEvxztw8HqEmRzgU4acpmNBJdbvwBCD6PACzOeoAh0rX6P/ebb
5oCvo434hSVqntm5TEe7smfFlhJ+OcPcCRFfDnvBhc6C2O1hOjJHbS/wpjuDVJ1E
w++8LlWqSVJ/NafelC9NSiQZCpSgRBrL+KVJ3X/jQwJNd9ZnAfw04gY0Cg/x1Tjl
PZKzlZ2+dp+6qVqGsdYo1JkhFHpvS9a5cYk++bfJUNUk/b42mA88AW6NPpxu1AlC
YQjuk5wbng8ekyMfEe2iCSWpAJEvJg==
=Mwoz
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Dec 15 10:25:50 2021
Return-Path: <mcr@sandelman.ca>
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 8C2D73A0A2E for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 10:25:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
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 tx-uhfXXPANJ for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 10:25:44 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1CC6D3A0A17 for <cbor@ietf.org>; Wed, 15 Dec 2021 10:25:43 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id E69CA38C55; Wed, 15 Dec 2021 13:29:52 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Aj5FSYNhoQaw; Wed, 15 Dec 2021 13:29:51 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id D1CA438C50; Wed, 15 Dec 2021 13:29:51 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1639592991; bh=WMvF9b6882LnLmmlrf5pJfGzxlALgmRMDt7xUMPv9ZQ=; h=From:To:Subject:In-Reply-To:References:Date:From; b=HxKxjpvB01m0no5ygSULDfhHUhDRI3shDBregLy9s9kY+iiKhwQcSvDsIjAULyacj MfetgQ0je+IslVsKae8/NmvyM6FihKqB/cReEQOkwAVXU10mKEUZ1erlVR8gU7SDEn KUkB7Jm9/6yIYi6xn37ISxHtL1ZoIM24GglbsYF5tFpSYyrGzC60f0Y7rAIsajQ0gC wtCQ5CtV+EyAu61ujhlrcxKFV7BKJLdtTbaH4pzxFVu4701QVCC5vgAYJWp6G1TwQV eZcfds7yQ1hmdOyxL+PVl/hr8qivNIIrqys3VRQRLPeaiQWYt5mx3YvmccxBkwggQx JVaJqgMYFVfCQ==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 93EA0418; Wed, 15 Dec 2021 13:25:40 -0500 (EST)
From: Michael Richardson <mcr@sandelman.ca>
To: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
In-Reply-To: <B3480B8D-0FFB-468C-9BF4-1275099B9121@tzi.org>
References: <163707702504.30387.8402584115975093888@ietfa.amsl.com> <CALaySJJM9HGoC_fcqNRXDypZKwxRKYqa16Kwy+obNoPYHMY9_A@mail.gmail.com> <B3480B8D-0FFB-468C-9BF4-1275099B9121@tzi.org>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Wed, 15 Dec 2021 13:25:40 -0500
Message-ID: <5240.1639592740@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/x54ASyH2bbT3VprsNSWSDQtY3rI>
Subject: Re: [Cbor] Reminder: CBOR WG Virtual Meeting on 2021-12-15
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, 15 Dec 2021 18:25:49 -0000

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


Carsten Bormann <cabo@tzi.org> wrote:
    > This now clearly separates the case of adding a CBOR header to non-CB=
OR
    > Content-Formats from the CBOR Sequence Tag.  It also repairs the
    > examples, and adds an Appendix C that discusses CBOR headers to
    > non-CBOR data identified by CoAP Content-Formats.

    > Technically, there would be no need to separate 55800 and 55801 (a
    > 55801 tag will work with any data that normally would have a 55800
    > tag); but I found it clearer to provide this separation.

I'm happy to allocate/use tag 55801.

    > Let=E2=80=99s discuss this in 1 h=E2=80=A6

Sorry, I started another thread because I read my email out of order, and I
had a conflict for the CBOR meeting.


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

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

iQEzBAEBCgAdFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAmG6MyMACgkQgItw+93Q
3WUZbAf+L/yrCVHwq6DoLOWf4kkUepUgcRXVkb6qTBQz4jwvH62dbIITawRKAOP/
O2XrBpb/etkIynLNP9ICdoSWtdTy6dTHp5Mp1WMJ69IYx1t4QMBpb1DPOY2qX6w7
W1mltbYnYJ2h1ymETzy9B7sdkWsWKTAK39hTOlBo3jbCgTKmfMxOn0ss11jMJCs9
KQkAKYafqQ1CGKLcCQBxgAAqeVt4QD+vkM+HYW7YF1T2UUrrdyEuNvV2S7EW1MaF
hGF2SeUFVJD0MxifBx9K4FPnNagfYNuJqA3l4QOMup1toxTwOyxUycOAr5+CAXmo
OrDbizAJzW6OL9HtSAZHqlgUiP44Pw==
=qzpl
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Dec 15 10:39:09 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 7837F3A0C25 for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 10:39:07 -0800 (PST)
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 O0Avmu23oABU for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 10:39:02 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C58B83A0C23 for <cbor@ietf.org>; Wed, 15 Dec 2021 10:39:02 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JDkXy4xY1zDCcT; Wed, 15 Dec 2021 19:38:58 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <4768.1639592647@localhost>
Date: Wed, 15 Dec 2021 19:38:58 +0100
Cc: cbor@ietf.org
X-Mao-Original-Outgoing-Id: 661286338.126476-db35589bba64d524d38519ec9dc17864
Content-Transfer-Encoding: quoted-printable
Message-Id: <86C6CE04-19A2-43D2-B10A-935F68D1E469@tzi.org>
References: <163957657258.13411.7816087918094513382@ietfa.amsl.com> <4768.1639592647@localhost>
To: Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/826pQY7vNPL6FyottrFuMNG01PE>
Subject: Re: [Cbor] tags for non-CBOR Content-Formats (was Re: I-D Action: draft-ietf-cbor-file-magic-07.txt)
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, 15 Dec 2021 18:39:08 -0000

> On 2021-12-15, at 19:24, Michael Richardson <mcr+ietf@sandelman.ca> =
wrote:
>=20
> Signed PGP part
>=20
>> 3.  The encoded three byte CBOR byte string containing 0x42_4F_52.
>=20
> This is in: =
https://datatracker.ietf.org/doc/html/draft-ietf-cbor-file-magic-07.txt#ap=
pendix-C
> I see the argument to make this an appendix since it does not tag CBOR
> content.  I fear that the reviewers and IESG will be confused though.

We could add more text why this is in an appendix.

>=20
> Should it really use CBOR as bytes 8-11, since the content is not, in =
fact, CBOR?

The header is.

> Maybe we should say something else.  I don't feel strongly about this.

I thought about that, but the tag should be the determining factor; =
keeping the information in two places invites mismatches.

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



From nobody Wed Dec 15 13:28:35 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 7EEC63A110E for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 13:28:33 -0800 (PST)
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_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 h-TOaYMPlRpc for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 13:28:28 -0800 (PST)
Received: from p3plsmtpa09-09.prod.phx3.secureserver.net (p3plsmtpa09-09.prod.phx3.secureserver.net [173.201.193.238]) (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 B449D3A110B for <cbor@ietf.org>; Wed, 15 Dec 2021 13:28:28 -0800 (PST)
Received: from [192.168.1.7] ([75.80.148.243]) by :SMTPAUTH: with ESMTPA id xbp5m3LEUjHgNxbp5mmCz1; Wed, 15 Dec 2021 14:28:27 -0700
X-CMAE-Analysis: v=2.4 cv=LM2j/La9 c=1 sm=1 tr=0 ts=61ba5dfb a=VPU1mRQhDhA4uSX60JRRww==:117 a=VPU1mRQhDhA4uSX60JRRww==:17 a=IkcTkHD0fZMA:10 a=l70xHGcnAAAA:8 a=K6EGIJCdAAAA:8 a=48vgC7mUAAAA:8 a=3F5Xlz0UzajNc3dAvK8A:9 a=QEXdDO2ut3YA:10 a=JtN_ecm89k2WOvw5-HMO:22 a=L6pVIi0Kn1GYQfi8-iRI:22 a=w1C3t2QeGrPiZgrLijVG:22
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: <9912.1639076050@localhost>
Date: Wed, 15 Dec 2021 13:28:27 -0800
Cc: "cbor@ietf.org" <cbor@ietf.org>, cose <cose@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <792A0E49-9C4A-4817-BF0A-2B76EBE6EDED@island-resort.com>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org> <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <27539CB9-42E7-4313-8786-58B0A504E7E2@island-resort.com> <9912.1639076050@localhost>
To: Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailer: Apple Mail (2.3445.104.17)
X-CMAE-Envelope: MS4xfJC1Jd9G4BRKIpW79k0ke4m5yb4XbqJ7YtEef995j1TXBrwrECbul6KloxEMOBBPD7/WDP4i6+8Y6w04CPB2KgJOF89ZFglLfKcP7ULzVssvL3VUFFTn e8CPl7QKSPGCPwVWBGZYy31WqRzD4qLFjcia5CydxxTpdVujXvwqmvZB3UuV1OSdUHU6BRz36i5r2EqllDfZ3749vW8VzbFlFTaZCe2KwDaxVrmqYL91rnvJ rl8c2sD84yA2350wmKJojQ==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/A_IHy4lKENJefij7FMnzS-Pb09Q>
Subject: Re: [Cbor] [COSE]  CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 15 Dec 2021 21:28:34 -0000

I guess for me this thread is about the state of the art for use of =
CDDL.

- CDDL seems just fine for protocol messages
- CDDL is missing some pieces when combining CDDL-defined protocols =
(name spaces, a publication and reference mechanism)
- CDDL is missing some pieces for specifying encryption payloads and =
maybe draft-ietf-cose-rfc8152bis-struct is not using what is available =
now for signing/MAC

(This is not any criticism of CDDL; just observing more good things we =
could do with it).

It seems a relatively new thing where we take the formal protocol =
specification and computationally and deterministically validate =
messages and examples the way I=E2=80=99m doing it in EAT (Thx Thomas) =
and probably others are doing. I haven=E2=80=99t seen it done with ABNF. =
We usually don=E2=80=99t do it with ASN.1 and [BDC]ER (lack of tools?). =
Not sure about YANG.

I don=E2=80=99t think it is mandatory that we do this formal validation =
of 100% of a protocol. Almost 10,000 RFCs and the majority don=E2=80=99t.

So it seems that specifying COSE payloads with .cbor is a =E2=80=9Cnice =
to have=E2=80=9D, but not mandatory.  We=E2=80=99re still kind of =
figuring out how to do it.

For example, I find what CoSWID does awkward:
- Replicating code and definitions generally seems poor practice
- It excludes the possibility for encryption
- It doesn=E2=80=99t define what EAT needs, a signed or unsigned message =
that is always a tag, somewhat motivating me to replicate/author CoSWID =
CDDL in EAT.

So where I land on this now is to use CDDL as much as possible (in EAT), =
but don=E2=80=99t push it to where it gets awkward or contorted. Hope =
that CDDL and COSE get improved so that EATbis and future protocols can =
easily do more CDDL.

LL



> On Dec 9, 2021, at 10:54 AM, Michael Richardson =
<mcr+ietf@sandelman.ca> wrote:
>=20
>=20
> {noticing this is not CC'ed to SUIT or SACM or RATS}
>=20
> Laurence Lundblade <lgl@island-resort.com> wrote:
>> I am observing how two different protocols that use COSE specify what =
the COSE payload should be. I am interested because EAT must specify =
this too. I noticed that they do it different:
>> =E2=80=94 CoSWID goes to a lot of trouble to use CDDL via a .cbor =
control
>=20
> probably because CoSWID author (Henk) is also CDDL author, and =
therefore is
> more expert at using CDDL.
>=20
>> =E2=80=94 SUIT just uses simple prose, not CDDL
>=20
> I think that the question is what kind of advice CBOR and COSE WG =
should provide to
> other WGs about whether or not to explain things with .cbor controls.
>=20
>> Here=E2=80=99s the link between for COSE payload for CoSWID. It is in =
blue in this CDDL that is replicated from COSE. It occurs in  section 7 =
of CoSWID. =
<https://datatracker.ietf.org/doc/html/draft-ietf-sacm-coswid-19#section-7=
>
>=20
>> COSE-Sign1-coswid<payload> =3D [
>> protected: bstr .cbor protected-signed-coswid-header,
>> unprotected: unprotected-signed-coswid-header,
>> payload: bstr .cbor payload,
>> signature: bstr,
>> ]
>=20
> ...
>=20
>> EAT inherits this from CWT so it doesn=E2=80=99t need to say it =
explicitly.
>> However EAT uses CDDL so it is a possibility that EAT can do what =
CoSWID did.
>=20
> That seems like the right way to me.
> It's unclear to me which direction will work better for people who are =
not
> CDDL experts.  Consider  that a formal language like CDDL might =
actually be
> easier to understand for non-native-english speakers!
>=20
> --
> ]               Never tell me the odds!                 | ipv6 mesh =
networks [
> ]   Michael Richardson, Sandelman Software Works        |    IoT =
architect   [
> ]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on =
rails    [
>=20
> _______________________________________________
> COSE mailing list
> COSE@ietf.org
> https://www.ietf.org/mailman/listinfo/cose


From nobody Wed Dec 15 13:57:27 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 E876F3A0770; Wed, 15 Dec 2021 13:57:25 -0800 (PST)
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 hfuzVjkmNT5l; Wed, 15 Dec 2021 13:57:21 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 59B923A076C; Wed, 15 Dec 2021 13:57:21 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JDpxn3VMgzDCbR; Wed, 15 Dec 2021 22:57:17 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <792A0E49-9C4A-4817-BF0A-2B76EBE6EDED@island-resort.com>
Date: Wed, 15 Dec 2021 22:57:17 +0100
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, "cbor@ietf.org" <cbor@ietf.org>, cose <cose@ietf.org>
X-Mao-Original-Outgoing-Id: 661298236.994526-0c1a1ec93f4425104d06097ca8455e6d
Content-Transfer-Encoding: quoted-printable
Message-Id: <E0A27ABE-DE65-4C4A-A204-19F8C85F85E6@tzi.org>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org> <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <27539CB9-42E7-4313-8786-58B0A504E7E2@island-resort.com> <9912.1639076050@localhost> <792A0E49-9C4A-4817-BF0A-2B76EBE6EDED@island-resort.com>
To: Laurence Lundblade <lgl@island-resort.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/k2kD-hwamDuJJu0pPoPbMsJAOg4>
Subject: Re: [Cbor] [COSE]  CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 15 Dec 2021 21:57:26 -0000

Hi Laurence,

I hope that the CBOR WG takes good note of these observations:

> On 2021-12-15, at 22:28, Laurence Lundblade <lgl@island-resort.com> =
wrote:
>=20
> - CDDL seems just fine for protocol messages
> - CDDL is missing some pieces when combining CDDL-defined protocols =
(name spaces, a publication and reference mechanism)

Right, and that is what the 2.0 work is trying to address (at least =
partially).
Workarounds do exist.

> - CDDL is missing some pieces for specifying encryption payloads and =
maybe draft-ietf-cose-rfc8152bis-struct is not using what is available =
now for signing/MAC

Indeed.  Some of this could be added easily by defining control =
operators in drafts that need extended functionality for CDDL.  Some of =
this is just conventional usage that simply needs to be worked out.  =
I=E2=80=99m sure the CBOR WG is interested in doing just that, and the =
COSE WG should be interested, too (with the caveat that this must not =
slow down current publication processes).

A separate document that describes how to best use CDDL with COSE would =
be optimal, but simply defining the CDDL conventions needed inside a =
spec that uses CDDL also works.

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


From nobody Wed Dec 15 15:08:32 2021
Return-Path: <housley@vigilsec.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 E7B743A0962 for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 15:08:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 NLTUXA-W9T9G for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 15:08:27 -0800 (PST)
Received: from mail.smeinc.net (mail.smeinc.net [209.135.209.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CEB7F3A0958 for <cbor@ietf.org>; Wed, 15 Dec 2021 15:08:26 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.smeinc.net (Postfix) with ESMTP id 43A3D300C4E for <cbor@ietf.org>; Wed, 15 Dec 2021 18:08:29 -0500 (EST)
X-Virus-Scanned: amavisd-new at mail.smeinc.net
Received: from mail.smeinc.net ([127.0.0.1]) by localhost (mail.smeinc.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id OGxZ8hYCzdSM for <cbor@ietf.org>; Wed, 15 Dec 2021 18:08:27 -0500 (EST)
Received: from a860b60074bd.fios-router.home (pool-141-156-161-153.washdc.fios.verizon.net [141.156.161.153]) by mail.smeinc.net (Postfix) with ESMTPSA id 93943300B20 for <cbor@ietf.org>; Wed, 15 Dec 2021 18:08:27 -0500 (EST)
From: Russ Housley <housley@vigilsec.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\))
Message-Id: <80BF4A6F-9AB7-4F0D-95CB-FAFB2AFE112A@vigilsec.com>
Date: Wed, 15 Dec 2021 18:08:23 -0500
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3445.104.21)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/mObLerzdV1uIu18kmcM5vsaMzgg>
Subject: [Cbor] Review of draft-ietf-cose-cbor-encoded-cert-02
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, 15 Dec 2021 23:08:30 -0000

I agreed to review this document during the session at IETF 112.

Russ

= = = = = = = =

Document: draft-ietf-cose-cbor-encoded-cert-02
Reviewer: Russ Housley
Review Date: 2021-12-15

Major Concerns:

I think that the document should just define C509.  I would like to see
Sections 4, 5, and 6 moved to other documents.  If there is a desire to
include CRLs, the section needs to be expanded for CRL extensions and
CRL entry extensions.  The most important of these is CRL number.  I
really would like to see some implementation and deployment experience
to guide the specification of these other objects.

Section 3 says:

   The re-encoding does not work for BER encoded certificates.

This is not quite correct.  One can always convert a BER-encoded
certificate to a DER-encoded certificate.  Then, the DER-encoded
certificate can be converted to C509.

Section 3.1 says:

   o  signature.  The 'signature' field is always the same as the
      'signatureAlgorithm' field and therefore omitted from the CBOR
      encoding.

Does this mean that the signature algorithm identifier is not covered
by the signature for natively signed C509 certificates?  There needs
to be some way to provide integrity protection for this identifier.
RFC 6211 talks about the reasons for the integrity protection in a
different context.
 
Section 3.3 includes a bullet for subjectAltName, and in that part of
the document it talks about hardwareModuleName from RFC 4108.  I think
that the AcpNodeName from RFC 8994 probably needs a similar encoding.
Also, if EAI is successful, then SmtpUTF8Mailbox from RFC 8398 will
also benefit from a shorter encoding.


Minor Concerns:

In Section 1, the text says:

   ... Two variants are defined using the same CBOR
   encoding and differing only in what is being signed:

Yes, this is true, but this is the place to say that the two variants
are not interchangeable or interoperable.  As a result, I wonder if
giving names to the two variants would be useful.  Which one is C509?
The phrase "natively signed C509 certificates" seems to suggest that
a short name for the variant is needed.

Section 3: please add a reference for ASN.1.


Nits:

Throughout: s/DER encoded/DER-encoded/

The Abstract includes:

   ... The CBOR
   encoding supports a large subset of RFC 5280 and all certificates
   compatible with the RFC 7925, IEEE 802.1AR (DevID), CNSA, RPKI, GSMA
   eUICC, and CA/Browser Forum Baseline Requirements profiles. ...
   
I suggest this text be dropped.  It is already in the Introduction. In
the Abstract you cannot provide references for these profiles.

The Abstract includes:

   ... When
   used to re-encode DER encoded X.509 certificates, the CBOR encoding
   can in many cases reduce the size of RFC 7925 profiled certificates
   with over 50%. ...

I suggest rewording:

   ... A 50% reduction in size can be achieved for DER-encoded X.509
   certificates that meet the profile in RFC 7925. ...

Section 3, first para: Is there any reason to list the profiles again?
Listing them once in the Introduction seems adequate.

Section 3.2 has two mostly unrelated subsections.  I suggest that you
have two sections: 3.2 for Encoding of subjectPublicKey, and Section 3.3
for Encoding of issuerSignatureValue.

Section 3.3, bullet about Authority Key Identifier extension:
  s/certIssuer/authorityCertIssuer/
  s/certSerialNumberm/authorityCertSerialNumber/


From nobody Wed Dec 15 17:46:47 2021
Return-Path: <mcr+ietf@sandelman.ca>
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 4D4873A0796 for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 17:46:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
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 HjDRYGdYA0sw for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 17:46:41 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 20C5E3A0794 for <cbor@ietf.org>; Wed, 15 Dec 2021 17:46:40 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 2860E38D14; Wed, 15 Dec 2021 20:50:49 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HmLx9vFbAG7H; Wed, 15 Dec 2021 20:50:47 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [209.87.249.21]) by tuna.sandelman.ca (Postfix) with ESMTP id 85F3538D12; Wed, 15 Dec 2021 20:50:47 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1639619447; bh=okiJvWSnulHWYznK7DaNzqzKFakGEvo3P6LSdZRA9hU=; h=From:To:Subject:In-Reply-To:References:Date:From; b=dYBbotvUhSk0VnEG1JNpA5ZVNRf8tN0U/fzC3hZfh0WsuPSdxU0TFgtRs2mP/17CJ DrIUCMWUzdfWyrPp9uJwrpB7tiTGTnXwcioT5huVr9/pk9wbwbbTeg/00NjbpLN6BG PZt5iPusZhIXiOK4lTRJsButSyZlODP63SPO3Tnp34aoHgbxSm/BTcRxOLr7+FxJQa o/ROV/O9Empra+UYrXqS8UcNbqcboIj6BI5dST9N4Dsr2hmMf9RsIT7KBp3w0IQLVm Hp9kV53Q/hxr8L4HbBZCpi15tLHhjKWb+wK3UFmgX/XpfsOXzQLBRNj8bgM89yz8f0 VMnNWMeS6lF3g==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id ED3EE418; Wed, 15 Dec 2021 20:46:34 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
In-Reply-To: <86C6CE04-19A2-43D2-B10A-935F68D1E469@tzi.org>
References: <163957657258.13411.7816087918094513382@ietfa.amsl.com> <4768.1639592647@localhost> <86C6CE04-19A2-43D2-B10A-935F68D1E469@tzi.org>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Wed, 15 Dec 2021 20:46:34 -0500
Message-ID: <31680.1639619194@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/etxyMLKTkwGm_uxkuaSyB8a-v8g>
Subject: Re: [Cbor] tags for non-CBOR Content-Formats (was Re: I-D Action: draft-ietf-cbor-file-magic-07.txt)
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, 16 Dec 2021 01:46:47 -0000

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


Carsten Bormann <cabo@tzi.org> wrote:
    >> This is in: https://datatracker.ietf.org/doc/html/draft-ietf-cbor-fi=
le-magic-07.txt#appendix-C
    >> I see the argument to make this an appendix since it does not tag CB=
OR
    >> content.  I fear that the reviewers and IESG will be confused though.

    > We could add more text why this is in an appendix.

I guess so.

    >>
    >> Should it really use CBOR as bytes 8-11, since the content is not, i=
n fact, CBOR?

    > The header is.

Yeah, but for the human who saw this in the hexdump-C, if they get their CB=
OR
decoder out, they will be slightly annoyed once they realize that it is only
the header.
Is there another four letter word that starts with C?
(no, not that one)

%grep -i '^c[a-z][a-z][a-z]$' /usr/share/dict/words | wc -l
186

"cite" is one.... coax. coat. cork. crop.... czar.
I have no reason to pick these, but the prefix is kinda of a coat.
It could also be "CONT"ains.

    >> Maybe we should say something else.  I don't feel strongly about thi=
s.

    > I thought about that, but the tag should be the determining factor;
    > keeping the information in two places invites mismatches.

I take your point.
My point is that those bytes were because we had to wrap something, and it
provided a nice clue to the human who sees them.
Again, I don't feel strongly.







=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





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

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

iQEzBAEBCgAdFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAmG6mnoACgkQgItw+93Q
3WXciQf+LG6seYbz9Dc/ZlrJNhqB6RNnK0JxrgCDgRYXlIAXh7wb67ir/LrdpqDs
p6TVistw9yc3G3jCZR8MB6O6W/YvxunpmN0R6CyRJAtF2lDJhFSZtVOFfpwUerKg
WrADzU6Qu6KBWi3AIMJ876JN5B56CKlRfQcU4gy1F0dlzeJVeoeeeeBnSMYlFVKI
tpQNBDpgqHJdNIhbdqS6DCVZG9EIbiX/TIMR8tBYGNMxGAD/9HpiWmc0HGyMVTto
XKxUKTZB21rPdJSxu/wMYUCG6FjkAEZ3KsGsr6B+GKCw2iIYkpMuCVztb8JsHNJA
xJle1VtAYL0FU8xvgZj4e9HxBJD7sQ==
=423y
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Dec 15 17:48:32 2021
Return-Path: <mcr+ietf@sandelman.ca>
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 527F13A07B5; Wed, 15 Dec 2021 17:48:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
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 lr78OMCQUm3U; Wed, 15 Dec 2021 17:48:25 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1D2653A07AF; Wed, 15 Dec 2021 17:48:24 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id D515F38D05; Wed, 15 Dec 2021 20:52:35 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bh3Nxm0hE0Cy; Wed, 15 Dec 2021 20:52:32 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id E517938CFC; Wed, 15 Dec 2021 20:52:31 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1639619551; bh=sk5ZP7U1XAmJFhiIm+jIZl8rYaSOR3kbPPpWtAvf7HI=; h=From:To:cc:Subject:In-Reply-To:References:Date:From; b=tQLA+dNE9B7xf8uP+u8VX2p0H6+lgI0D3ABaSp7bjbSWJNxUradwijCWHnjdJNBqm Eye/VNawY9bpTZyjffwPa81t0KSi+IfQcGmR17b39kIl6IlmUBWjmOyfDVn6XJVBwa /Gy1U7RRTlYJvZF3MKl/hlx0mWJCpLPLPb+udDEEE48AWzs4ym3VbZNutN/WBP54YV IbRqF9Pz6XEYZ4VduU4JLl121pmKPcEPowU6gIozNuqWv7F/neyUDEis8m499zWy1f MKa5KGSoxcMXhqH+KK5dwX+SzOLYDpp5YvmNi7iIZ7Aue6RbY3MSxYl3IsXiytp3/W hc666Ip8dzcZw==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 7EABE418; Wed, 15 Dec 2021 20:48:19 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Christian =?us-ascii?Q?=3D=3Fiso-8859-1=3FQ=3FAms=3DFCss=3F=3D?= <christian@amsuess.com>
cc: draft-ietf-cbor-file-magic@ietf.org, cbor@ietf.org
In-Reply-To: <YboRXwA7k7odlRjI@hephaistos.amsuess.com>
References: <163957657258.13411.7816087918094513382@ietfa.amsl.com> <YboRXwA7k7odlRjI@hephaistos.amsuess.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Wed, 15 Dec 2021 20:48:19 -0500
Message-ID: <32105.1639619299@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/xaY3C7TQDxFwHbxk935w9RRtrQY>
Subject: Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic-07.txt
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, 16 Dec 2021 01:48:31 -0000

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


Christian Ams=C3=BCss <christian@amsuess.com> wrote:
    > Example or not, I think that the document should be more explicit on =
the
    > content encoding. As I understand right now, the rules are that

    > * When used with 55799 and 55800, the content encoding is discarded, =
and
    > the content format needs to be of the CBOR family.

    > * When used with 55801, the content encoding is used to describe the
    > preprocessing of anything after byte 12.

Why do you say preprocessing?

(I'm not convinced 55801 is a good idea for anything except test data for
a CoAP server to return)

    > There's little that can be done about these, but they are IMO worth
    > pointing out when it comes to compatibility. The way any of these are

Yeah, so I see more text here, and I'm starting to think that 55801 is a li=
ability.

=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide

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

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

iQEzBAEBCgAdFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAmG6muMACgkQgItw+93Q
3WXDAAf+OpjAL2o8u4rsBiChMoLjxrTSLqVuSe3zWGISVGaJvQRruL2oMUz0onmP
i1rzFcm6OvTHS8dN66q0ZPi62MWuD+6hLMi4+/QAwcFG99A5PYnrPuCx3b655yCM
dLwW7CzhSP3vdJWE4iq3NMKKMcfQhPj30kPfi/+Dileb4JQM8PBGc3wezte7y+gd
0eFrW2vcJMYWUqgkQqUIW38qWNbEGmX39sPRg990NUuMppppkOUXwYSYF0l2YM7A
gwdShtQZAh4dBMhuVe19wjDLikECfYSNOApNgS7jo2oIgKi+B/7VY0+nAbUX8iws
Pdy5XTTS9DE7zGWzotUQQoAnLvrRKQ==
=iP3U
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Dec 15 18:17:00 2021
Return-Path: <blueroofmusic@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 B5C1B3A099F for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 18:16:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level: 
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 zbF7_BCnpQMU for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 18:16:54 -0800 (PST)
Received: from mail-vk1-xa2c.google.com (mail-vk1-xa2c.google.com [IPv6:2607:f8b0:4864:20::a2c]) (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 0973E3A09A6 for <cbor@ietf.org>; Wed, 15 Dec 2021 18:16:53 -0800 (PST)
Received: by mail-vk1-xa2c.google.com with SMTP id s1so15879514vks.9 for <cbor@ietf.org>; Wed, 15 Dec 2021 18:16:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jvNUlJlIhpSbhX723cGFE5T11Rooihi3Cj95jtnvVYQ=; b=CBVvfnLs3P8wlXAvMWezQlMlWESjTi0j+vDe8k7xFJi7h3rnKnaY3dGo4VTa4VaP8f Z0wuG+kDmPslLADg2A+5uZnWcLHOJXIKrjLYTkg0mlWJItbDU6EPIrLYoVyppEchW3Gu 8eiNJ86GwGyXzP/SrnFWQ43w+M9vVbxItOhB7UyARQFAMAkzZwSxLP6AH657gufUywEH BGSPBYKEnb/bmMnanp+R2l+rbgQB901GLVg5OwQUzndoYjt0zMDW+lEjICR7huuAsEDI DWPH8iZA2nLdqwTElKIbkL7UiUY+UXxEmu9iO4WRKkQDmwDNpTkpx6Pf0GYphKk4muMS +N8Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jvNUlJlIhpSbhX723cGFE5T11Rooihi3Cj95jtnvVYQ=; b=swuG0TTLPazTt8PRhOglpnyFwYnhxs+w27lXG+5rEijgh/b27MJ/TWXQtsZSiHjzGp 0DqL92bPHLNTv3PE9u0ZuNvUNfi8RHhu+do6V/jq9BcvFgYeSKRiuJXfWH6Pp8nHdVCa T8oVsD/bmaxOJ4mq27dSoFnalFioeqt+xL8tEf0/PnGpvp4CJ1vMpqELXGeLMHg4EcYP QtIkTNH3sdOegWBw8T9rslZcLJLQJRMJ0YmKYU9AjmnI3+7omD3vsqCcSqyI6/gTViNn PHZ99z5BMbt8mYmGoYdLrmvq3cIjUjTgfKhEUW9xtSw/egv3hTLToW1vIwF++FZ/t304 Nv4w==
X-Gm-Message-State: AOAM532enDmfQUKBrny2A6efMLG+qhf6kqGdu6nOa3qHmDUEV7JjGPeM oGd2peTQQ2SD2znjZHtVCqY7M/bGfUPHyutejAg=
X-Google-Smtp-Source: ABdhPJzK/VI11k+DiYDDGVPCNwrvEdEiW+uz/fblAdJ0qj/dgXBfVdHnywwXYZDqPDT1cNWLpnsZz+wMw4PHLFiIbWY=
X-Received: by 2002:a05:6122:732:: with SMTP id 50mr5579035vki.28.1639621012195;  Wed, 15 Dec 2021 18:16:52 -0800 (PST)
MIME-Version: 1.0
References: <163957657258.13411.7816087918094513382@ietfa.amsl.com> <4768.1639592647@localhost> <86C6CE04-19A2-43D2-B10A-935F68D1E469@tzi.org> <31680.1639619194@localhost>
In-Reply-To: <31680.1639619194@localhost>
From: Ira McDonald <blueroofmusic@gmail.com>
Date: Wed, 15 Dec 2021 21:16:32 -0500
Message-ID: <CAN40gSuVxjxHMPJUK60kVGCTcohFtuh2fSR-C_1eP+4gdv1MZg@mail.gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>, Ira McDonald <blueroofmusic@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
Content-Type: multipart/alternative; boundary="000000000000ff8dff05d33a0395"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/lIH6FmghAqQeAJO-Cm6Nf8CAPn8>
Subject: Re: [Cbor] tags for non-CBOR Content-Formats (was Re: I-D Action: draft-ietf-cbor-file-magic-07.txt)
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, 16 Dec 2021 02:16:59 -0000

--000000000000ff8dff05d33a0395
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Carsten and Michael,

Just a thought.  What about "CBXX" (for CBOR wrapped external data)?

Cheers,
- Ira


On Wed, Dec 15, 2021 at 8:46 PM Michael Richardson <mcr+ietf@sandelman.ca>
wrote:

>
> Carsten Bormann <cabo@tzi.org> wrote:
>     >> This is in:
> https://datatracker.ietf.org/doc/html/draft-ietf-cbor-file-magic-07.txt#a=
ppendix-C
>     >> I see the argument to make this an appendix since it does not tag
> CBOR
>     >> content.  I fear that the reviewers and IESG will be confused
> though.
>
>     > We could add more text why this is in an appendix.
>
> I guess so.
>
>     >>
>     >> Should it really use CBOR as bytes 8-11, since the content is not,
> in fact, CBOR?
>
>     > The header is.
>
> Yeah, but for the human who saw this in the hexdump-C, if they get their
> CBOR
> decoder out, they will be slightly annoyed once they realize that it is
> only
> the header.
> Is there another four letter word that starts with C?
> (no, not that one)
>
> %grep -i '^c[a-z][a-z][a-z]$' /usr/share/dict/words | wc -l
> 186
>
> "cite" is one.... coax. coat. cork. crop.... czar.
> I have no reason to pick these, but the prefix is kinda of a coat.
> It could also be "CONT"ains.
>
>     >> Maybe we should say something else.  I don't feel strongly about
> this.
>
>     > I thought about that, but the tag should be the determining factor;
>     > keeping the information in two places invites mismatches.
>
> I take your point.
> My point is that those bytes were because we had to wrap something, and i=
t
> provided a nice clue to the human who sees them.
> Again, I don't feel strongly.
>
>
>
>
>
>
>
> --
> Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consul=
ting )
>            Sandelman Software Works Inc, Ottawa and Worldwide
>
>
>
>
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor
>

--000000000000ff8dff05d33a0395
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Carsten and Michael,</div><div><br></div><div>Just=
 a thought.=C2=A0 What about &quot;CBXX&quot; (for CBOR wrapped external da=
ta)?</div><div><br></div><div>Cheers,</div><div>- Ira</div><div><br></div><=
/div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">O=
n Wed, Dec 15, 2021 at 8:46 PM Michael Richardson &lt;<a href=3D"mailto:mcr=
%2Bietf@sandelman.ca">mcr+ietf@sandelman.ca</a>&gt; wrote:<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex"><br>
Carsten Bormann &lt;<a href=3D"mailto:cabo@tzi.org" target=3D"_blank">cabo@=
tzi.org</a>&gt; wrote:<br>
=C2=A0 =C2=A0 &gt;&gt; This is in: <a href=3D"https://datatracker.ietf.org/=
doc/html/draft-ietf-cbor-file-magic-07.txt#appendix-C" rel=3D"noreferrer" t=
arget=3D"_blank">https://datatracker.ietf.org/doc/html/draft-ietf-cbor-file=
-magic-07.txt#appendix-C</a><br>
=C2=A0 =C2=A0 &gt;&gt; I see the argument to make this an appendix since it=
 does not tag CBOR<br>
=C2=A0 =C2=A0 &gt;&gt; content.=C2=A0 I fear that the reviewers and IESG wi=
ll be confused though.<br>
<br>
=C2=A0 =C2=A0 &gt; We could add more text why this is in an appendix.<br>
<br>
I guess so.<br>
<br>
=C2=A0 =C2=A0 &gt;&gt;<br>
=C2=A0 =C2=A0 &gt;&gt; Should it really use CBOR as bytes 8-11, since the c=
ontent is not, in fact, CBOR?<br>
<br>
=C2=A0 =C2=A0 &gt; The header is.<br>
<br>
Yeah, but for the human who saw this in the hexdump-C, if they get their CB=
OR<br>
decoder out, they will be slightly annoyed once they realize that it is onl=
y<br>
the header.<br>
Is there another four letter word that starts with C?<br>
(no, not that one)<br>
<br>
%grep -i &#39;^c[a-z][a-z][a-z]$&#39; /usr/share/dict/words | wc -l<br>
186<br>
<br>
&quot;cite&quot; is one.... coax. coat. cork. crop.... czar.<br>
I have no reason to pick these, but the prefix is kinda of a coat.<br>
It could also be &quot;CONT&quot;ains.<br>
<br>
=C2=A0 =C2=A0 &gt;&gt; Maybe we should say something else.=C2=A0 I don&#39;=
t feel strongly about this.<br>
<br>
=C2=A0 =C2=A0 &gt; I thought about that, but the tag should be the determin=
ing factor;<br>
=C2=A0 =C2=A0 &gt; keeping the information in two places invites mismatches=
.<br>
<br>
I take your point.<br>
My point is that those bytes were because we had to wrap something, and it<=
br>
provided a nice clue to the human who sees them.<br>
Again, I don&#39;t feel strongly.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Michael Richardson &lt;<a href=3D"mailto:mcr%2BIETF@sandelman.ca" target=3D=
"_blank">mcr+IETF@sandelman.ca</a>&gt;=C2=A0 =C2=A0. o O ( IPv6 I=C3=B8T co=
nsulting )<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Sandelman Software Works Inc, Otta=
wa and Worldwide<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
CBOR mailing list<br>
<a href=3D"mailto:CBOR@ietf.org" target=3D"_blank">CBOR@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/cbor" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.ietf.org/mailman/listinfo/cbor</a><br>
</blockquote></div>

--000000000000ff8dff05d33a0395--


From nobody Thu Dec 16 00:36:16 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 9D0843A1080 for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 00:36:12 -0800 (PST)
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 YG40ovqpcBlC for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 00:36:06 -0800 (PST)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (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 52AE83A107D for <cbor@ietf.org>; Thu, 16 Dec 2021 00:36:04 -0800 (PST)
Received: from poseidon-mailhub.amsuess.com ([IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by smtp.akis.at (8.17.1/8.17.1) with ESMTPS id 1BG8ZxM9016538 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Dec 2021 09:35:59 +0100 (CET) (envelope-from christian@amsuess.com)
X-Authentication-Warning: smtp.akis.at: Host [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd] claimed to be poseidon-mailhub.amsuess.com
Received: from poseidon-mailbox.amsuess.com (hermes.amsuess.com [10.13.13.254]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id A99A3D0; Thu, 16 Dec 2021 09:35:58 +0100 (CET)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:600d:f123:56c3:d90e]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 7091278; Thu, 16 Dec 2021 09:35:58 +0100 (CET)
Received: (nullmailer pid 487056 invoked by uid 1000); Thu, 16 Dec 2021 08:35:58 -0000
Date: Thu, 16 Dec 2021 09:35:58 +0100
From: Christian =?iso-8859-1?Q?Ams=FCss?= <christian@amsuess.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org
Message-ID: <Ybr6bg7J5wV3KeQu@hephaistos.amsuess.com>
References: <163957657258.13411.7816087918094513382@ietfa.amsl.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="P4wpiO0j7U/CKNwG"
Content-Disposition: inline
In-Reply-To: <163957657258.13411.7816087918094513382@ietfa.amsl.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/aHwHm4SXE_nKGwInbXBcIqsem6A>
Subject: [Cbor] CBOR-then-data example in EDHOC (was: draft-ietf-cbor-file-magic-07.txt)
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, 16 Dec 2021 08:36:13 -0000

--P4wpiO0j7U/CKNwG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello Carsten,

in yesterday's discussion of this it was briefly mentioned that we
don't have a good example of CBOR-then-data yet.

There is in the EDHOC draft:
https://lake-wg.github.io/edhoc/draft-ietf-lake-edhoc.html#appendix-A.3-5
(The data format stays unnamed, but it is a preexisting example).

BR
c

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

--P4wpiO0j7U/CKNwG
Content-Type: application/pgp-signature; name="signature.asc"

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

iQIzBAEBCAAdFiEECM1tElX6OodcH7CWOY0REtOkveEFAmG6+moACgkQOY0REtOk
veEjgBAAja5rVgB8+gzCz/cDlA6F9HAzRMBJUkkr41eimskiOph2PRdeq+LE3EnM
sX2VStJUL5KOyL6jN4rLD+CiVtyin2Z5wZSX8i4epAFPpRH94I8X64B4WcHSromb
T7NaoXm2mzB+mh20AVfVD8Bf+Feqpg8qy4UWhV0iEMUe2MJv9B0sU07FtWQLmGzJ
cdy5yojcwwwEzgVJoI8S9EfqOSO3UsLxshXuSTLDTBpNgOamB7WtPaGA8CmYbNA8
JyyEAR1eZDOH3ZnEXlq9CN7M2Fhbt3KJm2KZpPNr3UedlaNw/qYTAwnV8THxupAt
B8MV7JtDU8RSYwKv/4qXzetkJK1/QTfHu3vN6XzSbjmSmHEAR1fewuvOtJA9yhJU
0gu0llKgiHABG+xkxZZA2ySMQNg2x004cPUFF0ROTzjP2PdffmT0j1aYEyAH43hv
iJxDd134yhsdj4NJAjnltR0KPV4ZR42yTVDigFGYp66HHsgShRyOO1Do81IWxPOh
BxRmSbEXrtIGJrG3gf5/XHW7uWtyZDnHYGFZzf/CRrvq9+6o+xILRkc70WsUr22R
49u2EGx/KH7I+aGlamSTtxQgQpHEhGzXPCmX1sSo5JkE0fdzWcvEIYY1P9CPve6A
GylN8NFNXBn+TQ0jJbsKbzvQLeQ9sGwhnF5u5dctkTDsjfgzX3s=
=KLU/
-----END PGP SIGNATURE-----

--P4wpiO0j7U/CKNwG--


From nobody Thu Dec 16 02:33:20 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 EB51C3A08B2 for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 02:33:17 -0800 (PST)
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 5IGcKP-0XxLA for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 02:33:13 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EDAA73A08AE for <cbor@ietf.org>; Thu, 16 Dec 2021 02:33:11 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JF7jp6nGjzDClZ; Thu, 16 Dec 2021 11:33:02 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <Ybr6bg7J5wV3KeQu@hephaistos.amsuess.com>
Date: Thu, 16 Dec 2021 11:33:02 +0100
Cc: cbor@ietf.org
X-Mao-Original-Outgoing-Id: 661343582.330338-364027e2c54cd99d0862a648319b7143
Content-Transfer-Encoding: quoted-printable
Message-Id: <AF7C332C-E9D1-416E-A2E2-AAA8E011D4CB@tzi.org>
References: <163957657258.13411.7816087918094513382@ietfa.amsl.com> <Ybr6bg7J5wV3KeQu@hephaistos.amsuess.com>
To: =?utf-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/DhVChCc-ySttOY-SsLSlvlBOmd4>
Subject: Re: [Cbor] CBOR-then-data example in EDHOC (was: draft-ietf-cbor-file-magic-07.txt)
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, 16 Dec 2021 10:33:18 -0000

On 2021-12-16, at 09:35, Christian Ams=C3=BCss <christian@amsuess.com> =
wrote:
>=20
> Signed PGP part
> Hello Carsten,
>=20
> in yesterday's discussion of this it was briefly mentioned that we
> don't have a good example of CBOR-then-data yet.
>=20
> There is in the EDHOC draft:
> =
https://lake-wg.github.io/edhoc/draft-ietf-lake-edhoc.html#appendix-A.3-5
> (The data format stays unnamed, but it is a preexisting example).

Right.  Let me cite:

>> These identifiers are encoded in CBOR and thus self-delimiting. They =
are sent in front of the actual EDHOC message, and only the part of the =
body following the identifier is used for EDHOC processing.=C2=B6
>>=20
>> Consequently, the application/edhoc media type does not apply to =
these messages; their media type is unnamed.

We never documented CBOR header + non-CBOR data in the same way that we =
documented CBOR sequences (RFC 8742) because there is no general way to =
do a media type for them =E2=80=94 we never considered doing a =
structured syntax suffix for them, for example.

This doesn=E2=80=99t mean CBOR header + non-CBOR data is in some way a =
second-class citizen; we probably should go ahead and document this case =
(e.g., in an informational document) so people remember to put elements =
of support into their CBOR generic decoders.

We also may want to think about a variant of .cbor that bundles the =
specification of a CBOR header with the specification of what is =
essentially a byte string (which may be described in some form that we =
can describe a byte string in CDDL, e.g., by giving its length, or its =
structure via .abnfb).

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


From nobody Thu Dec 16 07:19:02 2021
Return-Path: <mcr+ietf@sandelman.ca>
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 432163A083C; Thu, 16 Dec 2021 07:18:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
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 UyqtXoxYIlBE; Thu, 16 Dec 2021 07:18:49 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 424F43A0836; Thu, 16 Dec 2021 07:18:49 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 26DD938F35; Thu, 16 Dec 2021 10:23:01 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8qxuXSDhDxcB; Thu, 16 Dec 2021 10:23:00 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [209.87.249.21]) by tuna.sandelman.ca (Postfix) with ESMTP id 84EF338F34; Thu, 16 Dec 2021 10:23:00 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1639668180; bh=Uq9Am2CGCuW8hSAsJ7aD+dYxBmWQ/dXX/0xUF2p6rUY=; h=From:To:Subject:In-Reply-To:References:Date:From; b=IaZP0V882HdkdhRWtlcM+LBV+gyyED4or0+ol7jTRVvDiMvGMtEcfO06IffPb8r/t 6N3uHzTHrWhCnTEF4x1CEoghXsWQTdsPBGOheHRAiXG/C5nravzldXOhLYYyzAG6WN wP6NNSsoIx4DYAvmcSq6cqDFXJHK2DXmgCer0olE0HaYyCYOv/Ikj1k3JoofLAxkHt qgQBtbNdXSw5Nx1X8qJcU0NTHTnshmAZdd//Tdo6EpgiP2s+P0VijlKW5MYjdkLFKL YjHqEBJ1xOsPt6JBlWX49Y4yXTbjiJeAGUujtC3RaIciH9lxDVKj8fxjUBebXem/ZK N5rffVX6mkHAA==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 03F241B9; Thu, 16 Dec 2021 10:18:46 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: "cbor\@ietf.org" <cbor@ietf.org>, cose <cose@ietf.org>
In-Reply-To: <792A0E49-9C4A-4817-BF0A-2B76EBE6EDED@island-resort.com>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org> <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <27539CB9-42E7-4313-8786-58B0A504E7E2@island-resort.com> <9912.1639076050@localhost> <792A0E49-9C4A-4817-BF0A-2B76EBE6EDED@island-resort.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Thu, 16 Dec 2021 10:18:45 -0500
Message-ID: <12621.1639667925@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/AMKDyI7eimsOHm6dTDqR613xP0I>
Subject: Re: [Cbor] [COSE]  CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 16 Dec 2021 15:18:55 -0000

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


Laurence Lundblade <lgl@island-resort.com> wrote:
    > For example, I find what CoSWID does awkward:
    > - Replicating code and definitions generally seems poor practice
    > - It excludes the possibility for encryption
    > - It doesn=E2=80=99t define what EAT needs, a signed or unsigned mess=
age that
    > is always a tag, somewhat motivating me to replicate/author CoSWID CD=
DL
    > in EAT.

I think that this is because we haven't gotten a library/public-include
system for CDDL.  So the urge is to make documents self-contained.

Given the audience for CoSWID is largely outside of the IETF, in a sector of
the industry that is, at present, very immature, I think that CoSWID did the
right thing.

EAT is a bit more inward facing (given TEEP, SUIT, etc. customers), or at
least, the external audience is a lot more mature (TCG, CCC, ...), so perha=
ps
the outgoing references are really a sign of the direction we should be
going.

As Carsten said, the CBOR WG needs to think about how exactly to use CDDL.


=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





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

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

iQEzBAEBCgAdFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAmG7WNUACgkQgItw+93Q
3WV1kwf9FZsNANQwsLdF5uh772r2pW2FFha1AzsAKuPP0vXli+9jGLjqU8nyshiz
vCpwUyjArqkApmwRdbP6EIHFMmMVCvRhF1WNVwCuXpF29NXT3auQUSQYmKd+C0uX
Xzxgbr0bh5KZu9tuXaFGxk/pFXP9Jeh8rBxr8nq7STi5jC2gA8cW8PKwUbsVAkcw
dolOhi1iRFEu7zVtr2RYpzPNjqpuYobQTf2BvxeZm8RxZaNsxvI1QDPbJaDlqVZo
A8dikOWja0spLtKnm7+u68z1A6sfOF64HFnMkMH4g+xVzRC1CN6VwrY1pZFDwqoE
X4aN6dCevJYriDJYYAIe+f6Mk3/UMQ==
=e8dV
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Thu Dec 16 07:25:32 2021
Return-Path: <mcr+ietf@sandelman.ca>
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 87F3D3A1008 for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 07:25:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
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 R2zkDy_BYwEt for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 07:25:25 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 41C923A1001 for <cbor@ietf.org>; Thu, 16 Dec 2021 07:25:24 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 69A0138F42; Thu, 16 Dec 2021 10:29:37 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rpTTUD5kJxhF; Thu, 16 Dec 2021 10:29:36 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 7FA5B38F41; Thu, 16 Dec 2021 10:29:36 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1639668576; bh=JliI+xohxCRoKoHqsxkK3nwebnCaQeXU7d+EuMBVTYI=; h=From:To:cc:Subject:In-Reply-To:References:Date:From; b=1pHSETJFPzXvDqT1Hl05I++BoyZUc5dFMV+1DzA1bjCtVkbeA5tcDloHBLNrXSSOZ e2+zxINjtWR0SM26FrgBPsX/m8sB2337yg8wY7TjKlgveBXVCEQHQ7WgmIWWintuhZ +3YR8IudTkHW6R8bL7TzM3hnaf8zrbhqnHS2ltTpNcKXO2wWxChkFB4flCUepVTt96 w9WKuH7Zb00pDuDNyc+q5ahkN76RoJ3HELXVfmZbdbB7GkfuFLF5wehsVxuSHnZMTP ViFOX6ppHcHZoTUxOx6x55x/QFs14EGa97TzenNoBWCm192vV80rErufOwD9/Kjtx7 Yllxwy0m6Y4UA==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id EE5041B9; Thu, 16 Dec 2021 10:25:21 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Russ Housley <housley@vigilsec.com>
cc: cbor@ietf.org
In-Reply-To: <80BF4A6F-9AB7-4F0D-95CB-FAFB2AFE112A@vigilsec.com>
References: <80BF4A6F-9AB7-4F0D-95CB-FAFB2AFE112A@vigilsec.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Thu, 16 Dec 2021 10:25:21 -0500
Message-ID: <14553.1639668321@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/AOaYK3cthRWxo3cX1rtzW6ShS0c>
Subject: Re: [Cbor] Review of draft-ietf-cose-cbor-encoded-cert-02
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, 16 Dec 2021 15:25:31 -0000

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


Russ Housley <housley@vigilsec.com> wrote:
    > I think that the document should just define C509.  I would like to s=
ee

I think you mean, just define C509 Certificates.

    > Sections 4, 5, and 6 moved to other documents.

Which are about CSRs, CRLs and OSCP.
I agree.

    > Section 3 says:

    > The re-encoding does not work for BER encoded certificates.

    > This is not quite correct.  One can always convert a BER-encoded
    > certificate to a DER-encoded certificate.  Then, the DER-encoded
    > certificate can be converted to C509.

I can't imagine a BER encoded certificate.
Could/would BER encoded certificates ever pass a signature?

=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide

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

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

iQEzBAEBCgAdFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAmG7WmEACgkQgItw+93Q
3WXD9Qf+PsiXJKz11/lMS5yHsGyVhCIV3QN2Wu4Y8Wi68rbinQfydvAQXpK7ULWi
2NVPXYCaCGm1ZNMybozWiTtbVqpdZDVpaEwq490M8OiNKRlloHtIO3RPDJidWE4f
hWnTGOfO/pQ4SBSZ9jo076MFmLJ97AjmOBMHKcHDfhbhwgCaNgBex5xxK8C/+ySZ
BIrp6yxn48p71tuuEpdo+6sbnkuRVutcTEZ1cTMdW8VjgnBX5WO1U40o7BBjXNPJ
0ouyrIPh45eHe/Bgej+8plwoFSJ/828PrGC5BtpWM/EsaesGFnB2X99cvHnsKiip
T2WF/KEAsFwCkRB7J1dZHW67ZeJWMQ==
=sm8L
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Thu Dec 16 08:32:38 2021
Return-Path: <mcr+ietf@sandelman.ca>
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 1A7493A09DB for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 08:32:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
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 d0jm1FW9g3pR for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 08:32:30 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 771C93A09D5 for <cbor@ietf.org>; Thu, 16 Dec 2021 08:32:29 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id E563E38F26; Thu, 16 Dec 2021 11:36:42 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ASxodkwt1W0Z; Thu, 16 Dec 2021 11:36:42 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 1818838F22; Thu, 16 Dec 2021 11:36:42 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1639672602; bh=+S4l8hBUZ8wJckAFQgCyvCqYn90DQbft/AARf9ycmb0=; h=From:To:cc:Subject:In-Reply-To:References:Date:From; b=QYCUpuNhdIKmBtBN27WdHHnlklWCEOTiWvXcdPeGTcuuXSeNpnlNbRZPL0EjNsQyX zkpjClpu4jQh6vBvtqFGzj/RJ+k0HJPdMPBKQLPcy5s9L1jwDOlb9d72BXQaj/RN/i HlWR6S8br7QST5EbssYAWIlgC7LNkQQ9WF/75XBBmdvUZJ3UwORYGlRDXtqu3doK1r OEbr+eyrqT+3x1YhLbts9xwvRFaVbwnnLUIeYG+PsrvsfOagPL5EVJdDFjYiwRVhPN HfbuvQKBG/CuPAbMmwxTyE8q43uRDTn+fUTZLssf3FeJuwwuk1l362fU2e7nAgNix7 RXnRVt0Lh1zBw==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 5BC60230; Thu, 16 Dec 2021 11:32:27 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Ira McDonald <blueroofmusic@gmail.com>
cc: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
In-Reply-To: <CAN40gSuVxjxHMPJUK60kVGCTcohFtuh2fSR-C_1eP+4gdv1MZg@mail.gmail.com>
References: <163957657258.13411.7816087918094513382@ietfa.amsl.com> <4768.1639592647@localhost> <86C6CE04-19A2-43D2-B10A-935F68D1E469@tzi.org> <31680.1639619194@localhost> <CAN40gSuVxjxHMPJUK60kVGCTcohFtuh2fSR-C_1eP+4gdv1MZg@mail.gmail.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Thu, 16 Dec 2021 11:32:27 -0500
Message-ID: <966.1639672347@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/fTIlYKFRtEFxEenc7XPlmGIIJzA>
Subject: Re: [Cbor] tags for non-CBOR Content-Formats (was Re: I-D Action: draft-ietf-cbor-file-magic-07.txt)
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, 16 Dec 2021 16:32:36 -0000

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


Ira McDonald <blueroofmusic@gmail.com> wrote:
    > Hi Carsten and Michael,

    > Just a thought.  What about "CBXX" (for CBOR wrapped external data)?

maybe: CBOX.


=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





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

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

iQEzBAEBCgAdFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAmG7ahsACgkQgItw+93Q
3WWoGQf/c4VxQTB8bInchWiJDpG9dgruJwCHcjTKFegkIOfRRLPUj4mS6dble1jv
f/f90rKP/2QzG1C7ytPVMyNaNiTjLiDAQ534LRhrI8cuajFdUKfyZAiDNXAay5kU
kpPVJyI00gS9xAYJMiEHFDh0x5Zj4p7Q80BPoWWnx+qSQB+p9b0VO20Y0z54Dd+2
2McWT0JBwrtWPKJtX7ktQcFRuMyGs5tTh5Hww35jCCJrti9KxM2AGCfQF4tdjuiq
xAwwIf5Bd9uMnt1PEPqaG1pJX3je9XTJ07lxzMMO9G3jaWTMZKB+mdDK8RKesue5
Jz49921j2GJpdC6skzYpK7WqS8HrYQ==
=azs8
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Thu Dec 16 08:54:28 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 292DC3A1196 for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 08:54:26 -0800 (PST)
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, RCVD_IN_MSPIKE_H2=-0.001, 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 RoSJFTOldR6s for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 08:54:20 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8B08B3A1191 for <cbor@ietf.org>; Thu, 16 Dec 2021 08:54:20 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JFJ9k0JP6zDCjQ; Thu, 16 Dec 2021 17:54:18 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CAN40gSuVxjxHMPJUK60kVGCTcohFtuh2fSR-C_1eP+4gdv1MZg@mail.gmail.com>
Date: Thu, 16 Dec 2021 17:54:17 +0100
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, cbor@ietf.org
X-Mao-Original-Outgoing-Id: 661366457.612694-d43b3b9e629dfac753e6c5ae88831c03
Content-Transfer-Encoding: quoted-printable
Message-Id: <908F81F1-53AF-426E-814E-9F0781A5E5D7@tzi.org>
References: <163957657258.13411.7816087918094513382@ietfa.amsl.com> <4768.1639592647@localhost> <86C6CE04-19A2-43D2-B10A-935F68D1E469@tzi.org> <31680.1639619194@localhost> <CAN40gSuVxjxHMPJUK60kVGCTcohFtuh2fSR-C_1eP+4gdv1MZg@mail.gmail.com>
To: Ira McDonald <blueroofmusic@gmail.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/606D0ocgFwY4pqGeNC8uRfcabVE>
Subject: Re: [Cbor] tags for non-CBOR Content-Formats (was Re: I-D Action: draft-ietf-cbor-file-magic-07.txt)
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, 16 Dec 2021 16:54:26 -0000

Hi Ira,

> On 2021-12-16, at 03:16, Ira McDonald <blueroofmusic@gmail.com> wrote:
>=20
> Just a thought.  What about "CBXX" (for CBOR wrapped external data)?

There are many strings starting with C we could use (even ones with c).

I still would like to stick with =E2=80=9CCBOR", as I wrote:

>> I thought about that, but the tag should be the determining factor; =
keeping the information in two places invites mismatches.

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


From nobody Thu Dec 16 09:11:13 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 DBA443A1295 for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 09:11:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.399
X-Spam-Level: 
X-Spam-Status: No, score=-1.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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 ognnsd8tI8Ua for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 09:11:04 -0800 (PST)
Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.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 9A06D3A129A for <cbor@ietf.org>; Thu, 16 Dec 2021 09:11:04 -0800 (PST)
Received: by mail-ua1-f53.google.com with SMTP id y23so6610056uay.7 for <cbor@ietf.org>; Thu, 16 Dec 2021 09:11:04 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=buBBg5HoAzRJnEf9WwHahI0qdPNuKerlhLNPJbcvU70=; b=3w8TsWQoLZKMGI/PVpNxnrynBWBV4pCmlxPrMoTCgogEV4qspa8gtkQTTf0hDkJLXW NOzTRFP5iXcgrvMzn8oOMgzIc6WdWnTb18v0NouZj55M0M+N/uX5q3CtPrRvj8KMZPEg BTEt2nJ7pZCqOvZl8cQda71Q6IF0D4vWP9qJXtJiKvfGxcHWq7ENhIkKM0Ttf/LzCfeA HZh8+GmDfKcjMRYr1HaNQHeIKxaGIC/rkas6SQ72cFfEvK7gM0yThjqrJfaWriGEeGEi Ut/fzALRnrsvvq5sARa8zMaNgbBLJoMXFwG0Q6/Me8Mcpbho962IMO1+vG1lIIIo2R4t /yFg==
X-Gm-Message-State: AOAM531yyQNcNLjelbLYOUhZfpNEnGS3rEJLB0ZKnDAI5UjshzgQoinx gvAerWrt9J9BTfnE7UNfocSnEt2Tb9E6NnMAWwcZRqsH
X-Google-Smtp-Source: ABdhPJxaQN/7dsSTzs6+V2nhLBZ9h2dD2bqCwRCFamX2ejLbmkLPgURBHI7H7yNFItiZwE5l8NI2fNCaFKhdPkZ56O0=
X-Received: by 2002:ab0:66c7:: with SMTP id d7mr12797225uaq.94.1639674663114;  Thu, 16 Dec 2021 09:11:03 -0800 (PST)
MIME-Version: 1.0
References: <077EDC59-74CE-42B4-B651-BA8846719CD9@tzi.org> <BD71DE08-ABB4-445E-9215-AB8144F5A087@tzi.org> <CALaySJL-+YemuGLTvVN=K0MgkSy32FVb95mQ24f=6njexZTE3w@mail.gmail.com>
In-Reply-To: <CALaySJL-+YemuGLTvVN=K0MgkSy32FVb95mQ24f=6njexZTE3w@mail.gmail.com>
From: Barry Leiba <barryleiba@computer.org>
Date: Thu, 16 Dec 2021 12:10:52 -0500
Message-ID: <CALaySJJHYLgQhfTPm0ek1iwyiC6LnAJGEmB8_PGKA2TRn3AfWg@mail.gmail.com>
To: cbor@ietf.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/QzUfjpKlDTWWpsW_ZvLhnS2dEUs>
Subject: Re: [Cbor] Glitch in cddl-control AUTH48
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, 16 Dec 2021 17:11:10 -0000

Closing the loop here: Francesca has given her approval to proceed
with publication, based on lack of objection here.

Barry

On Thu, Dec 9, 2021 at 2:52 PM Barry Leiba <barryleiba@computer.org> wrote:
>
> Thanks for posting this, Carsten, and thanks to Ira for a quick
> response.  So as not to leave this open ended, I'm going to put a
> deadline of 16 Dec on comments.  Lacking objections by then, we will
> consider this accepted.  Please speak up now if you have a problem
> with it.
>
> Thanks,
> Barry
>
> On Tue, Dec 7, 2021 at 4:13 PM Carsten Bormann <cabo@tzi.org> wrote:
> >
> > Hi,
> >
> > In the last step (=E2=80=9CAUTH48=E2=80=9D) before a document like cddl=
-control becomes an RFC, the author(s) are supposed to do a full reread to =
capture any problems that remained hidden during the incremental developmen=
t of the I-D.
> >
> > Normally, we find a few editorial problems (which we did; they since ha=
ve been dealt with).
> > This time, however, there is also a technical contradiction between an =
illustration (Figure 4) and the normative text that would need to be consid=
ered in making up the example in the illustration (
> >
> > Background: cddl-control deliberately allows byte string literals in pl=
aces where text string literals would really make more sense.  The reason i=
s that the content of these literals often is specification text (ABNF) wit=
h embedded newlines, which are much easier to write as byte strings (where =
embedded newlines are allowed in RFC 8610) than as text strings (which inhe=
rit the JSON syntax that requires replacing every newline with a linear \n,=
 creating essentially unreadable source text).  This is demonstrated in Fig=
ure 2:
> >
> > >    c =3D "foo" .cat '
> > >      bar
> > >      baz
> > >    '
> > >    ; on a system where the newline is \n, is the same string as:
> > >    b =3D "foo\n  bar\n  baz\n"
> > >
> > >        Figure 2: An Example of Concatenation of Text and Byte Strings
> >
> > So we handled that properly for .cat and .det, but it turns out we did =
not for .abnf and .abnfb themselves.  Here, bullet 1 (which mostly is about=
 the target and its interpretation) in Section 3 tersely says:
> >
> > >    The controller string MUST be a text string.
> >
> > This is not only not what is implemented in the cddl tool (which accept=
s a byte string just fine), it is also directly contradicting Figure 4:
> >
> > >    oid =3D bytes .abnfb 'oid
> > >    oid =3D 1*arc
> > >    roid =3D *arc
> > >    arc =3D [nlsb] %x00-7f
> > >    nlsb =3D %x81-ff *%x80-ff
> > >    '
> > >
> > >              Figure 4: Dedenting example: result of first .det
> >
> > To me, this is an oversight where we simply didn=E2=80=99t update that =
sentence to the more useful way of accepting byte strings just for their be=
tter syntax handling newlines.  So I am suggesting we change the sentence t=
o:
> >
> > > The controller MUST be a string.  When a byte string, it MUST be vali=
d UTF-8 and is interpreted as the text string that has the same sequence of=
 bytes.
> >
> > =E2=80=A6 which I=E2=80=99m suggesting as a fix in the excerpt of the A=
UTH48 processing mail copied below.  I apologize for not seeing this earlie=
r.
> >
> > Our AD Francesca brought to my attention that cbor@ietf.org is not copi=
ed on AUTH48 processing; I had forgotten that (other WGs do that copying ha=
bitually).  So I didn=E2=80=99t think to bring this up separately here, whi=
ch I am now doing.
> >
> > You can find the text that will be published if we do make the last-min=
ute change, at the end of the bullet:
> >
> > https://www.rfc-editor.org/authors/rfc9165.html#section-3-4.1
> >
> > (Note that this text is an RFC-to-be, not the final RFC, please don=E2=
=80=99t start citing it as an RFC before it has been published.)
> >
> > Does anybody in the CBOR WG see a technical problem coming up with maki=
ng this last minute fix?  If you see a problem (with implementation or use =
of byte string literals not only in the controller arguments of .cat/.det, =
but also in those of .abnf/.abnfb), please speak up quickly; this is the la=
st item standing in the way towards publishing this RFC.
> >
> > Gr=C3=BC=C3=9Fe, Carsten
> >
> >
> >
> > > Begin forwarded message:
> > >
> > > From: Carsten Bormann <cabo@tzi.org>
> > > Date: 2021-12-04 at 17:00:03 CET
> > > To: <rfc-editor@rfc-editor.org>
> > > Cc: cbor-ads@ietf.org, cbor-chairs@ietf.org, Christian Ams=C3=BCss <c=
hristian@amsuess.com>, francesca.palombini@ericsson.com
> > > Message-Id: <077EDC59-74CE-42B4-B651-BA8846719CD9@tzi.org>
> > >
> > [=E2=80=A6]
> > > (0)
> > > The last sentence in the first bullet in 3 says "The controller strin=
g MUST be a text string.=E2=80=9D.
> > > However, the previous section=E2=80=99s example in Figure 4 happens t=
o use a byte string literal, and leniently allowing both kinds of strings i=
s also what is implemented.
> > > I believe loosening this up has the upside of simplifying cases such =
as in Figure 4, and no downside, so I would suggest:
> > >
> > > OLD:
> > > The controller string MUST be a text string.
> > > NEW:
> > > The controller MUST be a string.  When a byte string, it MUST be vali=
d UTF-8 and is interpreted as the text string that has the same sequence of=
 bytes.
> > [=E2=80=A6]
> >
> > _______________________________________________
> > CBOR mailing list
> > CBOR@ietf.org
> > https://www.ietf.org/mailman/listinfo/cbor


From nobody Thu Dec 16 10:58:56 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 D61993A0E53 for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 10:58:54 -0800 (PST)
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_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 Mia6z4rROAIh for <cbor@ietfa.amsl.com>; Thu, 16 Dec 2021 10:58:49 -0800 (PST)
Received: from p3plsmtpa09-07.prod.phx3.secureserver.net (p3plsmtpa09-07.prod.phx3.secureserver.net [173.201.193.236]) (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 713563A0E57 for <cbor@ietf.org>; Thu, 16 Dec 2021 10:58:48 -0800 (PST)
Received: from [192.168.1.7] ([75.80.148.243]) by :SMTPAUTH: with ESMTPA id xvxnmvZzRffcCxvxomhuq9; Thu, 16 Dec 2021 11:58:48 -0700
X-CMAE-Analysis: v=2.4 cv=e8HD9Yl/ c=1 sm=1 tr=0 ts=61bb8c68 a=VPU1mRQhDhA4uSX60JRRww==:117 a=VPU1mRQhDhA4uSX60JRRww==:17 a=IkcTkHD0fZMA:10 a=l70xHGcnAAAA:8 a=K6EGIJCdAAAA:8 a=KFEQp-AZ9d-iabaY9fUA:9 a=QEXdDO2ut3YA:10 a=JtN_ecm89k2WOvw5-HMO:22 a=L6pVIi0Kn1GYQfi8-iRI:22
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: <12621.1639667925@localhost>
Date: Thu, 16 Dec 2021 10:58:47 -0800
Cc: "cbor@ietf.org" <cbor@ietf.org>, cose <cose@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <07C1A0F5-2206-4E2D-8C39-04F6302C74AA@island-resort.com>
References: <85278E84-AD34-4F68-94DC-437BABCCD621@island-resort.com> <DBBPR08MB591541267172A49382892483FA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <75C33F50-0C92-47B9-80DB-050499F51630@tzi.org> <DBBPR08MB5915DCAD539AD2CA4770515BFA6F9@DBBPR08MB5915.eurprd08.prod.outlook.com> <27539CB9-42E7-4313-8786-58B0A504E7E2@island-resort.com> <9912.1639076050@localhost> <792A0E49-9C4A-4817-BF0A-2B76EBE6EDED@island-resort.com> <12621.1639667925@localhost>
To: Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailer: Apple Mail (2.3445.104.17)
X-CMAE-Envelope: MS4xfGamNMVIkCj2I9KOmAKbGh/Z3u0MeUmUPZusjywpVKKOukZ56PoGkRYs0Hq7VK/wy9r99n/g5mp6FcQMKvchV3xyJ2q91AoJ1OpxKSiyPArn212G5w+x pbzS6mtXE5XLEaBqFriAZF6NAK52nLRlBhSYU2+gzbylLHJ5UtyFG8w02bSZ+HHV41lr7pJ1obt2ZSqc/dH99wXmo+kv5IKK04521LfXGunPBf+K7X4Svh0b rls9ux7gkLKJ7C470UtbHw==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/38AxeMnyCpbu0ZLDnmBxj10Cp60>
Subject: Re: [Cbor] [COSE]  CDDL for COSE + EAT/CWT + SUIT + CoSIWD
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, 16 Dec 2021 18:58:55 -0000

On Dec 16, 2021, at 7:18 AM, Michael Richardson <mcr+ietf@sandelman.ca> =
wrote:
>=20
>=20
> Laurence Lundblade <lgl@island-resort.com> wrote:
>> For example, I find what CoSWID does awkward:
>> - Replicating code and definitions generally seems poor practice
>> - It excludes the possibility for encryption
>> - It doesn=E2=80=99t define what EAT needs, a signed or unsigned =
message that
>> is always a tag, somewhat motivating me to replicate/author CoSWID =
CDDL
>> in EAT.
>=20
> I think that this is because we haven't gotten a =
library/public-include
> system for CDDL.  So the urge is to make documents self-contained.

It didn=E2=80=99t replicate all of the COSE CDDL, just the parts to =
enable control of the headers and to allow specification of the payload =
with .cbor.

It did replicate not enough to be self-contained, so I don=E2=80=99t =
think that is the reason.

Also, it doesn=E2=80=99t just replicate the CDDL, it modifies it! This =
is so the CDDL also controls some of the COSE headers. (Again, I find =
this odd and awkward; CWT and EAT don=E2=80=99t try to control the COSE =
headers).

I think the reason is so the CDDL specification is more thorough and =
covers more of the CoSWID protocol. It is so prose is not relied upon =
for these.

It is also a cool use of CDDL templates.

LL



Note, that I have replicated COSE CDDL in the EAT document build system =
so I can do thorough CDDL validation of the EAT examples, but it is not =
part of the published document. I=E2=80=99m also using curl to fetch =
CoSWID and SUIT CDDL for this. All of this is because we don=E2=80=99t =
have a scheme for publish/reference, #includes and such. If all this =
broke because the URLs changed or the CDDL in CoSWID CDDL in GitHub was =
refactored or such, all that would break is the CDDL validation. The EAT =
document and building of the EAT document doesn=E2=80=99t rely on any of =
it. (Thanks Thomas)


From nobody Fri Dec 24 07:10:17 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 D460D3A0C94; Fri, 24 Dec 2021 07:10:15 -0800 (PST)
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_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 lJR5Usv7v_Pr; Fri, 24 Dec 2021 07:10:11 -0800 (PST)
Received: from rfc-editor.org (rfc-editor.org [IPv6:2001:1900:3001:11::31]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 054D83A0C6E; Fri, 24 Dec 2021 07:10:11 -0800 (PST)
Received: by rfc-editor.org (Postfix, from userid 499) id E5A58119EC; Fri, 24 Dec 2021 07:10:10 -0800 (PST)
To: ietf-announce@ietf.org, rfc-dist@rfc-editor.org
From: rfc-editor@rfc-editor.org
Cc: rfc-editor@rfc-editor.org, drafts-update-ref@iana.org, cbor@ietf.org
Content-type: text/plain; charset=UTF-8
Message-Id: <20211224151010.E5A58119EC@rfc-editor.org>
Date: Fri, 24 Dec 2021 07:10:10 -0800 (PST)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/YVXr55ZbkEI3a2aDr6P_Infzbv0>
Subject: [Cbor] =?utf-8?q?RFC_9165_on_Additional_Control_Operators_for_th?= =?utf-8?q?e_Concise_Data_Definition_Language_=28CDDL=29?=
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, 24 Dec 2021 15:10:16 -0000

A new Request for Comments is now available in online RFC libraries.

        
        RFC 9165

        Title:      Additional Control Operators for the 
                    Concise Data Definition Language (CDDL) 
        Author:     C. Bormann
        Status:     Standards Track
        Stream:     IETF
        Date:       December 2021
        Mailbox:    cabo@tzi.org
        Pages:      11
        Updates/Obsoletes/SeeAlso:   None

        I-D Tag:    draft-ietf-cbor-cddl-control-07.txt

        URL:        https://www.rfc-editor.org/info/rfc9165

        DOI:        10.17487/RFC9165

The Concise Data Definition Language (CDDL), standardized in RFC
8610, provides "control operators" as its main language extension
point.

The present document defines a number of control operators that were
not yet ready at the time RFC 8610 was completed: , , and  for the
construction of constants; / for including ABNF (RFC 5234 and RFC
7405) in CDDL specifications; and for indicating the use of a
non-basic feature in an instance.

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

This is now a Proposed Standard.

STANDARDS TRACK: This document specifies an Internet Standards Track
protocol for the Internet community, and requests discussion and suggestions
for improvements.  Please refer to the current edition of the Official
Internet Protocol Standards (https://www.rfc-editor.org/standards) for the 
standardization state and status of this protocol.  Distribution of this 
memo is unlimited.

This announcement is sent to the IETF-Announce and rfc-dist lists.
To subscribe or unsubscribe, see
  https://www.ietf.org/mailman/listinfo/ietf-announce
  https://mailman.rfc-editor.org/mailman/listinfo/rfc-dist

For searching the RFC series, see https://www.rfc-editor.org/search
For downloading RFCs, see https://www.rfc-editor.org/retrieve/bulk

Requests for special distribution should be addressed to either the
author of the RFC in question, or to rfc-editor@rfc-editor.org.  Unless
specifically noted otherwise on the RFC itself, all RFCs are for
unlimited distribution.


The RFC Editor Team
Association Management Solutions, LLC


