Re: [jose] Fully-Specified Algorithms for JOSE and COSE

Michael Jones <michael_b_jones@hotmail.com> Fri, 01 September 2023 01:12 UTC

Return-Path: <michael_b_jones@hotmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 750E9C1BED33 for <jose@ietfa.amsl.com>; Thu, 31 Aug 2023 18:12:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.122
X-Spam-Level:
X-Spam-Status: No, score=-1.122 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, FORGED_HOTMAIL_RCVD2=0.874, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.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 f5jazuMpfhQC for <jose@ietfa.amsl.com>; Thu, 31 Aug 2023 18:12:30 -0700 (PDT)
Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2029.outbound.protection.outlook.com [40.92.22.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C5218C1BE890 for <jose@ietf.org>; Thu, 31 Aug 2023 18:12:30 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KnDrc2UFccQpNTynehc0YRQ2L7+vpjKd4YoUN5isQyqUPIFkTCXIU6r5pkUg59Jl8QRr/Gg14s0FQcOQZle9AVlbEMSp5jEiM1VjY94xM2BGxycNpj87isTQoGl6VjpiYz+K9RBndwYLHJeTrOzIr0/C1fHC8hNGR7tSZUdN4uGYJWDctDSebYkA4UZMjFO2x3+CYFgtzK6sGixBQ5vCoylapdFv76fJsIcQQTVqaDsENvZMJQ6yP78PFKgRMRTJww7f4RGIm6F02pVBC3BKXNtAAzcgQvS8AwLMooW9rmmWeBuLl8rGskIHy6slHY6blYnOgTXEH9qDUViHnjDqng==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fM9OjK415ALBrrQdL//Q6JMMASdRqWlV94WAmJEl/sI=; b=Uu3CqZezEdwJ14n0MxUY0pc8DsVOMTH/u5AeJ2OIHYHfIUZ706GzLIxjcWrhVw2QlExt4URH5wnoxDyrq2nBe9SSuc902L66rIzKvRB1QgJn5EVAvxH6cLcvNYUNmnbPgIVxQdHRyOb30yaxYZAb8eFTRdItDGf3gYVXlNIr46BRpGlR7E/wA99f+wHidMmz+RbBYYfyHC+y729105OMix+1CqMUDB0l4eZgzoF+Fgh6vK81+ISRQxAgINjy9RSHbqm4p3VT9/SKc3Id2vuZgYti5FD9jV6koWLQ61aUvbPWzhXq60JJ2oB84qagae++STEzFOl0zCYy+bJGm9vQwA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fM9OjK415ALBrrQdL//Q6JMMASdRqWlV94WAmJEl/sI=; b=KrxAAqSjel7iiByt946qorEOBPNdrHPmB7BNRV5pf622XIhqVojBnqDPZOsPs3GtP9Wn2KVPaN/Pht58dfc3Yf4mu4F36B4hjDQGqsGLDThHkzOnjMHxdJsyqp3/48sadN5ldGlPKuC81IPVGxzmHD4iL8pdfWZPFG3qh8oA5llypwI5sJyR4+8bZyexyzhA1spUfNTKd8YzczYsSR+Uy4JE8MyDVtdE6Qvl9kT3BBb0V5JjCJJRQ5fSpBxsy+gu4mj6raVSFF0GQpFbX4UTf2BBUa4hiXkh7swcy2pOAIZm3WMkOPiccTN1qVUs1/edM2/IZTnZLnomXQK6kstmKQ==
Received: from MW4PR02MB7428.namprd02.prod.outlook.com (2603:10b6:303:71::5) by PH0PR02MB7541.namprd02.prod.outlook.com (2603:10b6:510:58::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.35; Fri, 1 Sep 2023 01:12:29 +0000
Received: from MW4PR02MB7428.namprd02.prod.outlook.com ([fe80::36ca:d688:8cee:d6f7]) by MW4PR02MB7428.namprd02.prod.outlook.com ([fe80::36ca:d688:8cee:d6f7%7]) with mapi id 15.20.6699.035; Fri, 1 Sep 2023 01:12:28 +0000
From: Michael Jones <michael_b_jones@hotmail.com>
To: "jose@ietf.org" <jose@ietf.org>
Thread-Topic: [jose] Fully-Specified Algorithms for JOSE and COSE
Thread-Index: Adna4CdUSY83rHBQSYWtam499sCtTQAOsx2AABKqqAAAASj7gAAAcy8AAAIAQtAAP0CesA==
Date: Fri, 01 Sep 2023 01:12:28 +0000
Message-ID: <MW4PR02MB742861592F61C0E5ECB8E63AB7E4A@MW4PR02MB7428.namprd02.prod.outlook.com>
References: <MW4PR02MB74287C966F89DBE52787E914B7E6A@MW4PR02MB7428.namprd02.prod.outlook.com> <B9C58AE1-3343-4358-B566-1EC305D964ED@gmail.com> <CA+k3eCQvLWMe9TS=iM1__7NTs_GVSmH27NPL6phuZtvDAj_vYA@mail.gmail.com> <CAN8C-_+rS3UU=Q1ei8=5nk0O2jWqYEWJMJPJFEjB9mPrTDVnuA@mail.gmail.com> <ZO+EEiSQ54PO+kWE@LK-Perkele-VII2.locald> <MW4PR02MB7428E7AEFB8AAC7596B66B57B7E6A@MW4PR02MB7428.namprd02.prod.outlook.com>
In-Reply-To: <MW4PR02MB7428E7AEFB8AAC7596B66B57B7E6A@MW4PR02MB7428.namprd02.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-tmn: [+u6/B8f8XilM5yt7m/GjMUh7gUuQ5945TSbQxaZ3cSNG3Sn1IkgLhLyAPWgNgb38]
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: MW4PR02MB7428:EE_|PH0PR02MB7541:EE_
x-ms-office365-filtering-correlation-id: 0bad053f-3aed-4d3a-48a4-08dbaa8882cd
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: vrHZTD+7+FEpKXMAzdvsCXqQ8x7kyScMg6WqW2W/4CEKKZJ8a1aXOdjahNzWmsxKHwWf33Yg9g1HVsgaPJl/xmSt27X2lSxr5iWF5kmV4sWii5l5JULqdmmZPSN8ZNSwfGU1Yo239o9KxWpMd6L50YT92ka7M+y49zy7CGjEE3ucanjWRYmASgLm8EtO4k6LLq28aVq7KiFGEzRihSiTYuSRNPBC8RZ/KMTQnNf+2mT/YHPPNv8OMMpskHrrI+zDmTJaLTYXWHfWNNYmvtp73J8yY/Kk3+F1GXgcjyikO4YJhnx5c15QSR90eCPnhVZQ6gTl1my5oEnOmw/rGkWQbGkxwxtAn1tzWxfiF765eOQU0YRadihhUXiCIdh1Sss7sz56sc9ZZV6kAo+Mce4OaKveNO2AHJ61YxNzWSgPDHmPrXm0+ymp4oMkbCP1q0zg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KzYsmmg913LHvcEAiVD3bVIQ96YBEwJtd7pe24FpzFXcCvMy0d4aFTHNdkS6CaQ1FaoLrgWX9SqVFG6Xa6AkKbZXnfU5ddKtOgu6ikCWC20K4D9rCS/8r6UUHDuE2jrWgH5m+24tESyDgImFc0GCXCHjtbr4jyc+3Ck+6vG4Xq/KAuj1ytO13TisnGTwSbvKWpLJ81blGHZZ7mJkhQRt5KAC+huqSxX+WAFLZ5R0963KMvaNaKX07mzjUgG07cvjQOYHtg4rFJDG4Hnqa+lHvuVHisoarj9cFMMKLVN7HR4NRKAN408fZVDZP5kh5+Gr6o6gYBipJ9z/FADTygIlH4kHPl7A1ukwW7XbyFLt7etLPWWIcJ2Ni1zFVpI7COZtgnL7e05PmP2oFu8IxrV7rMGFIZb8naVXHLpB2E7+54hVbhIeOU0nibvy05V6PuCnqh+KXTC+j6Dyzbcbe77oA4L6hhdf3QD9g8P4kA6k+342lhhXLs5P5Qa1rmN8UVEOq/RTXbu0cxQ=
Content-Type: multipart/alternative; boundary="_000_MW4PR02MB742861592F61C0E5ECB8E63AB7E4AMW4PR02MB7428namp_"
MIME-Version: 1.0
X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MW4PR02MB7428.namprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 0bad053f-3aed-4d3a-48a4-08dbaa8882cd
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Sep 2023 01:12:28.9784 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR02MB7541
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/nPiIrkmEIaJ5cfJgWaz-AxT3djM>
Subject: Re: [jose] Fully-Specified Algorithms for JOSE and COSE
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Sep 2023 01:12:35 -0000

I've published https://www.ietf.org/archive/id/draft-jones-jose-fully-specified-algorithms-01.html, which renames the EdDSA algorithm identifiers by popular acclaim!  It adds acknowledgements for new contributors.  And it adds a "To Do" note about key representations.

                                                       -- Mike

From: jose <jose-bounces@ietf.org> On Behalf Of Michael Jones
Sent: Wednesday, August 30, 2023 12:29 PM
To: Ilari Liusvaara <ilariliusvaara@welho.com>; jose@ietf.org
Subject: Re: [jose] Fully-Specified Algorithms for JOSE and COSE


Thanks all for the quick reviews and feedback!



There appears to be overwhelming support to rename the algs ES25519 to Ed25519 and ES448 to Ed448.  (Yes, I was wondering whether having alg and curve names be the same was a good thing to do, but I don't see any actual problem with it.)  I'll plan to do that.



To Brian's comment "I'd always understood the "S" in the initial set of JWS alg values to be shorthand for the SHA part of the algorithm", in my mind the "S" in "RS256", "ES256", etc. stood for "Signature" (RSA Signature with SHA-256, Elliptic Curve Signature with SHA-256, etc.) but that was never put into writing, and it's not clear that it matters.



With respect to suggestions to register hash functions, there's a few relevant thoughts:

  *   JOSE doesn't directly use hash function identifiers.
  *   There's already the IANA "Named Information Hash Algorithm" registry https://www.iana.org/assignments/named-information/named-information.xhtml#hash-alg .  I'm reluctant to create a competing registry of string names for hash functions.
  *   I agree that it could be useful to register additional hash functions in the IANA "COSE Algorithms" registry https://www.iana.org/assignments/cose/cose.xhtml#algorithms and the "Named Information Hash Algorithm" registry, if we know of applications that would use them.
  *   I would rather that hash function registrations happen in a different specification than this one.  I'm a firm believer in specs that do one thing well.  They're easier to understand and use and progress more quickly.  That said, I'd be glad to contribute to a proposed RFC to register additional hash functions both places, should there be interest in doing so.



                                                       Best wishes,

                                                       -- Mike



-----Original Message-----
From: jose <jose-bounces@ietf.org<mailto:jose-bounces@ietf.org>> On Behalf Of Ilari Liusvaara
Sent: Wednesday, August 30, 2023 11:02 AM
To: jose@ietf.org<mailto:jose@ietf.org>
Subject: Re: [jose] Fully-Specified Algorithms for JOSE and COSE



On Wed, Aug 30, 2023 at 12:49:01PM -0500, Orie Steele wrote:



> Perhaps it is worth adding S256, S384 and S512 to the JOSE Algorithms

> Registry as part of further clarifying these conventions?



As a sidenote, such things would be useful for manifests / indirect signing. Which will be useful for post-quantum signatures.



I need to finish draft on adding indirect signing to COSE (still need to add some examples), and it does use the hash algorithm codepoints (again, it is more elegant in COSE than in JOSE).



And another sidenote, maybe SHAKE256, SHA384 and SHA512 should be added to COSE algorithms registry (it does have SHA512/256, but who supports that?).











-Ilari



_______________________________________________

jose mailing list

jose@ietf.org<mailto:jose@ietf.org>

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fjose&data=05%7C01%7C%7C3eee0457e5764b0b94bc08dba98337ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638290153282523456%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=OdFASendbNVxS27LY9ll8UPBui3MsvqOI4p4rStpZQs%3D&reserved=0<https://www.ietf.org/mailman/listinfo/jose>