Re: [TLS] New curves work and TLS
Dave Garrett <davemgarrett@gmail.com> Thu, 15 October 2015 19:17 UTC
Return-Path: <davemgarrett@gmail.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9DFCF1A0033 for <tls@ietfa.amsl.com>; Thu, 15 Oct 2015 12:17:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] 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 DAoQsvBFVV4d for <tls@ietfa.amsl.com>; Thu, 15 Oct 2015 12:17:54 -0700 (PDT)
Received: from mail-qg0-x233.google.com (mail-qg0-x233.google.com [IPv6:2607:f8b0:400d:c04::233]) (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 B20E31A0032 for <tls@ietf.org>; Thu, 15 Oct 2015 12:17:54 -0700 (PDT)
Received: by qgeo38 with SMTP id o38so36209985qge.0 for <tls@ietf.org>; Thu, 15 Oct 2015 12:17:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; bh=EmoqVJbBsVFaSYHIkKRMx/uy+sMGzAWYEXzEMWBwYJo=; b=vtPnI/b5vtQVIuS5KhcEGchOxyJV7AX0c+MIjKQJJVFDNkc/3BLEryUBNfa+QKdwcW uYlp1EANzXjTNukwxjc5r85e+wE4YHfOUfFWxf02eQDnb7wqtZINmcFgADb86JRbymoR Br2ITpodaeB59lu3TBcJdONrE53rRm9vFoJpNWHJHdkp5jyickNYBleWG1XKXCvtM1bJ 9sIlQejpds8t/h+ECRveHlWu0FFb4bFyA5kNv9LRAgtraHm+NcAt/YEJWTC2vZ9hvXTW u4XexNna/M+qsBupYNHztE7B2CcdmbKP20TD8yVwGdHZteHw3+AbdbyPBDeYTVBYo2xC /Wog==
X-Received: by 10.140.146.13 with SMTP id 13mr12080110qhs.1.1444936673969; Thu, 15 Oct 2015 12:17:53 -0700 (PDT)
Received: from dave-laptop.localnet (pool-72-94-152-197.phlapa.fios.verizon.net. [72.94.152.197]) by smtp.gmail.com with ESMTPSA id j193sm6012309qhc.17.2015.10.15.12.17.53 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 15 Oct 2015 12:17:53 -0700 (PDT)
From: Dave Garrett <davemgarrett@gmail.com>
To: tls@ietf.org, Ilari Liusvaara <ilariliusvaara@welho.com>
Date: Thu, 15 Oct 2015 15:17:51 -0400
User-Agent: KMail/1.13.5 (Linux/2.6.32-74-generic-pae; KDE/4.4.5; i686; ; )
References: <20151015130939.GA19330@LK-Perkele-V2.elisa-laajakaista.fi>
In-Reply-To: <20151015130939.GA19330@LK-Perkele-V2.elisa-laajakaista.fi>
MIME-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <201510151517.52101.davemgarrett@gmail.com>
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/uof54b17UZOFyq6dr2k24j-JOyE>
Subject: Re: [TLS] New curves work and TLS
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Oct 2015 19:17:56 -0000
On Thursday, October 15, 2015 09:09:39 am Ilari Liusvaara wrote: > So, there are four primitives: Ed25519, Ed25519ph, Ed448 and > Ed448ph. And keys MUST NOT be mixed between those. > > I propose the following: > - EdDSA uses one SignatureAlgorithm value (5?[1]). > - There will be new curves for EdDSA, one for Ed25519/Ed25519ph and > another for Ed448/Ed448ph > - If there is ever EdDSA instantiation with Edwards448 curve (the same > one Ed448 uses) with another KDF, it gets a new curve distinct from > Ed448/Ed448ph. > - The HashAlgorithm is always 0, or the HashAlgorithm is always 0 or > value matching the prehash (but the prehash is always done once[2]). > [TBD: resolve this] I've been thinking about the issue of how to handle SignatureAndHashAlgorithm values better. I think this time, I'd like to propose going the opposite way we'd normally want to move: let's consider enumerating all combinations of HashAlgorithm+SignatureAlgorithm instead of having independent values. We're moving to signature algorithms that don't have arbitrary hashes, so the current system isn't really ideal anymore. Current draft: https://tools.ietf.org/html/draft-ietf-tls-tls13-09#section-6.3.2.1 (text) https://tools.ietf.org/html/draft-ietf-tls-tls13-09#page-88 (full registry) ---------------------------------------- enum { none(0), md5_RESERVED(1), sha1(2), sha224_RESERVED(3), sha256(4), sha384(5), sha512(6), (255) } HashAlgorithm; enum { anonymous_RESERVED(0), rsa(1), dsa(2), ecdsa(3), rsapss(4), (255) } SignatureAlgorithm; struct { HashAlgorithm hash; SignatureAlgorithm signature; } SignatureAndHashAlgorithm; ---------------------------------------- Proposed replacement backwards-compatible registry: ---------------------------------------- struct { anonymous_RESERVED(0x0000), rsa_nohash(0x0001), dsa_nohash(0x0002), ecdsa_nohash(0x0003), rsapss_nohash(0x0004), md5_RESERVED (0x0100..0x01FF), rsa_sha1(0x0201), dsa_sha1(0x0202), ecdsa_sha1(0x0203), rsapss_sha1(0x0204), sha224_RESERVED (0x0300..0x03FF), rsa_sha256(0x0401), dsa_sha256(0x0402), ecdsa_sha256(0x0403), rsapss_sha256(0x0404), rsa_sha384(0x0501), dsa_sha384(0x0502), ecdsa_sha384(0x0503), rsapss_sha384(0x0504), rsa_sha512(0x0601), dsa_sha512(0x0602), ecdsa_sha512(0x0603), rsapss_sha512(0x0604), (0xFFFF) } SignatureAndHashAlgorithm; ---------------------------------------- New values could be assigned specific combinations as needed. This would also let hashes & signatures be deprecated independently easily, e.g. allow rsa_sha1 but prohibit rsapss_sha1 (it's new, so it probably should be from the start). Dave
- [TLS] New curves work and TLS Ilari Liusvaara
- Re: [TLS] New curves work and TLS Dave Garrett
- Re: [TLS] New curves work and TLS Eric Rescorla
- Re: [TLS] New curves work and TLS Ilari Liusvaara
- Re: [TLS] New curves work and TLS Sean Turner
- Re: [TLS] New curves work and TLS Ilari Liusvaara