Re: Suggested changes for DSA2, take 2

Ben Laurie <ben@algroup.co.uk> Sun, 26 March 2006 17:39 UTC

Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1FNZDP-00071h-AV for openpgp-archive@lists.ietf.org; Sun, 26 Mar 2006 12:39:47 -0500
Received: from balder-227.proper.com ([192.245.12.227]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1FNZDN-0000Ir-Ul for openpgp-archive@lists.ietf.org; Sun, 26 Mar 2006 12:39:47 -0500
Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k2QHNEVi034960; Sun, 26 Mar 2006 10:23:14 -0700 (MST) (envelope-from owner-ietf-openpgp@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k2QHNEKc034959; Sun, 26 Mar 2006 10:23:14 -0700 (MST) (envelope-from owner-ietf-openpgp@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-openpgp@mail.imc.org using -f
Received: from mail.links.org (mail.links.org [217.155.92.109]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k2QHND07034953 for <ietf-openpgp@imc.org>; Sun, 26 Mar 2006 10:23:13 -0700 (MST) (envelope-from ben@algroup.co.uk)
Received: from [193.133.15.218] (localhost [127.0.0.1]) by mail.links.org (Postfix) with ESMTP id 8CABD33C1C for <ietf-openpgp@imc.org>; Sun, 26 Mar 2006 18:23:12 +0100 (BST)
Message-ID: <4426CD8A.4080105@algroup.co.uk>
Date: Sun, 26 Mar 2006 18:21:14 +0100
From: Ben Laurie <ben@algroup.co.uk>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: ietf-openpgp@imc.org
Subject: Re: Suggested changes for DSA2, take 2
References: <20060326162341.GE30637@jabberwocky.com>
In-Reply-To: <20060326162341.GE30637@jabberwocky.com>
X-Enigmail-Version: 0.93.0.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
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>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 69a74e02bbee44ab4f8eafdbcedd94a1

David Shaw wrote:
> Here is some revised suggested DSA2 language, taking Hal's comments
> into account and adding some extra polish.  While I agree with his
> suggestion to reorganize the signature sections, I'm reluctant to get
> into that in this mail as I think that getting general consensus on
> DSA2 language would be easier if the two weren't combined.  I'd be
> happy to take it up separately though.
> 
> ==================================
> 
> Section 5.2.2 (Version 3 Signature Packet Format) says:
> 
>     DSA signatures MUST use hashes with a size of 160 bits, to match q,
>     the size of the group generated by the DSA key's generator value.
>     The hash function result is treated as a 160 bit number and used
>     directly in the DSA signature algorithm.
> 
> change to:
> 
>     DSA signatures MUST use hashes that are equal to or larger than

language nit: "equal in size to"

>     the size of q, the group generated by the DSA key's generator
>     value.  If the chosen hash is larger than the size of q, the hash
>     result is truncated to fit by taking a number of leftmost bits
>     equal to the number of bits in q.  This (possibly truncated) hash
>     function result is treated as a number and used directly in the
>     DSA signature algorithm.


-- 
http://www.apache-ssl.org/ben.html           http://www.links.org/

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff