Re: [hybi] It's time to ship

Bjoern Hoehrmann <derhoermi@gmx.net> Wed, 12 January 2011 20:26 UTC

Return-Path: <derhoermi@gmx.net>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 784213A69CA for <hybi@core3.amsl.com>; Wed, 12 Jan 2011 12:26:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.556
X-Spam-Level:
X-Spam-Status: No, score=-3.556 tagged_above=-999 required=5 tests=[AWL=-0.957, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ll5h1otHo0L7 for <hybi@core3.amsl.com>; Wed, 12 Jan 2011 12:26:14 -0800 (PST)
Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.22]) by core3.amsl.com (Postfix) with SMTP id B953B3A69A4 for <hybi@ietf.org>; Wed, 12 Jan 2011 12:26:13 -0800 (PST)
Received: (qmail invoked by alias); 12 Jan 2011 20:28:32 -0000
Received: from dslb-094-223-191-191.pools.arcor-ip.net (EHLO hive) [94.223.191.191] by mail.gmx.net (mp032) with SMTP; 12 Jan 2011 21:28:32 +0100
X-Authenticated: #723575
X-Provags-ID: V01U2FsdGVkX1+8cpIsj/e8Vq6NlqxPaqN4CAmPyvZp8N1f0dhwB0 e32qW5+ES4wTm8
From: Bjoern Hoehrmann <derhoermi@gmx.net>
To: Adam Barth <ietf@adambarth.com>
Date: Wed, 12 Jan 2011 21:28:28 +0100
Message-ID: <sk1si6dvl4s1lmroa5qdt0ra2erd5066ri@hive.bjoern.hoehrmann.de>
References: <AANLkTim2VGfH2FiJ4iH85wYiuXNKQ1Arh1C1Kg4M58Fs@mail.gmail.com>
In-Reply-To: <AANLkTim2VGfH2FiJ4iH85wYiuXNKQ1Arh1C1Kg4M58Fs@mail.gmail.com>
X-Mailer: Forte Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Y-GMX-Trusted: 0
Cc: Hybi <hybi@ietf.org>
Subject: Re: [hybi] It's time to ship
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Jan 2011 20:26:15 -0000

* Adam Barth wrote:
>http://www.ietf.org/id/draft-abarth-thewebsocketprotocol-01.txt

This says:

  The masked-data is the clear-text frame encrypted under AES-128-CTR
  (see [TODO: Cite AES-128-CTR]) using the masking-key as the key and
  the initial counter value equal to the masking-nonce followed by 28
  zero octets.

  For example, octet i of the masked-data is computed from octet i of
  the clear-text frame as follows:

    initial-counter = masking-nonce << 96
    masked-octet-i = clear-text-octet-i XOR AES_k(initial-counter + i)

  where AES_k is AES keyed with the masking-key.

Could you give a reference for AES-128-CTR and explain the example?
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/