Re: Outstanding question - rule on cleartext signing last line
Ian G <iang@systemics.com> Tue, 27 December 2005 09:30 UTC
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1ErBAG-0004ie-0l for openpgp-archive@megatron.ietf.org; Tue, 27 Dec 2005 04:30:40 -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 EAA16592 for <openpgp-archive@lists.ietf.org>; Tue, 27 Dec 2005 04:29:30 -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 jBR99kS9002796; Tue, 27 Dec 2005 01:09:46 -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 jBR99kHt002795; Tue, 27 Dec 2005 01:09:46 -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 jBR99jr7002786 for <ietf-openpgp@imc.org>; Tue, 27 Dec 2005 01:09:45 -0800 (PST) (envelope-from iang@systemics.com)
Received: from [IPv6:::1] (localhost [127.0.0.1]) by mailgate.enhyper.net (Postfix) with ESMTP id 589D0413D3; Tue, 27 Dec 2005 09:09:44 +0000 (GMT)
Message-ID: <43B104AE.2090905@systemics.com>
Date: Tue, 27 Dec 2005 09:09:02 +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: vedaal@hush.com
Cc: ietf-openpgp@imc.org
Subject: Re: Outstanding question - rule on cleartext signing last line
References: <200512262305.jBQN5fE1077842@mailserver2.hushmail.com>
In-Reply-To: <200512262305.jBQN5fE1077842@mailserver2.hushmail.com>
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
vedaal@hush.com wrote: > i really can't see any bug in gnupg about this > > gnupg clearsigns exactly what the user gives it > > if the user gives it text with no empty line after it, > then the signature block begins right after the text > > if the user wants a blank line and includes the line return, > then gnupg signs after the empty line > > they are *not* identical or interchangeable > > here are two, one with the empty line, > and one without: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > test > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) My results do not agree. If there is no terminating newline, GPG adds it (as it must). If there is a terminating line, GPG does not add one. I'm using FreeBSD and 1.4.2. iang galland$ echo "test" > test galland$ cat test test galland$ gpg -ats -u DSS3 test gpg: WARNING: using insecure memory! gpg: please see http://www.gnupg.org/faq.html for more information You need a passphrase to unlock the secret key for user: "Ian Grigg DSS3 <iang@systemics.com>" 1024-bit DSA key, ID DABCCA96, created 2000-03-26 galland$ cat test.asc -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 test -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDsQM/4yubUNq8ypYRAvt0AJ9Mz6HniSHDC50tCwbkfhzfHYPbNACeIcgV TNCBA1EqsEB2sC186c1PLwo= =imH/ -----END PGP SIGNATURE----- galland$ cat test test galland$ echo -n "test" > test galland$ cat test galland$ gpg -ats -u DSS3 test gpg: WARNING: using insecure memory! gpg: please see http://www.gnupg.org/faq.html for more information You need a passphrase to unlock the secret key for user: "Ian Grigg DSS3 <iang@systemics.com>" 1024-bit DSA key, ID DABCCA96, created 2000-03-26 File `test.asc' exists. Overwrite? (y/N) y galland$ cat test.asc -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 test -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDsQN44yubUNq8ypYRAppqAKDuyDjAe5OilDaA8M4QhCNhyM7b+wCgqO59 81J/3jX2/rahh9p2knSXOO8= =QjIF -----END PGP SIGNATURE-----
- Re: Outstanding question - rule on cleartext sign… vedaal
- Re: Outstanding question - rule on cleartext sign… Ben Laurie
- Re: Outstanding question - rule on cleartext sign… Ian G
- Re: Outstanding question - rule on cleartext sign… Daniel A. Nagy
- Re: Outstanding question - rule on cleartext sign… "Hal Finney"
- Re: Outstanding question - rule on cleartext sign… Ian G
- Re: Outstanding question - rule on cleartext sign… Ben Laurie
- Re: Outstanding question - rule on cleartext sign… David Shaw
- Re: Outstanding question - rule on cleartext sign… Daniel A. Nagy
- Re: Outstanding question - rule on cleartext sign… David Shaw
- Re: Outstanding question - rule on cleartext sign… Ian G
- Re: Outstanding question - rule on cleartext sign… David Shaw
- Re: Outstanding question - rule on cleartext sign… Jon Callas
- Re: Outstanding question - rule on cleartext sign… Daniel A. Nagy
- Re: Outstanding question - rule on cleartext sign… Ian G
- Re: Outstanding question - rule on cleartext sign… Jon Callas
- Re: Outstanding question - rule on cleartext sign… Ben Laurie
- Re: Outstanding question - rule on cleartext sign… Jon Callas
- Re: Outstanding question - rule on cleartext sign… David Shaw