Re: Outstanding question - rule on cleartext signing last line

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

Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1Eqvx5-00089C-U1 for openpgp-archive@megatron.ietf.org; Mon, 26 Dec 2005 12:16:08 -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 MAA07381 for <openpgp-archive@lists.ietf.org>; Mon, 26 Dec 2005 12:14:53 -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 jBQH5VI3098340; Mon, 26 Dec 2005 09:05:31 -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 jBQH5Vow098339; Mon, 26 Dec 2005 09:05:31 -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 jBQH5UNv098332 for <ietf-openpgp@imc.org>; Mon, 26 Dec 2005 09:05:30 -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 A3E0933C40; Mon, 26 Dec 2005 17:05:29 +0000 (GMT)
Message-ID: <43B022E4.5020005@algroup.co.uk>
Date: Mon, 26 Dec 2005 17:05:40 +0000
From: Ben Laurie <ben@algroup.co.uk>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: Ian G <iang@systemics.com>, 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> <20051226153615.GB7066@jabberwocky.com> <43B0184C.6010505@systemics.com> <20051226163908.GC7066@jabberwocky.com>
In-Reply-To: <20051226163908.GC7066@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>
Content-Transfer-Encoding: 7bit

David Shaw wrote:
> On Mon, Dec 26, 2005 at 04:20:28PM +0000, Ian G wrote:
>> David Shaw wrote:
>>
>>> Can you give an example of why you feel this is a bug?
>> I think it is a bug if we decide that the
>> process of cleartext signing is reversable.
> 
> Can you please give an example of how the current system is not
> reversible?
> 
> As far as I can see, the current system is quite reversible.  For
> example, given a document reading "this is a test" (no line ending,
> and the last character in the file is the second t from test), here's
> a clear signature:
> 
> test  <<-----  There is a CRLF here, but it is NOT PART OF THE SIG

> Now given a document reading "this is a test<LINEENDING>", here's a
> clear signature:

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

test  <<----- There is a CRLF here and it IS PART OF THE SIG
<<-----  There is a CRLF here, but it is NOT PART OF THE SIG
-----BEGIN PGP SIGNATURE-----

blah blah blah
-----END PGP SIGNATURE-----

> In what way is this not reversible?

>> So, if the process of verification creates
>> a file that is the pre-signed version, then
>> it has to decide whether the final CRLF has
>> to be preserved or stripped in the unsigned
>> output.

> The final CRLF is not part of the document.  If a user/implementation
> wants a final CRLF in there that is part of the document, they need to
> add one.

> Think of the "BEGIN PGP SIGNATURE" string as actually being
> "CRLF-----BEGIN PGP SIGNATURE".  It's part of the message structure
> and not part of the signed text.

If that were what happened, I'd be happy. But it isn't.

-- 
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