Re: [Cbor] Packed CBOR review

Carsten Bormann <cabo@tzi.org> Thu, 17 June 2021 11:35 UTC

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 B6A493A1BDD for <cbor@ietfa.amsl.com>; Thu, 17 Jun 2021 04:35:08 -0700 (PDT)
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, RCVD_IN_DNSWL_BLOCKED=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 wukvmDAsMzuz for <cbor@ietfa.amsl.com>; Thu, 17 Jun 2021 04:35:06 -0700 (PDT)
Received: from gabriel-2.zfn.uni-bremen.de (gabriel-2.zfn.uni-bremen.de [134.102.50.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 5CF443A1BDB for <cbor@ietf.org>; Thu, 17 Jun 2021 04:35:06 -0700 (PDT)
Received: from [192.168.217.118] (p548dcc89.dip0.t-ipconnect.de [84.141.204.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4G5KjN1JLRz2xHY; Thu, 17 Jun 2021 13:35:04 +0200 (CEST)
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: <6195BD3A-A031-47BD-866E-AF3D4D423A0B@tzi.org>
Date: Thu, 17 Jun 2021 13:35:03 +0200
Cc: "cbor@ietf.org" <cbor@ietf.org>
X-Mao-Original-Outgoing-Id: 645622503.7999949-87fe099ec0948c73d081ec33d7f27ecf
Content-Transfer-Encoding: quoted-printable
Message-Id: <5133EDCD-B7AA-4EA0-AF6B-B30A935D6CE6@tzi.org>
References: <8713C3AB-71C0-4EC0-8977-15F80EC11309@arm.com> <212CE7EA-73BC-47BF-B192-D2D523F4A376@tzi.org> <33C84949-0F9C-432C-9C94-DE2C9EE17976@arm.com> <3F367A6D-5CAD-474F-AFEE-DF1AC9A34135@tzi.org> <146F670A-48EA-4A90-B77C-4CCC535F1DB1@arm.com> <6195BD3A-A031-47BD-866E-AF3D4D423A0B@tzi.org>
To: Brendan Moran <Brendan.Moran@arm.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/fICgd61fViQG15Oik-osZxqwRsM>
Subject: Re: [Cbor] Packed CBOR review
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, 17 Jun 2021 11:35:09 -0000

>> Alternatively, cbor-wg or cose-wg could define tags for common digest algorithms.
> 
> I thought COSE did: https://datatracker.ietf.org/doc/draft-ietf-cose-hash-algs/
> (in RFC editor queue; registrations already done) did this:
> 
>   | Name        | Value | Recommended |
>   |-------------|-------|-------------|
>   | SHA-1       |   -14 | Filter Only |
>   | SHA-256/64  |   -15 | Filter Only |
>   | SHA-256     |   -16 | Yes         |
>   | SHA-384     |   -43 | Yes         |
>   | SHA-512     |   -44 | Yes         |
>   | SHA-512/256 |   -17 | Yes         |
>   | SHAKE128    |   -18 | Yes         |
>   | SHAKE256    |   -45 | Yes         |

Sorry, didn’t read properly.
It defines COSE values, not tags…

Grüße, Carsten