Re: [openpgp] Replacing the OpenPGP Encryption Mode is Harmful and Pointless

Wyllys Ingersoll <wyllys@gmail.com> Mon, 18 July 2022 13:50 UTC

Return-Path: <wyllys@gmail.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 AC51CC14F72C for <openpgp@ietfa.amsl.com>; Mon, 18 Jul 2022 06:50:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.108
X-Spam-Level:
X-Spam-Status: No, score=-2.108 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iGbaVAScV-Wo for <openpgp@ietfa.amsl.com>; Mon, 18 Jul 2022 06:50:34 -0700 (PDT)
Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 67336C157B43 for <openpgp@ietf.org>; Mon, 18 Jul 2022 06:50:22 -0700 (PDT)
Received: by mail-lf1-x12e.google.com with SMTP id u13so19439507lfn.5 for <openpgp@ietf.org>; Mon, 18 Jul 2022 06:50:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qa5dsRhQEPjM3a8ywLe+vSG6c6gHxYHxyMKL1RjmOyA=; b=oyqkeTPi6C+tRKATGEifRO7cealNWN2dg7/cdbQ+IoESTpv955CTb/iwVt+iwfHvoH eMIoM85zHrffslxNia8HXRJSX/0vGtqsYUGwCljlIu/ZbiGp4BttqZRIuCAFP+JA2v9L mnLod3CrYueW2ij2qtRgkFf5i/P3EeSXR3ao2XJul3AR449q2mLIsqtT4dvn+U9xeD0b Oi0Am4JoDvz0NhN5oDlRvTJUV8j2XzoOgk0jPyAagXNcK/KqQlrEAjZ1CGXKgzQ/z1xb Rifbg4nb9KJeWR0chjyynM8OncjLSO7StLVfwxqdzYiUdhwjB93ccGagT+72uSDsIdOl U4CQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qa5dsRhQEPjM3a8ywLe+vSG6c6gHxYHxyMKL1RjmOyA=; b=GdjvCBqSOI5J6uWo93bKPEWIK6izp5yIrESrXenVjk7ki2Md7pdg6iAwU1xEKO8bUZ Z5oDFGTLsgIhNgZJp3ZGS9xK5ADwxGRXkCA1Aw5NRMKbaq+vFlEkHSxVpf8BKVdqMF1X kigbJ6NX8eItjy+8R2h7C08m983oQqd2JPYeQ8ssCLZtd9UKsyuUzVagvaP1pZ78Rjv4 INOugI6HINV0v6auXe329LOVJK7X07Vx4gyJiIhrRwxghXGIS/jyt+VVur/h9EOxH1Iy 9Yai0gOu8C06+iPodEfuwUe9eMcRQuQ/sx/o5CVhy+CUL/gCPXjLtuwhyIxy+0sSM5Pf G4LA==
X-Gm-Message-State: AJIora/dZWuJ2RVK/MjDc5JtOeG0HTmhf8hRejbHbCGnkGg0niJlqxId 8iOD4k8wWADt44abjfannWdxP8tZZD8127P6NtcdGHPf
X-Google-Smtp-Source: AGRyM1vtrInad9CZESLE7IFjg2PXvz/r02Ieevlx8Uuz5Nf4ZFYKGxfj6vTEX77udEfIUVdH/YlVyiu3+Wm1qdJcyXY=
X-Received: by 2002:a05:6512:1048:b0:489:ddda:d2a3 with SMTP id c8-20020a056512104800b00489dddad2a3mr15426286lfb.57.1658152220188; Mon, 18 Jul 2022 06:50:20 -0700 (PDT)
MIME-Version: 1.0
References: <YtFLcfKMEC/vRXY+@watt.59.ca> <8z4hYvgxLiNrfVMLCTfxUFCm6MVzugdNOvjPdvn4qoRF76lESafW0nqnQthrtCGbGK3ire9lqAmrJetJHHCYJiHhxXXgkCWKB5zmPc6Ax-g=@protonmail.com> <YtG/rE5D71hJtFyM@ohm.59.ca> <bZNA5Kqg_5MZFIzOuRnGvoTx8_tPdvasQ8U7v1tCQQXfVJu5QZOqpoq1TTqeXi_TMjHzDFEKtfIV--pC7vIO0t0nswB2vv1AqqSrfY_c8CY=@protonmail.com>
In-Reply-To: <bZNA5Kqg_5MZFIzOuRnGvoTx8_tPdvasQ8U7v1tCQQXfVJu5QZOqpoq1TTqeXi_TMjHzDFEKtfIV--pC7vIO0t0nswB2vv1AqqSrfY_c8CY=@protonmail.com>
From: Wyllys Ingersoll <wyllys@gmail.com>
Date: Mon, 18 Jul 2022 09:50:09 -0400
Message-ID: <CAHRa8=WtB+vHEZ0YZ+gWZwxuHj1ttimiTcDzLT8OY3Q=00sTXQ@mail.gmail.com>
To: Daniel Huigens <d.huigens@protonmail.com>
Cc: Bruce Walzer <bwalzer@59.ca>, "openpgp@ietf.org OpenPGP" <openpgp@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000001164a705e414a6ef"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/cSrCwhHRTF21jmInuorPnFR9IKw>
Subject: Re: [openpgp] Replacing the OpenPGP Encryption Mode is Harmful and Pointless
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.39
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, 18 Jul 2022 13:50:36 -0000

On Mon, Jul 18, 2022 at 5:59 AM Daniel Huigens <d.huigens=
40protonmail.com@dmarc.ietf.org> wrote:

> On Friday, July 15th, 2022 at 21:27, Bruce Walzer <bwalzer@59.ca> wrote:
>
> > If the error is in the spec, then I, as the application programmer,
> > have to deal with it somehow. So I can't get around having to decide
> > what to provide the user instead of the message they are expecting.
>
> Sure. My argument is that you can safely decide not to provide anything
> in this case, because in practice, this situation won't occur.
>
> > Why would the application programmer perfer having to dechunk the
> > message?
>
> The application programmer doesn't have to do that. The OpenPGP library
> can do so. The advantage for the application programmer is that they
> get data sooner (when streaming) when the library does this check.
>
>
>
What is "The OpenPGP Library"?
There is no single standard library for OpenPGP application programmers.
There are several implementations of the OpenPGP standard - gnupg being the
most commonly used, but there are many others for different languages and
platforms - Swift, Obj-C, Python, Java, Javascript, Rust, Go, etc. etc. The
maintainers of those libraries have to be trusted to get it right and
provide APIs that application developers can easily incorporate into the
program flow. Chunking is a departure from the traditional PGP message
processing and will involve significant changes to both existing libraries
and the applications that consume them.

-Wyllys Ingersoll