Re: Bad Armour Headers

Ben Laurie <ben@algroup.co.uk> Thu, 05 January 2006 16:20 UTC

Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1EuXqY-0002hJ-Dz for openpgp-archive@megatron.ietf.org; Thu, 05 Jan 2006 11:20:14 -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 LAA04018 for <openpgp-archive@lists.ietf.org>; Thu, 5 Jan 2006 11:18:58 -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 k05G49CD023020; Thu, 5 Jan 2006 08:04:09 -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 k05G49aD023019; Thu, 5 Jan 2006 08:04:09 -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 k05G48HA023013 for <ietf-openpgp@imc.org>; Thu, 5 Jan 2006 08:04:08 -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 AF65433C44; Thu, 5 Jan 2006 16:04:07 +0000 (GMT)
Message-ID: <43BD437B.9080705@algroup.co.uk>
Date: Thu, 05 Jan 2006 16:04:11 +0000
From: Ben Laurie <ben@algroup.co.uk>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: "Daniel A. Nagy" <nagydani@epointsystem.org>
CC: ietf-openpgp@imc.org
Subject: Re: Bad Armour Headers
References: <43BD2D04.6020203@algroup.co.uk> <20060105151541.GA12372@epointsystem.org>
In-Reply-To: <20060105151541.GA12372@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 Thu, Jan 05, 2006 at 02:28:20PM +0000, Ben Laurie wrote:
>> draft 15 says:
>>
>> "    The format of an Armor Header is that of a key-value pair.  A colon
>>     (':' 0x38) and a single space (0x20) separate the key and value.
>>     OpenPGP should consider improperly formatted Armor Headers to be
>>     corruption of the ASCII Armor. "
>>
>> However, I see improperly formatted headers because of word wrapping.
>> There doesn't appear to be a way to wrap a long line, so I must reject
>> these as badly formatted (not that other implementations do, it seems).
>>
>> This seems less than optimal.
> 
> Armor headers are very similar to MIME headers. In MIME, the solution is
> that non-empty lines are appended to the previous line, if they begin with a
> whitespace. This transformation can be used in OpenPGP too. In order to
> prevent arbitrary wraps, the length of actual lines should be maximized in
> 64 characters, with longer lines broken in the above described fashion (with
> a whitespace in the beginnig of the trailing part).

I would support this modification.

-- 
http://www.apache-ssl.org/ben.html       http://www.thebunker.net/

"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