Re: private key language

David Shaw <dshaw@jabberwocky.com> Wed, 28 December 2005 17:39 UTC

Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1ErfH3-0005Z9-GX for openpgp-archive@megatron.ietf.org; Wed, 28 Dec 2005 12:39:41 -0500
Received: from above.proper.com (above.proper.com [208.184.76.39]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA15762 for <openpgp-archive@lists.ietf.org>; Wed, 28 Dec 2005 12:38:30 -0500 (EST)
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id jBSHBUdK019610; Wed, 28 Dec 2005 09:11:30 -0800 (PST) (envelope-from owner-ietf-openpgp@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id jBSHBUX2019609; Wed, 28 Dec 2005 09:11:30 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-openpgp@mail.imc.org using -f
Received: from foobar.cs.jhu.edu (foobar.cs.jhu.edu [128.220.13.173]) by above.proper.com (8.12.11/8.12.9) with ESMTP id jBSHBU2K019603 for <ietf-openpgp@imc.org>; Wed, 28 Dec 2005 09:11:30 -0800 (PST) (envelope-from dshaw@jabberwocky.com)
Received: from walrus.hsd1.ma.comcast.net (walrus.hsd1.ma.comcast.net [24.60.132.70]) by foobar.cs.jhu.edu (8.11.6/8.11.6) with ESMTP id jBSHBTS31476 for <ietf-openpgp@imc.org>; Wed, 28 Dec 2005 12:11:29 -0500
Received: from grover.jabberwocky.com (grover.jabberwocky.com [172.24.84.28]) by walrus.hsd1.ma.comcast.net (8.12.8/8.12.8) with ESMTP id jBSHBRX6010811 for <ietf-openpgp@imc.org>; Wed, 28 Dec 2005 12:11:27 -0500
Received: from grover.jabberwocky.com (grover.jabberwocky.com [127.0.0.1]) by grover.jabberwocky.com (8.13.1/8.13.1) with ESMTP id jBSHBNH3005061 for <ietf-openpgp@imc.org>; Wed, 28 Dec 2005 12:11:23 -0500
Received: (from dshaw@localhost) by grover.jabberwocky.com (8.13.1/8.13.1/Submit) id jBSHBNpo005060 for ietf-openpgp@imc.org; Wed, 28 Dec 2005 12:11:23 -0500
Date: Wed, 28 Dec 2005 12:11:23 -0500
From: David Shaw <dshaw@jabberwocky.com>
To: ietf-openpgp@imc.org
Subject: Re: private key language
Message-ID: <20051228171123.GK31051@jabberwocky.com>
Mail-Followup-To: ietf-openpgp@imc.org
References: <20051228090735.GB6550@epointsystem.org> <20051228141244.GI31051@jabberwocky.com> <20051228151740.GA1531@epointsystem.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <20051228151740.GA1531@epointsystem.org>
OpenPGP: id=99242560; url=http://www.jabberwocky.com/david/keys.asc
User-Agent: Mutt/1.5.11
Sender: owner-ietf-openpgp@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-openpgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-openpgp-request@imc.org?body=unsubscribe>
List-ID: <ietf-openpgp.imc.org>

On Wed, Dec 28, 2005 at 04:17:40PM +0100, Daniel A. Nagy wrote:
> 
> On Wed, Dec 28, 2005 at 09:12:44AM -0500, David Shaw wrote:
> 
> > What weakness in the private key format are you referring to?
> 
> The Klima-Rosa attack: the private material is not bound cryptographically
> to the public material, thus by changing the public material, the attacker
> can reconstruct the private material from just one (corrupted) signature,
> and forge that signature to cover up the attack.
> 
> Please read the Klima-Rosa paper (poor English, but good content), for more
> details.

Sure, I know about the Klima-Rosa attack, but I was under the
impression that the SHA-1 protected secret key format (S2K 254)
prevents the attack.  The text in 5.5.3. Secret Key Packet Formats
certainly says so:

  The reason for this is that there are some attacks on the private
  key that can undetectably modify the secret key. Using a SHA-1
  hash prevents this.

David