[openpgp] Pull request for 8-octet lengths

"brian m. carlson" <sandals@crustytoothpaste.net> Mon, 13 February 2017 00:59 UTC

Return-Path: <sandals@crustytoothpaste.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 7A11612950B for <openpgp@ietfa.amsl.com>; Sun, 12 Feb 2017 16:59:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (3072-bit key) header.d=crustytoothpaste.net
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 E-kDcRK18ryA for <openpgp@ietfa.amsl.com>; Sun, 12 Feb 2017 16:59:36 -0800 (PST)
Received: from castro.crustytoothpaste.net (sandals-1-pt.tunnel.tserv8.dal1.ipv6.he.net [IPv6:2001:470:1f0e:3f1::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2B6741294F0 for <openpgp@ietf.org>; Sun, 12 Feb 2017 16:59:36 -0800 (PST)
Received: from genre.crustytoothpaste.net (unknown [IPv6:2001:470:b978:101:254c:7dd1:74c7:cde0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by castro.crustytoothpaste.net (Postfix) with ESMTPSA id D6138280AD for <openpgp@ietf.org>; Mon, 13 Feb 2017 00:59:33 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=crustytoothpaste.net; s=default; t=1486947573; bh=L4kiSH1XE3U/V3nPt+lingAg/sPvC5oFdSAkwo+ynZw=; h=Date:From:To:Subject:From; b=bQEXEM4QeVIFvnh+9nEMcumk5MKhrQRWbVxRXWBmhAHASsPI8O4lSLfi4PC1+e2Wj ZfFTnu2vzRV6Al3PCKLsgqUxJaWuUwKwfgEbuugycV0uozEKqDUqz9zglJffblV3q8 JFB6ybFkjFJReesxoaOrWlWj2vh1GXy/DLxioK9l6ftzJoBDqUPvtSRL6BdBRC4k2b WjgsEWJtiLJyXwqI4SJbAxhVsn9CEPBks90/7wHmAe7tk7o6Le/Ao70Ym85gWgRnT9 5g0nrmsjVs1GziWs9rKsEtGpVT+cEHxPBxvPNttI7jsTrKXXDkJ/vsc5q4mEU5G1Iq JFuYgzz1gon1lChSxYvnIOLjFgP7BQH1z4njECaaS5699XdqHhbaqZdQ5ZM9hIHx2y uDUC28sjmEvRSlrPp33vWDd+opHfjBlMkXdrQp+2lHXElyWNnHMn/+kNQEzy0gu0/d 6VpHRIuQLXi614zR9KURWSMm2v+V4Z9puIaG5uWEZ90NQ/K+D+q
Date: Mon, 13 Feb 2017 00:59:28 +0000
From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: openpgp@ietf.org
Message-ID: <20170213005928.2ytmjp3h2njyjcgy@genre.crustytoothpaste.net>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ybn4jj7mkssuc25a"
Content-Disposition: inline
X-Machine: Running on genre using GNU/Linux on x86_64 (Linux kernel 4.9.0-1-amd64)
User-Agent: NeoMutt/20170113 (1.7.2)
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/rvZtiWPs1lDOAz5iZ3m5yvfnuS4>
Subject: [openpgp] Pull request for 8-octet lengths
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.17
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, 13 Feb 2017 00:59:37 -0000

There was some question as to whether we should use four-octet or
eight-octet lengths for signatures (or some other technique), as one
might want to sign more the 2^32 bytes of data.  I've submitted a pull
request[0] to use eight-octet lengths for all signatures.

I don't think the overhead of hashing an additional four bytes for short
signatures will matter, and I feel that simply overflowing the existing
four-byte counter could potentially collision issues down the line.

Other opinions are welcomed.

[0] https://gitlab.com/openpgp-wg/rfc4880bis/merge_requests/1
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204