Re: Lack of clarity in dash-escaped?

nagydani@epointsystem.org (Daniel A. Nagy) Wed, 30 November 2005 13:29 UTC

Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1EhS1v-0001tM-Ci for openpgp-archive@megatron.ietf.org; Wed, 30 Nov 2005 08:29:51 -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 IAA15167 for <openpgp-archive@lists.ietf.org>; Wed, 30 Nov 2005 08:29: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 jAUD9nv0090748; Wed, 30 Nov 2005 05:09:49 -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 jAUD9njo090747; Wed, 30 Nov 2005 05:09:49 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-openpgp@mail.imc.org using -f
Received: from mail.epointsystem.org (120.156-228-195.hosting.adatpark.hu [195.228.156.120]) by above.proper.com (8.12.11/8.12.9) with ESMTP id jAUD9mdn090740 for <ietf-openpgp@imc.org>; Wed, 30 Nov 2005 05:09:48 -0800 (PST) (envelope-from nagydani@epointsystem.org)
Received: by mail.epointsystem.org (Postfix, from userid 1001) id BC6752B44AB; Wed, 30 Nov 2005 14:09:46 +0100 (CET)
Date: Wed, 30 Nov 2005 14:09:46 +0100
To: Ben Laurie <ben@algroup.co.uk>
Cc: OpenPGP <ietf-openpgp@imc.org>
Subject: Re: Lack of clarity in dash-escaped?
Message-ID: <20051130130946.GA10317@epointsystem.org>
References: <438D81A8.6090905@algroup.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <438D81A8.6090905@algroup.co.uk>
User-Agent: Mutt/1.5.6+20040907i
From: nagydani@epointsystem.org
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, 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.

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

-- 
Daniel