[jose] RFC 8037 "alg" quirkiness

Anders Rundgren <anders.rundgren.net@gmail.com> Sun, 30 August 2020 06:57 UTC

Return-Path: <anders.rundgren.net@gmail.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 E105C3A1101 for <jose@ietfa.amsl.com>; Sat, 29 Aug 2020 23:57:59 -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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 bPeFYdyTCOPD for <jose@ietfa.amsl.com>; Sat, 29 Aug 2020 23:57:58 -0700 (PDT)
Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (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 566563A10FB for <jose@ietf.org>; Sat, 29 Aug 2020 23:57:58 -0700 (PDT)
Received: by mail-ej1-x636.google.com with SMTP id bo3so4349901ejb.11 for <jose@ietf.org>; Sat, 29 Aug 2020 23:57:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=gLO9DP87kIaSWqxV4EE5oVBZy2fGGMwraXS79ZEzJFY=; b=tZFj31g6DWb4Q9oG1kaPFMk2sl+qW37ORCqhoxKHpl7mVJM9Blv2vSpPlc9ypPrihu Y6MBPmHYUSm46Z4mtP/lhWmsZ8kj8fFW47E91Je0MkMMeUizyHGULa6VG42Qw769T9Sf 2rGrPKf1wo1epRVTQJIpm94LnHucLJIoIKoDgGM/5yF+CrzKZM6t1+At//r9n4p8yfGg 1PS3JoL5RUBeJn5YMoPh+s/sc9mUZx81ArJGuAOWj8sY+5qkR5oSjAav/fXGTo+rv9An 00E1TtbLR+2fNOehHiHNvkbah7Tf5VESABghjTF7HACppny5SRz3pcix+7pulMhEPZpQ lPtg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=gLO9DP87kIaSWqxV4EE5oVBZy2fGGMwraXS79ZEzJFY=; b=MFeHEjVYV7HHq5z6qe4PO9xkZMN613iyMxopUmwtUpwci51TScyrVK7kRKvnR5tbn9 vSHUVn6S5klPJZSclwUaML/WOj4Gwhxie2tCPRwLVZRRgNb45QNbVgvQWiLYVqrNhTRO Hk4kkU2QssU3J74FHd5BiuxpGd5lRYUhO7skujHTB/yJU/u/MgLU/s1DaU5j8iZjEwV3 dfUl7uiUiJCW9U8QpLgq/DDDeKi1m2kQxjzjymz4DpP1iW5F/Dx0M0L2XKdERicviBAb vf2x15NXJ8kzJ2KD6OOf5j4VMllEhNJ9HIpv8LnLL/t9Duc2TQknwqbLxsygrap4QBtQ ih5Q==
X-Gm-Message-State: AOAM5332c2/Uih3c90ED+TFhzlnEMFg/pc3mKuSMVZoyBL0jVtp+dOa4 ySa7lHhrhC1bi53FE2CLTlJybDx/33Y=
X-Google-Smtp-Source: ABdhPJwyTYJwn9rf45S+pyna79TckE4gXwYBGgELlzVOD+RtOo4HcScC71cO6xvNp/ylBf9PRmn4Xw==
X-Received: by 2002:a17:907:213b:: with SMTP id qo27mr324246ejb.441.1598770676330; Sat, 29 Aug 2020 23:57:56 -0700 (PDT)
Received: from [192.168.1.79] (25.131.146.77.rev.sfr.net. [77.146.131.25]) by smtp.googlemail.com with ESMTPSA id m4sm4517949ejn.31.2020.08.29.23.57.55 for <jose@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 Aug 2020 23:57:55 -0700 (PDT)
From: Anders Rundgren <anders.rundgren.net@gmail.com>
To: "jose@ietf.org" <jose@ietf.org>
Message-ID: <1a84f81d-c7bd-9961-9f5c-e6c358fc1095@gmail.com>
Date: Sun, 30 Aug 2020 08:57:53 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/eFWrMcgqKueKp4q9xDsA0KUFtnY>
Subject: [jose] RFC 8037 "alg" quirkiness
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.29
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: Sun, 30 Aug 2020 06:58:00 -0000

I have just implemented support for Edwards curves in my JSON library.

Although it is certainly not a deal-breaker I find the use of "EdDSA" as a generic Edwards algorithm identifier rather quirky since it departs from the other JWS algorithms:
https://tools.ietf.org/html/rfc8037#appendix-A.4

For curiosity reasons I took a peek at the initial draft which has (in my opinion...) a more logical solution:
https://tools.ietf.org/html/draft-liusvaara-jose-cfrg-curves-00#appendix-A.4

May I ask why this change was performed?

For JSF (JSON Signature Format) I will stick to the "00" scheme which also permits use of ed25519ph and friends if needed:
https://mobilepki.org/jsf-lab/home

thanx,
Anders