Re: [jose] RFC 8037 "alg" quirkiness

Neil Madden <neil.madden@forgerock.com> Sun, 30 August 2020 07:10 UTC

Return-Path: <neil.madden@forgerock.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 5AF583A14D0 for <jose@ietfa.amsl.com>; Sun, 30 Aug 2020 00:10:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, 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 (1024-bit key) header.d=forgerock.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 QDgNxbvjDO3A for <jose@ietfa.amsl.com>; Sun, 30 Aug 2020 00:10:21 -0700 (PDT)
Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (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 C92443A14CF for <jose@ietf.org>; Sun, 30 Aug 2020 00:10:20 -0700 (PDT)
Received: by mail-wr1-x42b.google.com with SMTP id w13so2911740wrk.5 for <jose@ietf.org>; Sun, 30 Aug 2020 00:10:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=forgerock.com; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=5D5VoCpimebF0UNwOVpIDer+EpT56OOoLYNFAKqvakU=; b=dSRMrNB+fjguQely/uPbDEinTPert3DiAA6xDisNFpjNVEJkfmuPeMfINnUdh8x/vV rKwfePCqc37G+MEXf6ieZLQmS5cq46q09l7kWY0oEPFkplisqgbA0qr2o1Qvsm8FBOSy FPTugD9I0Jyf6aHYWdxEpERXit7yFMP/WqMDc=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=5D5VoCpimebF0UNwOVpIDer+EpT56OOoLYNFAKqvakU=; b=CDMUihYJtLou0uBfl11+seiUTKBFyEHEpC8uWlX4kvE5tTYUdjkuTF9tjxyY/kHH+k 7KoqiNK5LQdk20ONpzcPmUr6mB9WsZ2hBMPS3dVjc0YOTE8QflCaMf4Rso4imWsTKLZq 853rycz/aEeTVOxDqbB1fpi8/2Y65P7iXQfR+pDb7pR2/9iLb00/jOYTWuBD/f094bSd DRegHvSNBIR9qtzpC1N17FVuFcPBZ6Avv96GD0+OyLbixALL96VUXgvXEiEW/8IsXpNy xIp7oUp1qmc0eCgvzmviCTnIBcqJ1cQxIXQ33XW00fnoDqXkHvIcKRkX/ymPnhKqN8ab gsUg==
X-Gm-Message-State: AOAM531QOdSlvOJgdSDwoA+MS85FT9xqTtZ0J3w1dDsxNPOKEDRdKCR6 ft8H9OoTFH4LtVD7Vq8Y1t6XqtSNjUSCww4fciWsWUvXw7tD2ycOi7huWXBRG249l2b/mUC5VNz muLDMrM/sHlJ83MS6pwPkhFlO5eA9T9/upJWkycvFkvBg4xHsxvbkXUhxWEFSrIvt
X-Google-Smtp-Source: ABdhPJx5iUwJXTmXR1redvehfm8HScaMgj3WmX1WqmyPKNRNS42DKscpDMzNw1bfycVCnPOzbEs0Jw==
X-Received: by 2002:a5d:5150:: with SMTP id u16mr6120129wrt.197.1598771418427; Sun, 30 Aug 2020 00:10:18 -0700 (PDT)
Received: from [10.0.0.3] (38.227.143.150.dyn.plus.net. [150.143.227.38]) by smtp.gmail.com with ESMTPSA id k12sm6287711wrn.39.2020.08.30.00.10.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 Aug 2020 00:10:17 -0700 (PDT)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
From: Neil Madden <neil.madden@forgerock.com>
Mime-Version: 1.0 (1.0)
Date: Sun, 30 Aug 2020 08:10:17 +0100
Message-Id: <3B2FF2C4-44EB-4462-868E-C6DD1DD3F1CA@forgerock.com>
References: <1a84f81d-c7bd-9961-9f5c-e6c358fc1095@gmail.com>
Cc: "jose@ietf.org" <jose@ietf.org>
In-Reply-To: <1a84f81d-c7bd-9961-9f5c-e6c358fc1095@gmail.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
X-Mailer: iPhone Mail (17G80)
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/woKBZyofPVfg_Qdj7CZI843VHsY>
Subject: Re: [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 07:10:23 -0000

8037 was done by CFRG, so probably best to ask there. 

I like this aspect of the spec. IMO “alg” as a header was a mistake. By using a generic algorithm header, it forces implementors to associate the specific details in metadata stored with the key, which is much safer. 

Neil

> On 30 Aug 2020, at 07:58, Anders Rundgren <anders.rundgren.net@gmail.com> wrote:
> 
> 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
> 
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose