Re: Lack of clarity in dash-escaped?

Ben Laurie <ben@algroup.co.uk> Wed, 30 November 2005 14:06 UTC

Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1EhSbd-0001DF-Dd for openpgp-archive@megatron.ietf.org; Wed, 30 Nov 2005 09:06:45 -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 JAA19887 for <openpgp-archive@lists.ietf.org>; Wed, 30 Nov 2005 09:06:00 -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 jAUDZXbE093738; Wed, 30 Nov 2005 05:35:33 -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 jAUDZXSU093737; Wed, 30 Nov 2005 05:35:33 -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 jAUDZWcV093729 for <ietf-openpgp@imc.org>; Wed, 30 Nov 2005 05:35:32 -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 DCFA633C3F; Wed, 30 Nov 2005 13:35:29 +0000 (GMT)
Message-ID: <438DAAAA.70204@algroup.co.uk>
Date: Wed, 30 Nov 2005 13:35:38 +0000
From: Ben Laurie <ben@algroup.co.uk>
User-Agent: Thunderbird 1.5 (Windows/20051025)
MIME-Version: 1.0
To: "Daniel A. Nagy" <nagydani@epointsystem.org>
CC: OpenPGP <ietf-openpgp@imc.org>
Subject: Re: Lack of clarity in dash-escaped?
References: <438D81A8.6090905@algroup.co.uk> <20051130130946.GA10317@epointsystem.org>
In-Reply-To: <20051130130946.GA10317@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 Wed, Nov 30, 2005 at 10:40:40AM +0000, Ben Laurie wrote:
>> "   Also, any trailing whitespace -- spaces (0x20) and tabs (0x09) -- at
>>     the end of any line is removed when the cleartext signature is
>>     generated."
>>
>> Does this mean they should not be included in the signature, or also
>> that they should be stripped from the dash-escaped text?
> 
> It doesn't matter.

Of course it matters!

>> "   The line ending (i.e. the <CR><LF>) before the '-----BEGIN PGP
>>     SIGNATURE-----' line that terminates the signed text is not
>>     considered part of the signed text."
>>
>> Does this mean that one should insert an extra <CR><LF> before the
>> terminating line? I notice that at least some implementations do not.
> 
> Yes, it does. The '-----BEGIN PGP SIGNATURE-----' must begin in a new line.
> The line termination before it is not part of the signature. AFAIK, all
> implementations treat it that way.

That doesn't answer the question.

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