[COSE] tstr values for kty, alg, crv, etc.

AJITOMI Daisuke <ajitomi@gmail.com> Wed, 28 July 2021 11:45 UTC

Return-Path: <ajitomi@gmail.com>
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 CD4903A0A6D for <cose@ietfa.amsl.com>; Wed, 28 Jul 2021 04:45:37 -0700 (PDT)
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 JQ-HXBvWhkLF for <cose@ietfa.amsl.com>; Wed, 28 Jul 2021 04:45:36 -0700 (PDT)
Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 C61703A0A6C for <cose@ietf.org>; Wed, 28 Jul 2021 04:45:35 -0700 (PDT)
Received: by mail-ed1-x531.google.com with SMTP id u12so2793991eds.2 for <cose@ietf.org>; Wed, 28 Jul 2021 04:45:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=6206imxhOM1QBBMaZC8klizeJP9Fqc3kTo5gO5H/Ja0=; b=FKi9Vx8IDBk4SMXiOSnBHDUMPIO8B/uwlp7kW491/1WcjAHA11uc28unGF8kum9ti5 qUBuSIVoULQYuTib/GF5loYVGWIFiCBBCnDPTR1gp5caGqNdIOiBYtG/PD36OBs3Sqm3 Tk4wtxeT6VAe2dW11muykBmo1tLRC4XtJzBnOlr38X6zVMczMrN+FJwEatChmf/as42O QQtyAKO+TwkOfqpKLLQHGNEQBKSI/sRAPRBSHYFp21vrEKxFicPM8MUv0bmXhzdQ8cgf YSwxaV86BD8I1I0C5imlq30nfPKLirtPaWIGIFktqMrIBTAGbSJjuB9N18knmK2RGnR5 zvrg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=6206imxhOM1QBBMaZC8klizeJP9Fqc3kTo5gO5H/Ja0=; b=OPOgDk/J+KKgZHezq89dK0hwI0B/dFGEIz/8KzsIpEcIcyQGsqxORrAJUikyza7/pI EWDAfQX8jgvIEMPMFUpkXRBBkEV0PN+bz4Afj889zkNGlPkF08rfBNOwV5qs2DJqLGyR DuBkE3o7G/tOPSKtHPp3qdtuyfjBa+zmgcMfEHQrvTB86WhMVYOMLFPWvpAj+biWhdML Hd+JH+saYaLCuQlRoiZjSngpb83kFJW09H2eM5rGascnxDATQ455HWNgSzcy9/CJ9vxR STcN+W2uOWlbG2JxA/T/j6ZxsSuVBwRA8yzKLUYYmoOLEjTDrP2xckYJmN8jesGLQCtC N5hA==
X-Gm-Message-State: AOAM533F+hnV7C4oSGeZGK0It0kjqWC0GTKpw4ifc2/25OUEqgVXl6hV Lhe35BKQ9tptANkmzJs+swXQfSN9lJSWTRDW09QQLd0Y+EC3
X-Google-Smtp-Source: ABdhPJwC0hH96oXE+eWurAY1YTKeR/chyimb8OxJ3eZ/iIDkC8jJyOklGIA72vvFuLStoCfOxsj+cbfA7+tX11UCbAA=
X-Received: by 2002:a05:6402:7d3:: with SMTP id u19mr16687202edy.188.1627472732349; Wed, 28 Jul 2021 04:45:32 -0700 (PDT)
MIME-Version: 1.0
From: AJITOMI Daisuke <ajitomi@gmail.com>
Date: Wed, 28 Jul 2021 20:45:21 +0900
Message-ID: <CAFWvErVLfud5ffyzKdBJmzm7Wj+=osfZ0u7tKVpniicZDYqjxg@mail.gmail.com>
To: cose@ietf.org
Content-Type: multipart/alternative; boundary="00000000000017e53205c82d8691"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/QfbFcXkog2lkK3v8l8HAV8pjLKg>
Subject: [COSE] tstr values for kty, alg, crv, etc.
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, 28 Jul 2021 11:45:38 -0000

Hi folks,

I am an open source CWT/COSE library (Python CWT:
https://github.com/dajiaji/python-cwt) implementer.
I've already implemented most of the functionality of COSE and CWT, but
there are a few things I would like to clarify.

One of the questions I have is the 'tstr' values for 'kty', 'alg', 'crv',
or 'key_ops' which have the type definition "tstr / int".

At first, I thought "Name" values defined in the IANA registries should be
used, but for example, RFC8152 (Section 16.2) says as follows:

"Name: The name is present to make it easier to refer to and discuss the
registration entry. The value is not used in the protocol."

In my opinion, the tstr type for 'kty', 'alg', 'crv' or 'key_ops' is not
necessary because I think the major advantage of COSE is its
compactness,but I would like to know what you are assuming as the value of
tstr.

I apologize if this topic has already been discussed.

Regards,
Daisuke