Outstanding question - rule on cleartext signing last line

Ian G <iang@systemics.com> Thu, 08 December 2005 11:56 UTC

Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1EkKNn-0006RW-7C for openpgp-archive@megatron.ietf.org; Thu, 08 Dec 2005 06:56:19 -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 GAA05366 for <openpgp-archive@lists.ietf.org>; Thu, 8 Dec 2005 06:55:24 -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 jB8BhNmj050986; Thu, 8 Dec 2005 03:43:23 -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 jB8BhNuC050985; Thu, 8 Dec 2005 03:43:23 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-openpgp@mail.imc.org using -f
Received: from mailgate.enhyper.net ([80.168.109.121]) by above.proper.com (8.12.11/8.12.9) with ESMTP id jB8BhN6K050979 for <ietf-openpgp@imc.org>; Thu, 8 Dec 2005 03:43:23 -0800 (PST) (envelope-from iang@systemics.com)
Received: from [IPv6:::1] (localhost [127.0.0.1]) by mailgate.enhyper.net (Postfix) with ESMTP id C7225651AA; Thu, 8 Dec 2005 11:43:16 +0000 (GMT)
Message-ID: <43981C74.1070403@systemics.com>
Date: Thu, 08 Dec 2005 11:43:48 +0000
From: Ian G <iang@systemics.com>
Organization: http://financialcryptography.com/
User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050921)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Daniel A. Nagy" <nagydani@epointsystem.org>
Cc: OpenPGP <ietf-openpgp@imc.org>
Subject: Outstanding question - rule on cleartext signing last line
References: <43980274.2080404@iang.org> <20051208104150.GA14918@epointsystem.org>
In-Reply-To: <20051208104150.GA14918@epointsystem.org>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
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 Thu, Dec 08, 2005 at 09:52:52AM +0000, Ian G wrote:
> 
> 
>>(I never did see a resolution to that question?
>>What then was the rule on the last newline?)
> 
> 
> In order for the cleartext signed message to verify, there is no need to add
> another newline; the standard allows for text messages where the last line
> is not terminated. GPG actually REMOVES the last newline, if the input comes
> from the console, in order to allow for cleartext messages with an
> unterminated last line. I like this feature a lot.
> 
> If terminating the last newline is not required, then one-pass signed and
> clearsigned text messages can be converted back-and-forth without access to
> the secret key (or any cryptography, for that matter). I think this feature
> is worth preserving.
> 
> Thus, I propose not requiring the termination of the last line (and not
> terminating it automagically).

So, what you are proposing is that when
an unterminated message is signed:

-----BEGIN SIGNED MESSAGE-----

this message was signed unterminated
-----BEGIN PGP SIGNATURE-----
b1ab1a
-----END PGP SIGNATURE-----

It recovers as "this message was signed unterminated"
as it went in?  And then this becomes:


-----BEGIN SIGNED MESSAGE-----

this message was already terminated

-----BEGIN PGP SIGNATURE-----
b1ab1a
-----END PGP SIGNATURE-----

which extracts as "this message was already terminated
" (i.e., preserving its one newline).



OK, I'd be happy with that.  As long as it is a solid
rule.

But I think we need to hear from the PGP Inc and GPG
architects on this?

iang