Re: [TLS] Safe ECC usage

"D. J. Bernstein" <> Wed, 02 October 2013 16:21 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id A51A021F9D12 for <>; Wed, 2 Oct 2013 09:21:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id F9M7IauoJQtW for <>; Wed, 2 Oct 2013 09:21:08 -0700 (PDT)
Received: from ( []) by (Postfix) with SMTP id 4468621F8B04 for <>; Wed, 2 Oct 2013 09:19:49 -0700 (PDT)
Received: (qmail 7417 invoked by uid 1011); 2 Oct 2013 16:19:48 -0000
Received: from unknown (unknown) by unknown with QMTP; 2 Oct 2013 16:19:48 -0000
Received: (qmail 8126 invoked by uid 1001); 2 Oct 2013 16:19:44 -0000
Date: 2 Oct 2013 16:19:44 -0000
Message-ID: <>
From: "D. J. Bernstein" <>
Automatic-Legal-Notices: See
References: <> <> <> <> <> <> <> <>
Subject: Re: [TLS] Safe ECC usage
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Wed, 02 Oct 2013 16:21:23 -0000

Dan Brown writes:
> Brainpool and RFC 5639 recommends pseudo-random parameters to avoid
> unanticipated attacks, and you are arguing against this recommendation
> by anticipating from known attacks.

No, and no.

The Brainpool standard (from which RFC 5639 is derived) says that the
unexplained NIST seeds leave "an essential part of the security analysis
open" and that this is a "major issue." I completely agree with this.

There are two reasonable ways to address this problem. One way, which
Brainpool uses, is to generate curves "in a pseudo-random manner using
seeds that are generated in a systematic and comprehensive way," subject
of course to other requirements. Another way, which I use, is to take
the smallest possible curves meeting the other requirements.

Both of these approaches are clear improvements over what NIST/NSA did.
As Brainpool puts it, choosing fully explained seeds will "enhance trust
in the recommended curves." Choosing smallest curves has the same
effect. There's no contradiction between these statements.

There is zero reason to believe that either of these approaches is more
secure than the other. There is, in particular, zero reason to believe
that either approach is safer against "unanticipated attacks." You are
wrong to attribute any such belief to the Brainpool standard; the
document says no such thing. All available evidence is that both
approaches are fine; if we've missed an attack then we have no way to
guess whether the attack is more likely to apply to one curve or to the

My reason for not taking the Brainpool approach is that it has a rather
heavy cost. We have enough problems deploying secure crypto without
incurring unnecessary costs; if we can afford extra costs then I'd
rather put those into taking steps that actually matter for security,
such as adding defenses against quantum computers. So I prefer the
second approach. Conversely, Brainpool does not discuss the second
approach, and does not state any reason to avoid the approach. 

---D. J. Bernstein
   Research Professor, Computer Science, University of Illinois at Chicago