Re: [openpgp] "OpenPGP Simple"

Derek Atkins <warlord@MIT.EDU> Tue, 17 March 2015 15:11 UTC

Return-Path: <derek@ihtfp.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 F2A161A1BAA for <openpgp@ietfa.amsl.com>; Tue, 17 Mar 2015 08:11:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 94WkJFEIip_1 for <openpgp@ietfa.amsl.com>; Tue, 17 Mar 2015 08:11:10 -0700 (PDT)
Received: from mail2.ihtfp.org (mail2.ihtfp.org [IPv6:2001:4830:143:1::3a11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 65F461A1BAF for <openpgp@ietf.org>; Tue, 17 Mar 2015 08:11:10 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mail2.ihtfp.org (Postfix) with ESMTP id D15CAE2048; Tue, 17 Mar 2015 11:11:08 -0400 (EDT)
Received: from mail2.ihtfp.org ([127.0.0.1]) by localhost (mail2.ihtfp.org [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 03865-06; Tue, 17 Mar 2015 11:11:06 -0400 (EDT)
Received: from securerf.ihtfp.org (unknown [IPv6:fe80::ea2a:eaff:fe7d:235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mocana.ihtfp.org", Issuer "IHTFP Consulting Certification Authority" (verified OK)) by mail2.ihtfp.org (Postfix) with ESMTPS id D98AFE2039; Tue, 17 Mar 2015 11:11:05 -0400 (EDT)
Received: (from warlord@localhost) by securerf.ihtfp.org (8.14.8/8.14.8/Submit) id t2HFB4pw026403; Tue, 17 Mar 2015 11:11:04 -0400
From: Derek Atkins <warlord@MIT.EDU>
To: David Shaw <dshaw@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> <ECC76BD6-D0F7-44FB-BCF3-5AD1DF34E613@jabberwocky.com>
Date: Tue, 17 Mar 2015 11:11:04 -0400
In-Reply-To: <ECC76BD6-D0F7-44FB-BCF3-5AD1DF34E613@jabberwocky.com> (David Shaw's message of "Mon, 16 Mar 2015 17:30:55 -0400")
Message-ID: <sjmfv93k6bb.fsf@securerf.ihtfp.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: Maia Mailguard 1.0.2a
Archived-At: <http://mailarchive.ietf.org/arch/msg/openpgp/zddCLY8BxC72Z8w7DGLGF2Nhi0c>
Cc: "openpgp@ietf.org" <openpgp@ietf.org>, Jon Callas <jon@callas.org>, gnupg-devel@gnupg.org, Stephen Paul Weber <singpolyma@singpolyma.net>, Werner Koch <wk@gnupg.org>, David Leon Gil <coruus@gmail.com>
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: Tue, 17 Mar 2015 15:11:12 -0000

David Shaw <dshaw@jabberwocky.com> writes:

> 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.

This is exactly what it was created for, when you cannot know the size
ahead of time.  Sometimes you *can* know the size, even for large
objects (e.g. you could stat() the file to get the filesize), but
obviously that doesn't work in all cases.

>> Partial lengths are really a nuisance to parse.
>
> No argument there...

I'm sorry.  I blame Colin for trying to be too clever, and me not
working hard enough to talk him out of it.  ;)

> David

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available