Re: [openpgp] Chunked OpenPGP streams

Guilhem Moulin <guilhem@fripost.org> Wed, 30 December 2015 14:28 UTC

Return-Path: <guilhem@fripost.org>
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 CB4541A882A for <openpgp@ietfa.amsl.com>; Wed, 30 Dec 2015 06:28:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.312
X-Spam-Level:
X-Spam-Status: No, score=-4.312 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, 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 Ex7JPvJwyrkY for <openpgp@ietfa.amsl.com>; Wed, 30 Dec 2015 06:28:23 -0800 (PST)
Received: from outgoing.fripost.org (giraff.fripost.org [178.16.208.44]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 19E961A8821 for <openpgp@ietf.org>; Wed, 30 Dec 2015 06:28:22 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by outgoing.fripost.org (Postfix) with ESMTP id 8790734A71A; Wed, 30 Dec 2015 15:28:21 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fripost.org; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:message-id:subject:subject :from:from:date:date; s=20140703; t=1451485701; x=1453300102; bh=+DwIK/IANZ4lOBzgXn2HHo1I7Qub+GNdYDsPwNtr8EA=; b=EO2F66cgS6Uu NgiswyMMJuW1AjVscFgAigQY3jjSpzdSxMtjQUtAxC0W5EWO14rrZoyRBKCAXvyu MgSMpMI3eMIOOH1UwGnhSbcgYaYfnGZ8V2alx6DVtCzsvkZVra4A0Gd+6ZKeWBRh MsFYaFrNVO0Wgiv673xaSb474Mad1Bo=
X-Virus-Scanned: Debian amavisd-new at fripost.org
Received: from outgoing.fripost.org ([127.0.0.1]) by localhost (giraff.fripost.org [127.0.0.1]) (amavisd-new, port 10040) with LMTP id wj7RT4znTShv; Wed, 30 Dec 2015 15:28:21 +0100 (CET)
Received: from smtp.fripost.org (mistral.fripost.org [178.16.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mistral.fripost.org", Issuer "mistral.fripost.org" (not verified)) by outgoing.fripost.org (Postfix) with ESMTPS id 36A7A34A715; Wed, 30 Dec 2015 15:28:21 +0100 (CET)
Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by smtp.fripost.org (Postfix) with ESMTPSA id C7C5F982EA6; Wed, 30 Dec 2015 15:28:13 +0100 (CET)
Received: by localhost.localdomain (Postfix, from userid 1000) id 1B4D2ADA40; Wed, 30 Dec 2015 15:28:12 +0100 (CET)
Date: Wed, 30 Dec 2015 15:28:12 +0100
From: Guilhem Moulin <guilhem@fripost.org>
To: Nils Durner <ndurner@googlemail.com>
Message-ID: <20151230142812.GA16011@localhost.localdomain>
Mail-Followup-To: Nils Durner <ndurner@googlemail.com>, openpgp@ietf.org
References: <20151230115130.GA17604@localhost.localdomain> <5683D5BA.8050208@googlemail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN"
Content-Disposition: inline
In-Reply-To: <5683D5BA.8050208@googlemail.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Archived-At: <http://mailarchive.ietf.org/arch/msg/openpgp/OCJqWw1iPxdCDo7uqyWfWwH13RU>
Cc: openpgp@ietf.org
Subject: Re: [openpgp] Chunked OpenPGP streams
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: <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: Wed, 30 Dec 2015 14:28:26 -0000

Hi,

On Wed, 30 Dec 2015 at 14:01:46 +0100, Nils Durner wrote:
>> I wonder if chunked streams could make their way to RFC4880bis instead.
>> The verification mechanism (MDC or data signature) would be added to
>> each chunk using the intermediate hash value,
> 
> I think this goes in the same direction that OAED or online
> authenticating cipher modes are being considered for - see the recording
> of the last IETF meeting at
> http://recs.conf.meetecho.com/Playout/watch.jsp?recording=IETF94_OPENPGP&chapter=chapter_1

Thanks for the pointer.  I think however that this could be useful for
detached sigs, too.  For instance assuming a remote tarball, a local
detached signature, and an OpenPGP implementation that would copy
*verified* data to the output File Descriptor, one could write

    ssh remote.example.org cat /path/to/backup |
    gpg --verify /path/to/backup.sig - |
    tar -x

without fear of race condition and without the inconvenience of creating
a temporary local file.

Cheers,
-- 
Guilhem.