Re: Outstanding question - rule on cleartext signing last line

Ben Laurie <ben@algroup.co.uk> Mon, 26 December 2005 17:15 UTC

Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1EqvwI-0007yE-7X for openpgp-archive@megatron.ietf.org; Mon, 26 Dec 2005 12:15:14 -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 MAA07273 for <openpgp-archive@lists.ietf.org>; Mon, 26 Dec 2005 12:14:04 -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 jBQH3oGm098066; Mon, 26 Dec 2005 09:03:50 -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 jBQH3opX098065; Mon, 26 Dec 2005 09:03:50 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id jBQH3nBr098059 for <ietf-openpgp@imc.org>; Mon, 26 Dec 2005 09:03:49 -0800 (PST) (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 AE9C133C1C; Mon, 26 Dec 2005 17:03:48 +0000 (GMT)
Message-ID: <43B0227F.8090704@algroup.co.uk>
Date: Mon, 26 Dec 2005 17:03:59 +0000
From: Ben Laurie <ben@algroup.co.uk>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: "Daniel A. Nagy" <nagydani@epointsystem.org>
CC: OpenPGP <ietf-openpgp@imc.org>
Subject: Re: Outstanding question - rule on cleartext signing last line
References: <43980274.2080404@iang.org> <20051208104150.GA14918@epointsystem.org> <43981C74.1070403@systemics.com> <87bqzrhj6i.fsf@wheatstone.g10code.de> <20051208145205.GA5943@jabberwocky.com> <43AFE21B.1000102@algroup.co.uk> <20051226134303.GA24812@epointsystem.org>
In-Reply-To: <20051226134303.GA24812@epointsystem.org>
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>
Content-Transfer-Encoding: 7bit

Daniel A. Nagy wrote:
> On Mon, Dec 26, 2005 at 12:29:15PM +0000, Ben Laurie wrote:
>> David Shaw wrote:
>>> On Thu, Dec 08, 2005 at 01:23:01PM +0100, Werner Koch wrote:
>>>> On Thu, 08 Dec 2005 11:43:48 +0000, Ian G said:
>>>>
>>>>> But I think we need to hear from the PGP Inc and GPG
>>>>> architects on this?
>>>> I recall that we tweaked gpg's behaviour in this regard until all
>>>> users were satisfied.  Thus I'd say not to add new requirement to the
>>>> specs.
>>> I agree.  I think the spec is just fine in this regard: the final CRLF
>>> (the one before the "-----BEGIN PGP SIGNATURE-----") is not part of
>>> the signature.  That allows for the GPG behavior to preserve the
>>> presence or lack of line ending on the last line.
>> However, it doesn't. This strikes me as a bug both in GPG and in the spec.
> 
> Yes it does. GPG behaves slightly differently with messages entered from the
> console, but that makes a lot of sense, too. I don't see any bugs in either
> the specs and GPG. I have coded up my own OpenPGP implementation based on
> the spec (http://pgp.epointsystem.org/tool) and it interoperates perfectly
> with GPG.

I have just tested GPG yet again, and cleartext signatures of two files,
one without a newline at the end, and one with, look identical:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

test
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

Cheers,

Ben.

-- 
http://www.apache-ssl.org/ben.html       http://www.thebunker.net/
**  ApacheCon - Dec 10-14th - San Diego - http://apachecon.com/ **
"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