Re: Change to padding in encryption -- examples look ok

Martin Thomson <martin.thomson@gmail.com> Tue, 31 January 2017 07:15 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 1AF10129413 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Jan 2017 23:15:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.7
X-Spam-Level:
X-Spam-Status: No, score=-9.7 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=-3.199, 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 e5A6fpdFIGC2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Jan 2017 23:15:13 -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 E2592124281 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 30 Jan 2017 23:15:12 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cYSct-0006o7-O4 for ietf-http-wg-dist@listhub.w3.org; Tue, 31 Jan 2017 07:13:15 +0000
Resent-Date: Tue, 31 Jan 2017 07:13:15 +0000
Resent-Message-Id: <E1cYSct-0006o7-O4@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cYScq-0006nO-Ce for ietf-http-wg@listhub.w3.org; Tue, 31 Jan 2017 07:13:12 +0000
Received: from mail-qk0-f178.google.com ([209.85.220.178]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cYScj-0001du-PV for ietf-http-wg@w3.org; Tue, 31 Jan 2017 07:13:06 +0000
Received: by mail-qk0-f178.google.com with SMTP id l126so22068400qkc.1 for <ietf-http-wg@w3.org>; Mon, 30 Jan 2017 23:12:45 -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=8HSH4NzCGhXP8gGW3rEer/GzlI01OLobi+3ITu5RdUs=; b=q0MWyHe8MKHE94hy97vlkYjhXdxqUo+cHoEsAdclfggnFBgHKXX7OZWGqke7HBC8g0 hRbMGEjt0MgkB8d13a+x1SSllFjrdIU0qP3Op3Uyl1Lo5GYBeZ7EWL4iTU9pP+suaNO4 PDngay44WI0ecSyRrGucMJqbAiAQTm2Oc9/wWifXPF2vNnjhOWaoS8Dj2skMdj8gjCyH Wwba+dAAJ0Y8Q9F4dVQdVlG3/vtO+AIw27Yy8/x9ZxKWkapMrPp/wOpvMU1NzmMwuDnN dsjuuTeNDxXM23UcYLWXyH//M7E8o1f8W9vWUIh5rvocLxXZkMMQeiqeaOyDovw7ms9p Q4Ig==
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=8HSH4NzCGhXP8gGW3rEer/GzlI01OLobi+3ITu5RdUs=; b=N6Fn2SCLw2DZaFm6S2InM3o9obOW588F+eyaTVX9SnDMI8PkBI3Ot+JvAutgG6yJVG CFb+NHRrBa9uiiqmsWBD/zdbCpEYee46RWXuul1McVqrVv2vMmFow1fbCM5v3EV15cwM Mkm9O6XFA935P8688oNsI3aQqcpdRjjeSr4+H9/vF2vL+kYYT+SeEXE7lwU5izKPXzos YbgGYqrRze44t9JjPAjoGEPg+PoRIEJD1ouRcWfvq+ZHyrPMx/ATBEuwRJdh/JhRhjjw T7/HbwDq63QIO19v9LAi7lYUVdUTeWx4tjOlYtDsrkzAUAYKEepmrKIXrKLirO6YUCUF Ce7Q==
X-Gm-Message-State: AIkVDXJXTK3j5l06SCdCHYYxjgiDIzYd4AFiOUAZLjSnUO3Fpc28Q2DN06BwccwmBGoaVz5z4YUeNFWe5LFCcA==
X-Received: by 10.55.99.80 with SMTP id x77mr11869541qkb.147.1485846759709; Mon, 30 Jan 2017 23:12:39 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Mon, 30 Jan 2017 23:12:39 -0800 (PST)
In-Reply-To: <SYXPR01MB1615624CD6805FD00B64020BE54A0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB1615624CD6805FD00B64020BE54A0@SYXPR01MB1615.ausprd01.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 31 Jan 2017 18:12:39 +1100
Message-ID: <CABkgnnV8MGmB=hgTRe8ewbWevf9JCTy1ERwrn8nvxwOwavzt=Q@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
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=-5.7
X-W3C-Hub-Spam-Report: AWL=-0.223, BAYES_00=-1.9, 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: mimas.w3.org 1cYScj-0001du-PV dc2d54b72cea2223186638dac8cf9bc7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Change to padding in encryption -- examples look ok
Archived-At: <http://www.w3.org/mid/CABkgnnV8MGmB=hgTRe8ewbWevf9JCTy1ERwrn8nvxwOwavzt=Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33397
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>

Thanks for confirming so quickly James.  I've corrected the nits.

On 31 January 2017 at 18:01, Manger, James
<James.H.Manger@team.telstra.com> wrote:
> Martin Thomson wrote:
>> Based on the discussion thus far, I've put together a PR that changes how padding works.
>> https://github.com/httpwg/http-extensions/pull/283
>
> The 2 main examples in the PR are correct according to my implementation (https://id.cto.telstra.com/2017/aes128gcm).
>
>
> Typos:
> * In "JWE Mapping", "leading padding" should now be "trailing padding".
> * In "JWE Mapping", the nonce looks wrong; I guess it should be .Bcs8gkIRKLI8GeI8. to match the #explicit example.
> * In #aes128gcm, drop "a" from "octet a value of 1".
>
> --
> James Manger