[openpgp] Deprecating compression support

Justus Winter <justuswinter@gmail.com> Mon, 18 March 2019 12:07 UTC

Return-Path: <justuswinter@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 8993A12782C for <openpgp@ietfa.amsl.com>; Mon, 18 Mar 2019 05:07:27 -0700 (PDT)
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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] 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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h14Z9snmr-oW for <openpgp@ietfa.amsl.com>; Mon, 18 Mar 2019 05:07:26 -0700 (PDT)
Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9E93F127963 for <openpgp@ietf.org>; Mon, 18 Mar 2019 05:07:25 -0700 (PDT)
Received: by mail-wm1-x32d.google.com with SMTP id f65so12732885wma.2 for <openpgp@ietf.org>; Mon, 18 Mar 2019 05:07:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=eqh+kz5BxhPjyC7NXbFLaX+X70GHjNbZh6K+sA6a/Lc=; b=aUTobpIbRXoX5ES6tfkNqXHgry7MJ2gQgKbmZXv/l2DClvhcdFedilOD5IM7OSKGA+ Z8NtknZe4Hh04UOHH4+94geeiDlSYB4MD/2q/ODwTu+2+65LLByh1tlEhCUwvIWCkSHW HqSaCHIiUHoKeVFeFzm2oNMWPQdAAMjcObwuujEC4ZuZ4p6OI3T/jLXkd8+1zFJG/9AE dTFFvP4ufqLkZYjxVpu65Ne9J0FxiBPUS5/WcCQAACyIN9VyRZabxk9j9JFccLH4QlFP 9b0e86MmfYjdOvmdS4vcJFtkPQe+A1Z5W1ZvgHtdjhGwd4H5Z1K96Wh8CiDf/sSVj0ro ll5A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=eqh+kz5BxhPjyC7NXbFLaX+X70GHjNbZh6K+sA6a/Lc=; b=n61kugCJ3hXgZkRXS00JTD7l8R677Qm8ZpBYEpI2kbrhVhiG1Mk9YgwCK76anlsta1 BAwF3FBYWs/NcJ/173n3rK/kSoHLi3vpko8KGkTxFtFR64qM7XTb/Mrl7PYpSVSajeOh tv/GZZ7mP304mH8oXItJlsdDSb7CGuoI9TV9Hsgs52wlutdtVom9YWQUFhVY7JELmsSC o1WNAI9k2J95LdDY/ae7BcKI0vGzpNK+JtjtAqOWcy3SdAg9kJoksaxF+dSeElLBOApJ eeIGGBN4vq2ZakUUwvxxhGoP3BFTchWPHujuCDHNm1m/aAjBTIThxS+ryAeLywzd097f noig==
X-Gm-Message-State: APjAAAWvWDcc5tj1/Ng6ak+3nev4bRHRQ8yPg69dp2NIBsgSG4PwgyEI Y++fjkwkXZB7qnjxJa13bHnjLz9/
X-Google-Smtp-Source: APXvYqwNzNL88llVvU4lTfL0frSEZYu5Bw2ZBY+SqkbCjKXwVe2h050wvbEW7bpkvpyDLaK8B3kYUg==
X-Received: by 2002:a7b:c34d:: with SMTP id l13mr10518778wmj.37.1552910843960; Mon, 18 Mar 2019 05:07:23 -0700 (PDT)
Received: from localhost (port-92-193-68-206.dynamic.qsc.de. [92.193.68.206]) by smtp.gmail.com with ESMTPSA id l3sm5583409wrr.25.2019.03.18.05.07.22 for <openpgp@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Mar 2019 05:07:23 -0700 (PDT)
From: Justus Winter <justuswinter@gmail.com>
To: openpgp@ietf.org
Date: Mon, 18 Mar 2019 13:07:21 +0100
Message-ID: <871s3475dy.fsf@europa.jade-hamburg.de>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/2FQUVt6Dw8XAsaMELyo5BNlh2pM>
Subject: [openpgp] Deprecating compression support
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: Mon, 18 Mar 2019 12:07:27 -0000

Hello,

I propose to deprecate compression support in OpenPGP.  The reasons
for this are:

  - Compression makes it impossible to reason about the size of a
    decrypted message, requiring the use of a streaming interface even
    for seemingly small messages, e.g. emails.  Experience has shown
    that downstream users struggle with the correct use of streaming
    interfaces.

  - Compression allows the construction of quines.

  - Compression interacts badly with encryption, see e.g. CRIME,
    BREACH, and hiding of EFAIL-style CFB gadgets [0].

  - The downstream application is in a better position to decide whether
    and how to compress data that is then encrypted using OpenPGP.

  - Compression make the standard more complex, and enlarges the
    trusted computing base of implementations.

I realize that we cannot suddenly drop decompression support, but I
would suggest to stop emitting compressed data packets.  If this
proposal gathers traction, I would be happy to suggest a change to the
standard.

Cheers,
Justus

0: Section 5.3 of https://efail.de/efail-attack-paper.pdf