Re: [openpgp] AEAD Chunk Size

Bart Butler <bartbutler@protonmail.com> Sat, 30 March 2019 16:42 UTC

Return-Path: <bartbutler@protonmail.com>
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 96DDC12020A for <openpgp@ietfa.amsl.com>; Sat, 30 Mar 2019 09:42:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=protonmail.com
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 VFqaRmueFred for <openpgp@ietfa.amsl.com>; Sat, 30 Mar 2019 09:42:27 -0700 (PDT)
Received: from mail1.protonmail.ch (mail1.protonmail.ch [185.70.40.18]) (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 8E7931201ED for <openpgp@ietf.org>; Sat, 30 Mar 2019 09:42:26 -0700 (PDT)
Date: Sat, 30 Mar 2019 16:42:19 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1553964144; bh=itJ40FMZ9CkRiDcqMdBzQ7sqR0FLy9VzoBhoUnTKs1U=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=fc1Ufod51cnhclFEsEwf/787xqwp4zPMiaOfy6ePys/8uAexJBSG9wKODLlCjjvJ1 StTCOjLJoNc650Z1ClJz/TZ6dE/bh0ttMUDyPVq6Uf5jGT983UcrjZftORQVx2qGJU hoUXJV0txjQWtqijhwxrKtjUCioulF3p9a+7AYng=
To: Benjamin Kaduk <kaduk@mit.edu>
From: Bart Butler <bartbutler@protonmail.com>
Cc: "openpgp@ietf.org" <openpgp@ietf.org>, "Neal H. Walfield" <neal@walfield.org>, Peter Gutmann <pgut001@cs.auckland.ac.nz>, Justus Winter <justuswinter@gmail.com>, Jon Callas <joncallas@icloud.com>, Jon Callas <joncallas=40icloud.com@dmarc.ietf.org>
Reply-To: Bart Butler <bartbutler@protonmail.com>
Message-ID: <Bdt5b69HJ3vlmqlOuUI88JdGW8jqDnB1easOaEJdEFtysGIMgSnSH9mwshEGe6xdPib9z6OnlZv72wWRODJ1hvkXhIruch9fUk4w7IhAla0=@protonmail.com>
In-Reply-To: <20190330150438.GS35679@kduck.mit.edu>
References: <87mumh33nc.wl-neal@walfield.org> <878swzp4fb.fsf@europa.jade-hamburg.de> <E65F6E9D-8B0B-466D-936B-E8852F26E1FF@icloud.com> <87d0m9hl62.wl-neal@walfield.org> <FEE9711C-3C64-493C-8125-89696B882E0A@icloud.com> <2di2bK8m-7HtDeoUEH9oPqs-bL-IKSE0CjkgFShPMLOlUyeDBVkVGApdjnIpS6YRAeKU3ibGCZCtwLden-N6zK5W4fqIghRGDa5dU720nEs=@protonmail.com> <20190330150438.GS35679@kduck.mit.edu>
Feedback-ID: XShtE-_o2KLy9dSshc6ANALRnvTQ9U24aqXW2ympbGschdpHbU6GYCTUCtfmGhY9HmOyP1Uweyandwh1AVDFrQ==:Ext:ProtonMail
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha512"; boundary="---------------------b509239ead97f7605f62cb62d8cf45e7"; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/b5j7aT2vl_gkNzFCDDWV3rnc-d8>
Subject: Re: [openpgp] AEAD Chunk Size
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: Sat, 30 Mar 2019 16:42:31 -0000

Hi Ben,

> One concern that I have (and is only tangentially related to this quoted
> part) is that I want to make it easy for implementations to "do the right
> thing" when ciphertext is modified, i.e., return an error, and specifically
> to return an error without releasing any plaintext that originates from the
> modified ciphertext. The current openpgp ecosystem does not seem to be
> very compliant to that desired behavior, and part of that may be due to a
> lack of philosophical support/help from the spec.
> 


If you mean 'modified ciphertext' to equal 'modified chunk', and are OK with releasing previously unauthenticated chunks, then I completely agree. The alternative is is just no streaming.

> I'm still not sure I understand the point of very large chunks, since once
> they get really big an implementation is choosing between streaming
> plaintext from potentially modified ciphertext or return an error without
> even attempting to process the chunk. I'm not convinced that the second
> will win out in implementations if we alow very large chunks.
> 


Agreed. Part of the rationale with a smaller chunk limit is not forcing implementations to make this choice. The guidance becomes very simple--never release unauthenticated chunks, full stop.