Re: [jose] CFRG ECC in JOSE - thumbprint

Ilari Liusvaara <ilariliusvaara@welho.com> Sat, 14 November 2015 18:35 UTC

Return-Path: <ilariliusvaara@welho.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 977DA1A0011 for <jose@ietfa.amsl.com>; Sat, 14 Nov 2015 10:35:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
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 DVaLcxjhemGR for <jose@ietfa.amsl.com>; Sat, 14 Nov 2015 10:35:34 -0800 (PST)
Received: from filtteri2.pp.htv.fi (filtteri2.pp.htv.fi [213.243.153.185]) by ietfa.amsl.com (Postfix) with ESMTP id 8502A1ACE25 for <jose@ietf.org>; Sat, 14 Nov 2015 10:35:34 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by filtteri2.pp.htv.fi (Postfix) with ESMTP id B3B1519C07C; Sat, 14 Nov 2015 20:35:31 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp4.welho.com ([213.243.153.38]) by localhost (filtteri2.pp.htv.fi [213.243.153.185]) (amavisd-new, port 10024) with ESMTP id bKe0DLX7wz2G; Sat, 14 Nov 2015 20:35:31 +0200 (EET)
Received: from LK-Perkele-V2 (87-92-35-116.bb.dnainternet.fi [87.92.35.116]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp4.welho.com (Postfix) with ESMTPSA id 8CCF35BC017; Sat, 14 Nov 2015 20:35:31 +0200 (EET)
Date: Sat, 14 Nov 2015 20:35:26 +0200
From: Ilari Liusvaara <ilariliusvaara@welho.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <20151114183526.GA31954@LK-Perkele-V2.elisa-laajakaista.fi>
References: <255B9BB34FB7D647A506DC292726F6E13BB1B6894C@WSMSG3153V.srv.dir.telstra.com> <77F4F506-1924-45A7-94CB-3C530968244B@mit.edu> <20151111083733.GA32165@LK-Perkele-V2.elisa-laajakaista.fi> <20151114131022.GA31553@LK-Perkele-V2.elisa-laajakaista.fi> <5647569F.6070907@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
In-Reply-To: <5647569F.6070907@gmail.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Sender: ilariliusvaara@welho.com
Archived-At: <http://mailarchive.ietf.org/arch/msg/jose/-PEoFvl-YjJkAIZxVBxDxjTVzJE>
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] CFRG ECC in JOSE - thumbprint
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
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: Sat, 14 Nov 2015 18:35:36 -0000

On Sat, Nov 14, 2015 at 04:43:27PM +0100, Anders Rundgren wrote:
> Hi Ilari,
> 
> If these curves are generally recognized as "Edwards" (?) I would personally prefer
> that "kty" refer to something Edward-ish like "ED" although this is (of course)
> entirely unimportant.

These things are not Edwards curves. These things are abstract public-key
algorithms.

If you truly had Edwards curve over prime field[1], there would be no
problem presenting it in standard "EC" notation, as these things have
well-defined curve and both x and y coordinates that are in Z_p.


And yes, I did consider reusing "crv" and "x", but decided that looks
pretty odd (there is no guarantee that these things are in any way
based on elliptic curves, nor that even if they are, "x" is actually
x coordinate of the curve.


[1] But this fails for Edwards curves over prime squared fields, since
each co-ordinate has two subcomponents (AFAIK, higher powers give
weak-for-ECC fields). 



-Ilari