Re: aes128gcm: is the 1st example wrong?
Daurnimator <quae@daurnimator.com> Thu, 16 February 2017 01:09 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 9069E129B91 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 15 Feb 2017 17:09:47 -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 (1024-bit key) header.d=daurnimator.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 qIgtbXS_d0gv for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 15 Feb 2017 17:09:46 -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 84F7F12960A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 15 Feb 2017 17:09:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ceAY5-0007JE-NF for ietf-http-wg-dist@listhub.w3.org; Thu, 16 Feb 2017 01:07:53 +0000
Resent-Date: Thu, 16 Feb 2017 01:07:53 +0000
Resent-Message-Id: <E1ceAY5-0007JE-NF@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 <quae@daurnimator.com>) id 1ceAY1-0007Hh-C1 for ietf-http-wg@listhub.w3.org; Thu, 16 Feb 2017 01:07:49 +0000
Received: from mail-it0-f49.google.com ([209.85.214.49]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <quae@daurnimator.com>) id 1ceAXs-0003gn-DE for ietf-http-wg@w3.org; Thu, 16 Feb 2017 01:07:43 +0000
Received: by mail-it0-f49.google.com with SMTP id c7so83546770itd.1 for <ietf-http-wg@w3.org>; Wed, 15 Feb 2017 17:07:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daurnimator.com; s=daurnimator; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=N8TeW/VLeQ8FE9xoJ23f9d9bmwrEt/5SUrs599i1WeI=; b=MpDfRdJ+Cwjwv92E/ydjL6kFYFF4WgkDufa/IYnBKDe2hXBSPCRhkhi83/803uvHIr d1QRMyDdvi6ZJLgtUMA+mA0KdDXxl/2z0p9S7pl8uA29/ybERd2ZVauNQGyljFOmCBZn YvZe3GVdeXCzgHIKdrwTfXsY+sjBsZGwpCook=
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=N8TeW/VLeQ8FE9xoJ23f9d9bmwrEt/5SUrs599i1WeI=; b=jp2TwARaOAH0MD6RSBKSgHoGN1xeJbvnyxPYB5L9WiY0CsmC8jf8xA/sgriu549hLF D/kSd/OL7lEnXOZwBa0hFjezo25Dt9T2v9apE2zw/o79rlpDvF6yQ+aciHt66xiINs5I nxm5AYJn1GM/6jSl0SCYAR/563knjbWA6LaA789ezUWXzhNRH3xBliHvapuEk2qxFJjc N9LKF8LW3iToaQtvswLyVHPVlP3oN33s+U7FVkRBcZI2cl9+5SM6OBWhE2pK9mkhag5Y m46096j1PXFzxX+cZNzNypGhZjnmErlWDmXiJTrLGCe6z8Vf7QO0jTm1sDocWcgnAN4b LJGw==
X-Gm-Message-State: AMke39kuS+tIVzPbtqnK6t6JRXhz+BjpyfwOzQubp4b6eAycT5VAaYnlYGd1eacsOkV3Xg==
X-Received: by 10.36.57.10 with SMTP id l10mr95920ita.88.1487207234109; Wed, 15 Feb 2017 17:07:14 -0800 (PST)
Received: from mail-it0-f50.google.com (mail-it0-f50.google.com. [209.85.214.50]) by smtp.gmail.com with ESMTPSA id n134sm2538138itg.19.2017.02.15.17.07.13 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 17:07:13 -0800 (PST)
Received: by mail-it0-f50.google.com with SMTP id x75so8521136itb.0 for <ietf-http-wg@w3.org>; Wed, 15 Feb 2017 17:07:13 -0800 (PST)
X-Received: by 10.36.165.79 with SMTP id w15mr76904iti.77.1487207232820; Wed, 15 Feb 2017 17:07:12 -0800 (PST)
MIME-Version: 1.0
Received: by 10.107.185.85 with HTTP; Wed, 15 Feb 2017 17:07:12 -0800 (PST)
In-Reply-To: <CABkgnnUxtcNnrs=O3bVNbuMnLuX6HpHNG-bkhDQn7ZZmzvuiiA@mail.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> <daa227a4-e2b7-f9cc-7468-b1f2ebfc69c1@gmx.de> <CABkgnnUxtcNnrs=O3bVNbuMnLuX6HpHNG-bkhDQn7ZZmzvuiiA@mail.gmail.com>
From: Daurnimator <quae@daurnimator.com>
Date: Thu, 16 Feb 2017 12:07:12 +1100
X-Gmail-Original-Message-ID: <CAEnbY+dfBAqAMfm5Y0gMYCSPT4mEfR11C4tLdyOSYsf6R1865g@mail.gmail.com>
Message-ID: <CAEnbY+dfBAqAMfm5Y0gMYCSPT4mEfR11C4tLdyOSYsf6R1865g@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Julian Reschke <julian.reschke@gmx.de>, "Manger, James" <James.H.Manger@team.telstra.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: none client-ip=209.85.214.49; envelope-from=quae@daurnimator.com; helo=mail-it0-f49.google.com
X-W3C-Hub-Spam-Status: No, score=-5.4
X-W3C-Hub-Spam-Report: AWL=-1.202, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1ceAXs-0003gn-DE 406cbd30dcc8f531be2e8bffddc41eb3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: aes128gcm: is the 1st example wrong?
Archived-At: <http://www.w3.org/mid/CAEnbY+dfBAqAMfm5Y0gMYCSPT4mEfR11C4tLdyOSYsf6R1865g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33547
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 13 February 2017 at 19:53, Martin Thomson <martin.thomson@gmail.com> wrote: > On 13 February 2017 at 19:09, Julian Reschke <julian.reschke@gmx.de> wrote: >> So... where do I get the padding length from under the new format? > > > You count from the end of the plaintext. All the zeros are padding. > The first non-zero octet (starting from the end) is the end of the > padding and should be 0x01 (regular) or 0x02 (last record). Disallowing 8bit data seems undesireable.
- aes128gcm: is the 1st example wrong? Manger, James
- Re: aes128gcm: is the 1st example wrong? Martin Thomson
- Re: aes128gcm: is the 1st example wrong? Julian Reschke
- Re: aes128gcm: is the 1st example wrong? Martin Thomson
- RE: aes128gcm: is the 1st example wrong? Manger, James
- Re: aes128gcm: is the 1st example wrong? Julian Reschke
- Re: aes128gcm: is the 1st example wrong? Martin Thomson
- Re: aes128gcm: is the 1st example wrong? Daurnimator
- RE: aes128gcm: is the 1st example wrong? Manger, James
- Re: aes128gcm: is the 1st example wrong? Daurnimator