Re: [Curdle] Some work for the group

Nikos Mavrogiannopoulos <nmav@redhat.com> Fri, 09 December 2016 15:04 UTC

Return-Path: <nmav@redhat.com>
X-Original-To: curdle@ietfa.amsl.com
Delivered-To: curdle@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C6AA4129546 for <curdle@ietfa.amsl.com>; Fri, 9 Dec 2016 07:04:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.798
X-Spam-Level:
X-Spam-Status: No, score=-9.798 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-2.896, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 dViFF5lQw8AB for <curdle@ietfa.amsl.com>; Fri, 9 Dec 2016 07:04:56 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E5AC1129460 for <curdle@ietf.org>; Fri, 9 Dec 2016 07:04:55 -0800 (PST)
Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7D127C057FA4; Fri, 9 Dec 2016 15:04:55 +0000 (UTC)
Received: from dhcp-10-40-1-102.brq.redhat.com ([10.40.2.253]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uB9F4rg5022553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 9 Dec 2016 10:04:54 -0500
Message-ID: <1481295892.20432.16.camel@redhat.com>
From: Nikos Mavrogiannopoulos <nmav@redhat.com>
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>, "rsalz@akamai.com" <rsalz@akamai.com>, "curdle@ietf.org" <curdle@ietf.org>
Date: Fri, 09 Dec 2016 16:04:52 +0100
In-Reply-To: <D4701965.2CFAB%qdang@nist.gov>
References: <D4701965.2CFAB%qdang@nist.gov>
Content-Type: text/plain; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 09 Dec 2016 15:04:55 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/curdle/Mb3CHsuIPayfdHVZwqglkpx_PG4>
Subject: Re: [Curdle] Some work for the group
X-BeenThere: curdle@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "List for discussion of potential new security area wg." <curdle.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/curdle>, <mailto:curdle-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/curdle/>
List-Post: <mailto:curdle@ietf.org>
List-Help: <mailto:curdle-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/curdle>, <mailto:curdle-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Dec 2016 15:04:58 -0000

On Fri, 2016-12-09 at 13:46 +0000, Dang, Quynh (Fed) wrote:

> There are no security issues with the pre-hash option. One more hash
> does not create any performance issues for the current protocols.  In
> addition, the pre-hash option provides the need for long messages as
> we know: one example is the long CRLs on small devices as pointed out
> on Jim’s slides. 
> 
> If I had to choose one algorithm which works well for all situations,
> I would choose the pre-hash option. 

I agree. 

Moreover, I don't quite follow the rationale for having it a must not
on some scenarios. Of the options:
1. CA uses SECP256R1 (no prehash)
2. CA uses Ed25519R1 (prehash)
3. CA uses Ed25519R1 (no prehash)

the 3rd is banned. I kind of understand what the authors try to
achieve, but adding local policies into RFCs does not make much sense
(especially if the policy is dubious as in this case; one option with
this particular curve is banned, with the other curves it is fine). The
option (2) is apparently better than 3, but I do not see why the
existence of better option should prevent a CA from using option (3). 

Similar argumentation could be made for banning Ed25519R1 since Ed441
is better.

I instead propose 2 alternatives, (a) remove the prehash option, or (b)
create an RFC mandating policies for CAs, which algorithms they MUST
use and which not. A CA can chose to follow them.

regards,
Nikos