Re: aes128gcm: is the 1st example wrong?

Julian Reschke <julian.reschke@gmx.de> Mon, 13 February 2017 08:13 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 310021294D8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 13 Feb 2017 00:13:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.402
X-Spam-Level:
X-Spam-Status: No, score=-6.402 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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
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 Ze54rs2H_7jT for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 13 Feb 2017 00:13:56 -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 12F33129416 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 13 Feb 2017 00:13:55 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cdBio-0001j2-TF for ietf-http-wg-dist@listhub.w3.org; Mon, 13 Feb 2017 08:10:54 +0000
Resent-Date: Mon, 13 Feb 2017 08:10:54 +0000
Resent-Message-Id: <E1cdBio-0001j2-TF@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 1cdBik-0001iH-3j for ietf-http-wg@listhub.w3.org; Mon, 13 Feb 2017 08:10:50 +0000
Received: from mout.gmx.net ([212.227.17.21]) 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 1cdBid-0000jo-7i for ietf-http-wg@w3.org; Mon, 13 Feb 2017 08:10:44 +0000
Received: from [192.168.178.20] ([93.217.121.25]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LiHc7-1bzzD71lzv-00nOmY; Mon, 13 Feb 2017 09:10:02 +0100
To: "Manger, James" <James.H.Manger@team.telstra.com>, Martin Thomson <martin.thomson@gmail.com>
References: <SYXPR01MB1615D5823473E6A9B5F0C80DE57C0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnWE38wbhKfp+5nF1hfn7qH4-6Uk4QMGBKgGL6-f_em_KA@mail.gmail.com> <1459eb07-f8cb-ff90-6101-be05f80c76aa@gmx.de> <CABkgnnVVc3OvJh1ukTuaFmrbOLgEiVWSqfKGP74ct=TKxpZxTg@mail.gmail.com> <SYXPR01MB1615A9EA6825C721A3ACCEA9E5460@SYXPR01MB1615.ausprd01.prod.outlook.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <daa227a4-e2b7-f9cc-7468-b1f2ebfc69c1@gmx.de>
Date: Mon, 13 Feb 2017 09:09:59 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <SYXPR01MB1615A9EA6825C721A3ACCEA9E5460@SYXPR01MB1615.ausprd01.prod.outlook.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:6D5/7DsKTs+lpfHPirr9hQQpX8DUqUqYIF1gYUyAi5mP5t4lpNG kMIL/QFb6VUCD2z2vzJRKoLy7FLacrIqjqcY1YjEQVFzidRjghwe8bylK1TmAPluXBwXaJL jYCUerj0g5TZGC/LQaPspmUyCbhm2/FyCZLE+z37es517tn2T6DJ72prmKWcVqjLNy+0Zx3 mrRiDqT8+B0xZ3imtCGSw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:5HJxi1UO4hU=:RcLfbiI9oGX28JvuvNOSL5 cmERA/iyhW/t7D6qeIJZr//rCR9l1risaszPJxoGm1iixai00//dlsBwn4xOE9jccASzcBptB NcZS1YFt4m8GT2mc1GJTmvz/aEMGbhoBO46V9+andfFqBgdBCVNANnMITnYKiyblBWdM6hSHn xIX3b/e5gYbPnfPIX7CJT7kac+/DhR1LGM3NTMPY/x/CMGZHi7XOn7xf0TlIo2gLB4hjxzkUj a2DWJVigs0vKtEhLJOPBJZ8USzrUesGu3vimjCaU8UqRcyVW/eao/CnmemW1bBRu/9ut3Gv2p m7U0mcHWAjSMAnfN4Uh0h3UQ0dkYXToTBZQO9VvrVjt2sUrImHGQbyG0fyYqdTLI7oC58CxLd akC5L/xDJwOVCm9x8LNaT65GRPjiN87DrwnRLniUHlEgoeCrWLf+3FB0sqYCi+qEzEBRqXHFr Ojf0v8R/obvpv3Hzdk2AS3kgRSKzt85ZsdQY/BDSwb4slWVSmgFodJVSquZs39rGCudwYdF2r tVGbOOA1GRskyeKCb1CcRT0qkae3Bc4KTv+u9zrGew9hL03aVo3BNtoAGDGeXmsjQVcRzL+su Rd+mqJTl/2TSJFyp9ix2ChRlThZiB0UBI7SmFmS/KmpkO6bowlRiUn+FYyGeVwKO7OWpgO0Bm WdOtExPp6JtsV+5X3W6SCprexJbhqN7sGeh3itgU5iToFUg78qUgpvvGWWpov5PhfeNeW9oMa fMURv5Nkj1JF0uN4PNlVqvQKvatkV2PeolkWaiNzNYgqOGnh1UNCv4XvFh8Qhcy2JYgeXcxK4 yVYEFi0
Received-SPF: pass client-ip=212.227.17.21; 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.230, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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 1cdBid-0000jo-7i db97d77d5f43862bcdd378b064764966
X-Original-To: ietf-http-wg@w3.org
Subject: Re: aes128gcm: is the 1st example wrong?
Archived-At: <http://www.w3.org/mid/daa227a4-e2b7-f9cc-7468-b1f2ebfc69c1@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33479
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 2017-02-13 00:41, Manger, James wrote:
> The padding scheme has also been updated (from <padlen><data><0..> to <data><1|2><0...>). So you need new code, Julian.

Ack.

So... where do I get the padding length from under the new format?