Re: [openpgp] "OpenPGP Simple"

David Shaw <dshaw@jabberwocky.com> Mon, 16 March 2015 21:31 UTC

Return-Path: <dshaw@jabberwocky.com>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3316D1A9240 for <openpgp@ietfa.amsl.com>; Mon, 16 Mar 2015 14:31:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 h4uSaU3M3ZM3 for <openpgp@ietfa.amsl.com>; Mon, 16 Mar 2015 14:31:10 -0700 (PDT)
Received: from mail.jabberwocky.com (walrus.jabberwocky.com [173.9.29.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 264AB1A924C for <openpgp@ietf.org>; Mon, 16 Mar 2015 14:31:05 -0700 (PDT)
Received: from dshaw.nasuni.net (50-202-126-134-static.hfc.comcastbusiness.net [50.202.126.134]) (authenticated bits=0) by mail.jabberwocky.com (8.14.4/8.14.4) with ESMTP id t2GLAkuO018691 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Mar 2015 17:10:46 -0400
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: David Shaw <dshaw@jabberwocky.com>
In-Reply-To: <CAA7UWsUYFJUWo5Pk4gUZn_qQvMWmhgaiDpZUC7p+FKH8c15TXQ@mail.gmail.com>
Date: Mon, 16 Mar 2015 17:30:55 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <ECC76BD6-D0F7-44FB-BCF3-5AD1DF34E613@jabberwocky.com>
References: <20150315175744.GG2978@singpolyma-liberty> <34C550CB-11A0-4D25-A5CF-78D265FE2435@callas.org> <20150316181213.GF2944@singpolyma-liberty> <87d2484tg4.fsf@vigenere.g10code.de> <CAA7UWsUYFJUWo5Pk4gUZn_qQvMWmhgaiDpZUC7p+FKH8c15TXQ@mail.gmail.com>
To: David Leon Gil <coruus@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Archived-At: <http://mailarchive.ietf.org/arch/msg/openpgp/PCXD0MDbZrJlDX7rgmGvlkpg0P4>
Cc: Stephen Paul Weber <singpolyma@singpolyma.net>, Werner Koch <wk@gnupg.org>, "openpgp@ietf.org" <openpgp@ietf.org>, gnupg-devel@gnupg.org, Jon Callas <jon@callas.org>
Subject: Re: [openpgp] "OpenPGP Simple"
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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, 16 Mar 2015 21:31:11 -0000

On Mar 16, 2015, at 5:15 PM, David Leon Gil <coruus@gmail.com> wrote:
> 
> Re Jon's comment above: The five-octet, new-format thing is what the End-to-End extension does.
> 
> On Monday, March 16, 2015, Werner Koch <wk@gnupg.org> wrote:
> On Mon, 16 Mar 2015 19:12, singpolyma@singpolyma.net said:
> 
> > Yes.  Last time I checked, gnupg < 2 (which is still the default on
> > most of my systems) only generates old-style headers, whereas my
> 
> That depends on how you invoke gpg and whether the new packer headers
> are required.  That is required for PGP-2 compatibility.
> 
> Is there an option to completely disable this?

Not in the current code, but you can of course patch it.

> Relatedly, is there any option to not use new-format partial lengths?

A partial length is needed to handle content as a stream - say some program that generates gigabytes of data (like a backup).  Something large enough that you really don't want to have to buffer the whole thing before encrypting it.

> Partial lengths are really a nuisance to parse.

No argument there...

David