Re: [TLS] TLS v1.2 performance (was Re: TLSv1.2 with DSA client cert and

Yoav Nir <ynir@checkpoint.com> Thu, 17 February 2011 06:07 UTC

Return-Path: <ynir@checkpoint.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 8296F3A6D10 for <tls@core3.amsl.com>; Wed, 16 Feb 2011 22:07:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.553
X-Spam-Level:
X-Spam-Status: No, score=-10.553 tagged_above=-999 required=5 tests=[AWL=0.046, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JbSDg3EbTBOx for <tls@core3.amsl.com>; Wed, 16 Feb 2011 22:06:47 -0800 (PST)
Received: from michael.checkpoint.com (smtp.checkpoint.com [194.29.34.68]) by core3.amsl.com (Postfix) with ESMTP id 0AF6D3A6DA5 for <tls@ietf.org>; Wed, 16 Feb 2011 22:06:45 -0800 (PST)
X-CheckPoint: {4D5CBB10-20000-1B221DC2-2FFFF}
Received: from il-ex01.ad.checkpoint.com (il-ex01.ad.checkpoint.com [194.29.34.26]) by michael.checkpoint.com (8.13.8/8.13.8) with ESMTP id p1H67774005958; Thu, 17 Feb 2011 08:07:07 +0200
Received: from il-ex01.ad.checkpoint.com ([126.0.0.2]) by il-ex01.ad.checkpoint.com ([194.29.34.26]) with mapi; Thu, 17 Feb 2011 08:07:07 +0200
From: Yoav Nir <ynir@checkpoint.com>
To: Wan-Teh Chang <wtc@google.com>
Date: Thu, 17 Feb 2011 08:07:08 +0200
Thread-Topic: [TLS] TLS v1.2 performance (was Re: TLSv1.2 with DSA client cert and
Thread-Index: AcvOaOeqpf/UVQ5BQ16JCUBNI+XzTw==
Message-ID: <2703ECBC-3054-4F51-B5B3-6256B43A0B8C@checkpoint.com>
References: <4D59B8FE.6010908@pobox.com> <201102162335.p1GNZ0Yd009478@fs4113.wdf.sap.corp> <AANLkTi=bwX8nnHLuOs93eL9WpkieGQnY2PzaiTsy9pJa@mail.gmail.com>
In-Reply-To: <AANLkTi=bwX8nnHLuOs93eL9WpkieGQnY2PzaiTsy9pJa@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] TLS v1.2 performance (was Re: TLSv1.2 with DSA client cert and
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/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, 17 Feb 2011 06:07:04 -0000

On Feb 17, 2011, at 3:31 AM, Wan-Teh Chang wrote:

> On Wed, Feb 16, 2011 at 3:35 PM, Martin Rex <mrex@sap.com> wrote:
>> 
>> What I also don't understand is the idea behind "default signature
>> algorithms".  For implementing TLSv1.2, SHA-256 _must_ be supported,
>> but unless explicitly negotiated with the TLS SignatureAlgorithm
>> extension, SHA-256 appears not allowed to be used for CertificateVerify.
>> 
>> That would mean, when TLSv1.2 is negotiated, but no SignatureAlgorithms
>> extension exchanged, the resulting signature with an RSA client cert
>> in CertificateVerify no longer uses MD5+SHA-1 as in TLS up to v1.1,
>> but _only_ SHA-1 (which slightly weakens that signature compared to
>> prior protocol versions...).  The use of SHA-256 is prohibited!??!
> 
> I think you're right.  RFC 5246 Section 7.4.1.4.1 seems to say that
> {sha1,rsa} is the default RSA signature algorithm.
> 
> I guess the solution is for a TLS 1.2 client to always send the
> signature_algorithms extension, and for a TLS 1.2 server to use
> a non-empty supported_signature_algorithms field in the
> Certificate Request message.
> 
> Alternatively, we can amend RFC 5246 to change the default
> RSA signature algorithm to {sha256,rsa} .  It seems that anything
> that uses MD5+SHA-1 in TLS 1.0 and 1.1 should use SHA-256
> by default in TLS 1.2, for consistency.

If you change that, it becomes TLS 1.3. This is a non-backwards-compatible change in default behavior.