[COSE] COSE content-type (generic header 3)

Carsten Bormann <cabo@tzi.org> Wed, 17 February 2021 21:12 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DC44A3A1D4F for <cose@ietfa.amsl.com>; Wed, 17 Feb 2021 13:12:03 -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_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 FY2dRULPsB5V for <cose@ietfa.amsl.com>; Wed, 17 Feb 2021 13:12:01 -0800 (PST)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DDD923A1D4E for <cose@ietf.org>; Wed, 17 Feb 2021 13:12:00 -0800 (PST)
Received: from [192.168.217.118] (p5089a828.dip0.t-ipconnect.de [80.137.168.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4DgrBQ0t7rzyTH; Wed, 17 Feb 2021 22:11:58 +0100 (CET)
From: Carsten Bormann <cabo@tzi.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mao-Original-Outgoing-Id: 635289117.639604-191a11f63c34006201f0c135291839db
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
Date: Wed, 17 Feb 2021 22:11:57 +0100
Message-Id: <CB35944F-EBA3-487C-8B2C-96267E1A87CD@tzi.org>
To: cose <cose@ietf.org>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/FTijJ6q9hOcJFT2Viig51V-63-k>
Subject: [COSE] COSE content-type (generic header 3)
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cose>, <mailto:cose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose/>
List-Post: <mailto:cose@ietf.org>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cose>, <mailto:cose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Feb 2021 21:12:04 -0000

draft-ietf-cose-rfc8152bis-struct-15.txt defines a generic header 3, which is either a media-type-name [1] or a content-format number.
Table 3 on page 17 says this is text string or unsigned integer.
The CDDL snippet following the table at the start of page 18 says

       ? 3 => tstr / int,  ; content type

I think this should be uint, not int.

I also would like to be able to use Content-Type [1] or preferably even Content—Format-String [2] for the text string (we already can use Content-Format numbers for the uint).

Is this a clarification we can/should do at this stage?

Grüße, Carsten


[1]: https://www.ietf.org/archive/id/draft-bormann-core-media-content-type-format-02.html#name-content-type
[2]: https://www.ietf.org/archive/id/draft-bormann-core-media-content-type-format-02.html#name-content-format

BTW, the plan for this draft is to update and resubmit it before IETF110 and then ask for DISPATCH.