Re: Eric Rescorla's Discuss on draft-ietf-httpbis-encryption-encoding-08: (with DISCUSS and COMMENT)

Eric Rescorla <ekr@rtfm.com> Fri, 14 April 2017 12:55 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B7B6E12EC6E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 14 Apr 2017 05:55:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.4
X-Spam-Level:
X-Spam-Status: No, score=-6.4 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.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 Uw1WZr2y3nze for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 14 Apr 2017 05:54:59 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 087BC12EC6D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 14 Apr 2017 05:54:51 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cz0gx-0004G1-P4 for ietf-http-wg-dist@listhub.w3.org; Fri, 14 Apr 2017 12:51:11 +0000
Resent-Date: Fri, 14 Apr 2017 12:51:11 +0000
Resent-Message-Id: <E1cz0gx-0004G1-P4@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <ekr@rtfm.com>) id 1cz0gt-0004FB-Pd for ietf-http-wg@listhub.w3.org; Fri, 14 Apr 2017 12:51:07 +0000
Received: from mail-yb0-f173.google.com ([209.85.213.173]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <ekr@rtfm.com>) id 1cz0gl-0005MC-3G for ietf-http-wg@w3.org; Fri, 14 Apr 2017 12:51:01 +0000
Received: by mail-yb0-f173.google.com with SMTP id i124so19053456ybc.3 for <ietf-http-wg@w3.org>; Fri, 14 Apr 2017 05:50:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YW0zT47UXQVm3aHcRdz+3kKDoTjzTDFNe0pTD29llWo=; b=Clj5PiUbPUbRCJoG78A/tC2KBVoSPZLY1VaR8BkzcrMNMphtwde7u4OkEd3+/uK8Q9 HDHK3PhYn7sS/DWAlc9tiocpSy2eJCPqYBVJP6nExONzMIAgEEbGiQxs6WmRRtjWjshp H7S4lum3ZTjOy4E9fyFHL2qnm+CbEws3qTSy237RhtDY8JsqZXC02MnC8E4rG5A5v1z1 2txqH6miKpwjvmD3O/aSCfyR1xDWtXO4rKzIIbe59NzdB4Xk23fgNfNzgrzsZQBdVzEa 2/oWPbVdUnfewHXfExQtvPx0XkatjwO6LsKUUQFAe/7T1bwcXkXuMgPNZ11oDyV0QbAX MmnA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YW0zT47UXQVm3aHcRdz+3kKDoTjzTDFNe0pTD29llWo=; b=SWQPUuW3ksd+Te7UIWSONS4LyTiL8qZM1Phc4YO7ZTZrP+ghxiLp2RxrCHLrU20Sey 5Rp+Y7PSwfu+TTqznUt+/YFbg48E5erTU/IZrmZ4meyHRnidJEc3vzvi4a2WphWuu6E+ 1/WBYQT4YVr9oLz6EIJINqa8xq8EKSgFsQaLmcSL+F9DaMN+VKmUCe28njgUrWIybYga 1Iq3qn3NVAKZFTPNnAY4rhdoBNl8Kwd7baPmbLqNqrFQgCrwZUD4Qwx5g+8Ush6lCKox U0xM3N2qVZPKCqwB2qnuP2ub4XtN+4LkyEGftuRrDl3i2iVhH0P6dtwspYjxZR5IpQoN 6a3Q==
X-Gm-Message-State: AN3rC/5/Gqrx6/9BT68flkSCa85ZdPXEhCmBCQ6+NcPlPCGZ60VkIv+n LkICTSvQusiTA//wgGNqhGAuqI40HKhP
X-Received: by 10.37.89.68 with SMTP id n65mr2143060ybb.65.1492174232901; Fri, 14 Apr 2017 05:50:32 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.129.113.7 with HTTP; Fri, 14 Apr 2017 05:49:52 -0700 (PDT)
In-Reply-To: <MEXPR01MB160767A203EFDBAA13F6B9A3E5020@MEXPR01MB1607.ausprd01.prod.outlook.com>
References: <MEXPR01MB160767A203EFDBAA13F6B9A3E5020@MEXPR01MB1607.ausprd01.prod.outlook.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Fri, 14 Apr 2017 05:49:52 -0700
Message-ID: <CABcZeBNM7tJK6ihGMYAYgxZtpX-esFwzOT+3u9Ty--R41FPhpg@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a1140f87418978b054d1fe348"
Received-SPF: none client-ip=209.85.213.173; envelope-from=ekr@rtfm.com; helo=mail-yb0-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-6.0
X-W3C-Hub-Spam-Report: AWL=-0.564, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cz0gl-0005MC-3G 2012186cfc8faaa211224c4b6f272a3a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Eric Rescorla's Discuss on draft-ietf-httpbis-encryption-encoding-08: (with DISCUSS and COMMENT)
Archived-At: <http://www.w3.org/mid/CABcZeBNM7tJK6ihGMYAYgxZtpX-esFwzOT+3u9Ty--R41FPhpg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33813
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Apr 12, 2017 at 10:31 PM, Manger, James <
James.H.Manger@team.telstra.com> wrote:

> Eric said:
>
> ----------------------------------------------------------------------
>
> DISCUSS:
>
> ----------------------------------------------------------------------
>
>
>
>    The "aes128gcm" content coding uses a fixed record size.  The final
>
>    encoding consists of a header (see Section 2.1) and zero or more
>
>    fixed size encrypted records; the final record can be smaller than
>
>    the record size.
>
>
>
> This restriction seems to be an artifact of your previous design which
>
> used short records as an end marker.  With the new padding delimeter
>
> structure (which I note is isomorphic to the TLS 1.3 structure), I'm
>
> not seeing any reason to require that the records be fixed length (as
>
> they are not in TLS). I didn't see any discussion of this point in the
>
> thread where this structure was designed, so I'd like to get
>
> confirmation that the WG considered this point and decided to continue
>
> with the above restriction. I'll clear this discuss upon either such
>
> confirmation
>
> or removal of the restriction.
>
> ----------------------------------------------------------------------
>
>
>
>
>
> The fixed record size is also necessary to be able to split the body into
> records. Records are simply concatenated together. There are no other
> boundary markers or per-record size fields. The fixed size allows you to
> read the header then skip, say, 1 MB into the content and still determine
> where the next record is so you can recover authentic plaintext from that
> point (though due to unknown padding in earlier records you might not know
> the actual offset for this plaintext).
>

OK, I somehow forgot that. I will clear my discuss.

-Ekr


>
>
>
>
> --
>
> James Manger
>
>
>