Re: [core] [Lake] đź”” Working Group Last Call (WGLC) of draft-ietf-core-oscore-edhoc-06

Carsten Bormann <cabo@tzi.org> Wed, 15 February 2023 22:39 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 05B63C1782C7; Wed, 15 Feb 2023 14:39:08 -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, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vj1VnWsc3rnq; Wed, 15 Feb 2023 14:39:03 -0800 (PST)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7DADCC16B5C1; Wed, 15 Feb 2023 14:39:02 -0800 (PST)
Received: from smtpclient.apple (p548dc9a4.dip0.t-ipconnect.de [84.141.201.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4PHCfr0VKRzDCcj; Wed, 15 Feb 2023 23:39:00 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <Y+1b4qX6Ya7BCbvk@hephaistos.amsuess.com>
Date: Wed, 15 Feb 2023 23:38:49 +0100
Cc: core@ietf.org, lake@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <7A07B432-3DD7-4517-B22D-C5C58E9910E6@tzi.org>
References: <F02C5E48-A196-45EC-8576-6BC67EC26AD3@tzi.org> <Y+1b4qX6Ya7BCbvk@hephaistos.amsuess.com>
To: Christian AmsĂĽss <christian@amsuess.com>
X-Mailer: Apple Mail (2.3731.400.51.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/JkFi7e7RXZuClkdT8tP1l6vAgJM>
Subject: Re: [core] [Lake] đź”” Working Group Last Call (WGLC) of draft-ietf-core-oscore-edhoc-06
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Feb 2023 22:39:08 -0000

On 15. Feb 2023, at 23:25, Christian AmsĂĽss <christian@amsuess.com> wrote:
> 
> * 3.2 step 3: "The first CBOR byte string is the EDHOC message_3

Ah.

We are using the term “byte string” to describe the generic data model data item with that name (using major type 2 and enclosing a sequence of bytes into a single data item).

We are using the term “encoded CBOR data item” to describe the sequence of bytes that results from encoding a CBOR data item (any CBOR data item of course, not just a byte string).

So where the byte string is h’010203’, the encoded CBOR data item encoding that data item is 43010203 hex.
The latter, of course, can be carried in another byte string h’43010203’, which would then be encoded as 4443010203 hex.
So it is really important not to confuse “CBOR byte string” with “encoded CBOR data item”.

(Of course, this distinction applies to any representation format that can carry its own encodings, as in the JSON text 

    “{\”a\”: 1, \”b\”: 2}” 

which is obviously not the same as the JSON text

    {“a”: 1, “b”: 2}

In JSON this kind of embedding is rather expensive and thus done less often, while in CBOR embedding encoded data items in byte strings is a rather natural way to carry certain kinds of information.)

GrĂĽĂźe, Carsten