[Cbor] Re: Private tag numbers / 1010

Anders Rundgren <anders.rundgren.net@gmail.com> Sun, 15 December 2024 07:30 UTC

Return-Path: <anders.rundgren.net@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 5E078C151998 for <cbor@ietfa.amsl.com>; Sat, 14 Dec 2024 23:30:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dyzOpVNzq0IQ for <cbor@ietfa.amsl.com>; Sat, 14 Dec 2024 23:30:51 -0800 (PST)
Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AFD13C151061 for <cbor@ietf.org>; Sat, 14 Dec 2024 23:30:51 -0800 (PST)
Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-385e1fcb0e1so1646717f8f.2 for <cbor@ietf.org>; Sat, 14 Dec 2024 23:30:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734247850; x=1734852650; darn=ietf.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=23El1OVhHsD6n/2Gh16WD3WGuQfxzRptXI4cY1A4FlA=; b=c3vo4fyRZV9FaAtfyvUl42/kGCS7Kq+0uFmcMO/OX7Prku4ShfhAeqq6oKqM72wd7Q 4jN5gpCyYao5H//Plrgm5vDktxHpgGgn4ouI+uG0YLzbAYGBOikzyf93/yFjoc2FLdcN uP+olijlP73ie5gkYgHfYl1uIZAXaodG4R9fh9OByfOzjXJlCR4w6EywbWsHrFLHuJUN 1CHVn+cLIpQw3le6fONjnyZQuqlmz/0mFXl03ky+WhXMzo4+J6mcihhYucyQoau8ES8b AhbB4HU9PdJVeeOBtkDbRLovp/WJOwn50Kk9k6eGX8Kb1QF/n184kPxd2/WsaqMZuKKM qXHg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734247850; x=1734852650; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=23El1OVhHsD6n/2Gh16WD3WGuQfxzRptXI4cY1A4FlA=; b=jW+hZupydlrnAHqncxXcKoRGWFz7Cxm4hK0zGbCeojJk/2/xz05rkfmanUfbD3j1BS NTBr8cBthXoFOTEYoEYABy5NNKfE0cAgYgpX7fi3N6C0oLK/uulPv91845Znn3WSgCur rCw+JbVH6Ql2uekdySMlRMg2O4Qg/O372hcH7OUruvCSzO8pCmnrvzbmXqFGCLVG7K5Z EoXPES1AvkgkMVwJ7NH2HnoYV6qPQ60QTYNNDSGYtYwFUpvhwx8lHOXPis1plwqec3xr 1ics3Ooex6Jp1xcfrNLb11BZ6gWocBnG/uWGqAAZRJe0Tl0s6Mo4EiHFBKeipnStJ2Zf EVnQ==
X-Forwarded-Encrypted: i=1; AJvYcCUWKsRxS9a3JgIo0kZngHi3HenU0AfjQFYaAp6O96MdKIHqH6lvTlaIxZ2oziq/zaIPGUmj@ietf.org
X-Gm-Message-State: AOJu0YwXNgp1xW0MYEKTvtJUgHBxBjy3lCB2AZIRR6YDuptFGnJL75oM LIAhGT88/p7zUzPSH48HQuNTj4dG2akKteOcmv3yL6YjSjxk5ASN
X-Gm-Gg: ASbGncujY5SVBGJ+MXQFUB8eXjqjEk2wAhoswDOuxezbcCer3UOsLQ9zVWTue93jWjS hNJ40uHREtgnDeAv6pbcu/iUbjbBz+3vnAydyl12w7/6DGRhK/cnRjjHC9CEquz96z6TnCJRkhh zI4usbjqhHFa+wOyc9mj3714Tyvxk0cicVr9QN3hygF+bQtMsBPtVJbZmnEKbreHVejmqUbMIfr uWLIudAgRCQAp22wg+5ySHY2yVt3ggKjbBhfgcQ+0IjXT3lPKkgvf7U/hcq/GSOGmbM1lJSwZV4 CAhs1tDIoK7l2hOYUrmvd8kjfY7sESFF5h3LqlVybZe3HalkHlDqCC9i
X-Google-Smtp-Source: AGHT+IEF/mkWhVSwtyivX1ovZwSbHqKg957N3qQpJyq4IKTZN4VAJ6BIq8wh37RgX98jJcY50uJCKg==
X-Received: by 2002:a5d:47a5:0:b0:385:dfab:1643 with SMTP id ffacd0b85a97d-38880ae0e0amr6473199f8f.27.1734247849780; Sat, 14 Dec 2024 23:30:49 -0800 (PST)
Received: from ?IPV6:2a01:e0a:e1b:64b0:ad39:9f73:1eb0:ec77? ([2a01:e0a:e1b:64b0:ad39:9f73:1eb0:ec77]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-388c8049facsm4606648f8f.79.2024.12.14.23.30.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Dec 2024 23:30:48 -0800 (PST)
Message-ID: <571e95c1-2cb2-498b-8e91-41db9948b88d@gmail.com>
Date: Sun, 15 Dec 2024 08:30:47 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: Carsten Bormann <cabo@tzi.org>
References: <AS2PR09MB6342AB1E5DFF19EDFB65F25F8C609@AS2PR09MB6342.eurprd09.prod.outlook.com> <8AD1E3E6-A474-4D4D-B404-66172DF8C481@tzi.org> <20230723010552.01d80062@nuclight> <c40b9570-5e22-73c8-744f-1e141edea875@gmail.com> <20241215031403.63e93131@nuclight.lan> <755d93c9-d253-4558-b6ac-d3e1f4555535@gmail.com> <971C7876-CD38-4038-A6C1-BF3F1D0F8E6D@tzi.org> <9e31c69f-f714-4431-bc25-ccde09fe07e5@gmail.com> <5DE0D5E9-1F84-4051-9332-1E17CBA4C023@tzi.org>
Content-Language: en-US
From: Anders Rundgren <anders.rundgren.net@gmail.com>
In-Reply-To: <5DE0D5E9-1F84-4051-9332-1E17CBA4C023@tzi.org>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Message-ID-Hash: NTXR32QB6YBFLNBD5XEHFOG7UAVRGDMR
X-Message-ID-Hash: NTXR32QB6YBFLNBD5XEHFOG7UAVRGDMR
X-MailFrom: anders.rundgren.net@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Vadim Goncharov <vadimnuclight@gmail.com>, Tony Putman <Anthony.Putman@dyson.com>, "cbor@ietf.org" <cbor@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Cbor] Re: Private tag numbers / 1010
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/XwWTeVR1M9b2nW6OtWc7V72HInI>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>

On 2024-12-15 08:20, Carsten Bormann wrote:
> On 15. Dec 2024, at 08:06, Anders Rundgren <anders.rundgren.net@gmail.com> wrote:
>>
>> OK, then I would settle for bstr (like COSE's "kid") because that gives you highest flexibility.
> 
> COSE’s kid [0] records a unilateral decision to call something (a key) something (an opaque byte string).
> It is essentially used as a hint if this information is reflected back to the system that gave it a name.

This what the RFC says but that is just a theory.  Nobody (in their right mind...) is "trying out" signature or encryption keys.
That is, kid (in reality) depends on mutually decided conventions.


> (kids are also instance identifiers, not type identifiers.)

No argument about that.

> 
> Type identifiers are different:
> 
> * first of all because there are intended as types,
> * but also because they usually are meant to transfer processable information from one player to another one,
> * in particular if they are intended to have a unique meaning and are dereferenceable [1].
> 
> bstr won’t do.

The only reason I didn't use bstr in COTX was for printouts in diagnostic notation :)

Anders

> 
> Grüße, Carsten
> 
> [0]: https://www.rfc-editor.org/rfc/rfc9052#section-3.1-3.8
> [1]: https://www.ietf.org/archive/id/draft-bormann-t2trg-deref-id-04.html
>