Re: draft-ietf-httpbis-encryption-encoding-07, "2. The “aes128gcm” HTTP Content Coding"

Martin Thomson <martin.thomson@gmail.com> Mon, 20 February 2017 23:27 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 95ADF1293F8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 20 Feb 2017 15:27:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.502
X-Spam-Level:
X-Spam-Status: No, score=-6.502 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=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] 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 QsTPDWxMmULS for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 20 Feb 2017 15:27:53 -0800 (PST)
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 6C30D126DFB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 20 Feb 2017 15:27:53 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cfxJs-0005xH-CO for ietf-http-wg-dist@listhub.w3.org; Mon, 20 Feb 2017 23:24:36 +0000
Resent-Date: Mon, 20 Feb 2017 23:24:36 +0000
Resent-Message-Id: <E1cfxJs-0005xH-CO@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 <martin.thomson@gmail.com>) id 1cfxJk-0005wC-TC for ietf-http-wg@listhub.w3.org; Mon, 20 Feb 2017 23:24:28 +0000
Received: from mail-qk0-f178.google.com ([209.85.220.178]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cfxJe-0001X4-SH for ietf-http-wg@w3.org; Mon, 20 Feb 2017 23:24:23 +0000
Received: by mail-qk0-f178.google.com with SMTP id x71so42597799qkb.3 for <ietf-http-wg@w3.org>; Mon, 20 Feb 2017 15:24:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SioS6nz7Fp+U6tfqIDmNKHgP+xItGlCDiJE276YE/rw=; b=E/h8Q3ZosT8flb8nwL67hvwK1XMlfkh/hb/Zh8Ne8/sx5B5wbXXt9XcAKyhj90OvIa 6NR6Zauc2ny4xZPRIS0wjoUOyqGplErRyOGpy/r9yh5DXWYkT4H1HfG+UfLwEHA2aORv AbJJcm+SwhKbd6gaNuo2eCvvLKwW20vMkyw2vEbpGrNr1FE9mKLFnWsI5KFFp4AwK9L0 5oX2HEPUMULIP/B11VflJxq2F92nDqEhIqDYUV0ML5ORE8MHOstHUcr/0tL3q8lcISsQ gx66XofGot4NAbTDcJevpl/LARNYh9sK1Bk6TXh/OIq56/5FBJZIokhbyzPcyCn4MlKU IzAQ==
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=SioS6nz7Fp+U6tfqIDmNKHgP+xItGlCDiJE276YE/rw=; b=ocyaRwi8CBWnSHlEbYD0YLoQTVZh9vSo0pBwqo1vgmhXrh6YdvUXXgAujykK1tDeXf OLn7nEO4EMIVjXPNjNRSWDQnDjoQZTFtRQoOMyh1jbTM3iTVmI5N777hLpURz6DNL2Fl G4PysXAjX4jFUnX91RZHmKUEk5de8hENP0ZOOvsjYHpDaE0mbDqrpqVrMZZs2rEyomdv YrNd09mSFsTLVExOeVmf5/+A6u8B+9adXPKfO1wq9NIGnDkFXr1Dg5uh/xen9YQjCEQ4 67QfOR539sR7oOdfjKE36e+v3/xwThFm/SD+bx2MiKSPIQIAxVp96J1GvErpGKu7U+s+ S3fw==
X-Gm-Message-State: AMke39mWuF18DeJbMk9wtlJ3sRdrfKIpTOJSiKaSoz/TIZXSp+fPyFF7m7DJvU0/7wWABP69Mq42f8haJ8AmcQ==
X-Received: by 10.55.185.131 with SMTP id j125mr21855564qkf.115.1487633037013; Mon, 20 Feb 2017 15:23:57 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Mon, 20 Feb 2017 15:23:56 -0800 (PST)
In-Reply-To: <08e8cdc2-ca3c-1a95-133e-446418605429@gmx.de>
References: <08e8cdc2-ca3c-1a95-133e-446418605429@gmx.de>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 21 Feb 2017 10:23:56 +1100
Message-ID: <CABkgnnUgxxvOZ17k__fdVhfSjEA5J-C2v0AmKw3dz+xqPULRGA@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.220.178; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f178.google.com
X-W3C-Hub-Spam-Status: No, score=-4.8
X-W3C-Hub-Spam-Report: AWL=-1.162, BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=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, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cfxJe-0001X4-SH a18b77e04e829205f6646adffafeac35
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-encryption-encoding-07, "2. The “aes128gcm” HTTP Content Coding"
Archived-At: <http://www.w3.org/mid/CABkgnnUgxxvOZ17k__fdVhfSjEA5J-C2v0AmKw3dz+xqPULRGA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33588
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>

That's a good clarification.  I have made the change to the editor's
copy in 8e4976a8ebc.


On 21 February 2017 at 01:33, Julian Reschke <julian.reschke@gmx.de> wrote:
> Given the fact that two people did not get how to find the padding delim on
> decryption, I'd suggest something like the change below:
>
> OLD:
>
>    Each record contains a single padding delimiter octet followed by any
>    number of zero octets.  The last record uses a padding delimiter
>    octet set to the value 2, all other records have a padding delimiter
>    octet value of 1.  A decrypter MUST fail if the unencrypted content
>    of a record is all zero-valued.  A decrypter MUST fail if the last
>    record contains a padding delimiter with a value other than 2; a
>    decrypter MUST fail if any record other than the last contains a
>    padding delimiter with a value other than 1.
>
> NEW:
>
>    Each record contains a single padding delimiter octet followed by any
>    number of zero octets.  The last record uses a padding delimiter
>    octet set to the value 2, all other records have a padding delimiter
>    octet value of 1.
>
>    On decryption, the padding delimiter is defined to be the last non-
>    zero valued octet of the record.  A decrypter MUST fail if the record
>    contains no non-zero octet.  A decrypter MUST fail if the last record
>    contains a padding delimiter with a value other than 2 or if any
>    record other than the last contains a padding delimiter with a value
>    other than 1.
>
> Best regards, Julian
>