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

Julian Reschke <julian.reschke@gmx.de> Mon, 20 February 2017 14:37 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 09E7E12949F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 20 Feb 2017 06:37:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.902
X-Spam-Level:
X-Spam-Status: No, score=-6.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 VYZmDxQHACw8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 20 Feb 2017 06:37:51 -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 CCBE31294ED for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 20 Feb 2017 06:37:51 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cfp2W-0000j2-0L for ietf-http-wg-dist@listhub.w3.org; Mon, 20 Feb 2017 14:34:08 +0000
Resent-Date: Mon, 20 Feb 2017 14:34:08 +0000
Resent-Message-Id: <E1cfp2W-0000j2-0L@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 <julian.reschke@gmx.de>) id 1cfp2O-0000iG-NA for ietf-http-wg@listhub.w3.org; Mon, 20 Feb 2017 14:34:00 +0000
Received: from mout.gmx.net ([212.227.15.18]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1cfp2I-0006z8-BE for ietf-http-wg@w3.org; Mon, 20 Feb 2017 14:33:55 +0000
Received: from [192.168.1.38] ([5.10.171.186]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MO7im-1clIfa1oHs-005YBb for <ietf-http-wg@w3.org>; Mon, 20 Feb 2017 15:33:26 +0100
To: ietf-http-wg@w3.org
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <08e8cdc2-ca3c-1a95-133e-446418605429@gmx.de>
Date: Mon, 20 Feb 2017 15:33:27 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:AvpTJH6dWy+8dwO+lSyOuipDlCLL6aWiiLmOVkZT37NxM/NBzts wXliYxbNkiM16/6U179GgGiq7FqzW9vefaEu8pUjzpfpzWY8sr9sMtLNBECctnk+5wa3X54 aP3iXi3KjCnbMbjOKWqafmcIlsrBiMcD8+zhcFWDka2a3lkT5DSZwQG03FqZujlBZorsqHT FleD/XW0SW1ywsGHQMCbw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:cik8114l+OY=:9jMbFoyvI2C5BocBOAVG4y ny3OnpNjEMlbgqu54VgbkHLnJXtPtM0qK0NvHsCTZ2Sy8Y+aivKwhy9GZ/yJnBwdAGkcjTHQf d79X2yMYF0C0uCf5JznfuR29i8/pNUWF/EAVz+R8ET8i6Vu2tIcMIXE1q3aHMQ7kizQBJB23B dJSUL/LbjgfNvrsj9GdK9TOlPLy0dE8Wu3ESQJnZOM8T5i+TLkfvMqzYdmoOykzhRwuDXLTKD rS5VloKanXwTAM6Gf2Mc/XqbmaQOJnMX9iohPZVsHFMO78pyR3kHXSoydLGRVyjMaVOWuqb/V B6qdpMlyX58b/TIOVU1Wgnjf76Z7IMPNYPJ/vDYYXfjGa6m/1kPsuR0tpaThFAUlJte+/hPE1 k0mkzwaGuHYcket/CT1GXJ380rCFA5Ojapj7KBNdkNSU12+khUxnl2AOWeGZmpVjqYfXzuv1S mhJfxBDmYcHIJeNIJjPT0BvJ8dZ++4LN+n8nNtyXlyAk7zM4V7ec6H08FAHnF0UVpCSWPSZET YTgrmH8Hy57cTYnkX6QxqDYMz6bLvAq3bpVAvkhecAxUReGZKL3dgWuqBaug0e9JfDW8CH6ue GLhPRvHMRycGk2xEbxcJt3k5BT6+t8uzKN13XYWoSyldTvqIIAo1M5oDhDDOlb3ISAWR5I+ry wo76WFFJS20tNld1G0B6K+p6rbp3+2T9vblciBMrfe9ldDPlL0X6Ay3YTRowCkIeYt33h1s98 xkbv68rAPZKJveCHyERE7dVk4AwVXNh2mSsol8FMMR83R3i2LfeCCJOnaw7vFsj5I/zkj6E3B pewR3Bj
Received-SPF: pass client-ip=212.227.15.18; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.3
X-W3C-Hub-Spam-Report: AWL=0.252, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cfp2I-0006z8-BE 7087f5b276155065efca6df01fec3ba1
X-Original-To: ietf-http-wg@w3.org
Subject: draft-ietf-httpbis-encryption-encoding-07, "2. The “aes128gcm” HTTP Content Coding"
Archived-At: <http://www.w3.org/mid/08e8cdc2-ca3c-1a95-133e-446418605429@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33585
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>

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