Re: [openpgp] Bug#931238: hot armor: please drop "Version: " header

Daniel Kahn Gillmor <dkg@fifthhorseman.net> Mon, 22 July 2019 13:27 UTC

Return-Path: <dkg@fifthhorseman.net>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A82B912029F for <openpgp@ietfa.amsl.com>; Mon, 22 Jul 2019 06:27:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=LZks9Ipm; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=nCVvukMN
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Aq79EFwWM750 for <openpgp@ietfa.amsl.com>; Mon, 22 Jul 2019 06:27:07 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [IPv6:2001:470:1:116::7]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 372C81202ED for <openpgp@ietf.org>; Mon, 22 Jul 2019 06:27:07 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1563802026; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=vVUtGBfWc06Ne/y8gvq4LSJY1pEK/dK073ZrxKNMO3s=; b=LZks9Ipm9C6sfBsVVqu2xTiEJB8v4xOG/is2+lzf+i2zt4kfxVT8fDr+ wjneB5aP1X9fE07na33vK7h1RlIwDA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1563802025; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=vVUtGBfWc06Ne/y8gvq4LSJY1pEK/dK073ZrxKNMO3s=; b=nCVvukMNBbqmUpLIt1Vfa07Ny4BTHNiuzCH+1YtqUfylmk1NH4i7KfnD fYXC3MsQ5lLW924j5+cN6KMKpOiTGg9sX1lf403aHQERW/WUeI2uwH07FP P6WmhvArUoZUpTcGqA457hVTqkBaCSkx2+RfYLqgxuc5ooFno+YvymCumU 1wJ6WqZFa37oB6UzdKq1j6qppNJBob/Jov1z3qh6TxJbK+UVjht92RTHwa OAZ1JFbwXPbUs7beAPB2zdzWoLGh+GlYqqVmIfn3gOOTi56yA7jd9txqtE tiHYSXEtkKttcQ0E/RaY3PSwvmrkTzkcON0tY/hzf+Ys1FZA5auekg==
Received: from fifthhorseman.net (dhcp-80e0.meeting.ietf.org [31.133.128.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 5A984F99E; Mon, 22 Jul 2019 09:27:05 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id F13A320828; Mon, 22 Jul 2019 09:15:33 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Heiko Stamer <HeikoStamer@gmx.net>, openpgp@ietf.org
In-Reply-To: <9a2f6586-1bc3-9108-d166-bd83952dc7f4@gmx.net>
References: <87zhm1o0f7.fsf@fifthhorseman.net> <20190706133941.tw3znn74q4iseiyo@scru.org> <54525144-b7bf-fa79-c497-ca8fbf77f89d@gmx.net> <87tvby6nl7.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fUFkraL06Xn/xGwJ+D0hCw==
Date: Mon, 22 Jul 2019 09:15:33 -0400
Message-ID: <87zhl6xlai.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/XWFWFLKE8vOXKi6mAA3i4-rN5Bs>
Subject: Re: [openpgp] Bug#931238: hot armor: please drop "Version: " header
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Jul 2019 13:27:13 -0000

On Sat 2019-07-13 10:38:14 +0200, Heiko Stamer wrote:
> On 07.07.2019 at 14:22, Daniel Kahn Gillmor wrote:
>
>> totally agreed that this should be added, and i encourage you to send
>> text to the openpgp@ietf.org mailing list.
>
> Regarding the fixed encoding of a (sub)packet length I suggest the
> following approach (AFAIK it's used by most OpenPGP implementations):
>
> 	if (len < 192)
> 	{
> 		// one-octet length format
> 	}
> 	else if (len < 8384)
> 	{
> 		// two-octet length format
> 	}
> 	else
> 	{
> 		// four-octet length format with 0xFF prefix
> 	}

This looks reasonable to me, and i agree that it should be part of any
proposed draft aimed at minimizing divergence in generated output across
OpenPGP implementations.

    --dkg