Re: [hybi] More on Payload Masking

Zhong Yu <zhong.j.yu@gmail.com> Thu, 11 November 2010 19:15 UTC

Return-Path: <zhong.j.yu@gmail.com>
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 4E0033A6983 for <hybi@core3.amsl.com>; Thu, 11 Nov 2010 11:15:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.433
X-Spam-Level:
X-Spam-Status: No, score=-2.433 tagged_above=-999 required=5 tests=[AWL=0.166, 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 ErWJLbGxV1eY for <hybi@core3.amsl.com>; Thu, 11 Nov 2010 11:15:24 -0800 (PST)
Received: from mail-wy0-f172.google.com (mail-wy0-f172.google.com [74.125.82.172]) by core3.amsl.com (Postfix) with ESMTP id 4BAE13A68BD for <hybi@ietf.org>; Thu, 11 Nov 2010 11:15:24 -0800 (PST)
Received: by wyb35 with SMTP id 35so1237734wyb.31 for <hybi@ietf.org>; Thu, 11 Nov 2010 11:15:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fp5215eFIPwbReMuBlZAzVisw/lNkwhGfSyPVr8pe5Y=; b=LV4O7ZslQ9Qf5f7SY32k+N7AGXcp9RJ3OrwkKPXkJtXwBhsf1E0UHHx9Ed3Roh6hjK 0wMKNl1XHmIlZc0HBfTkwuglhlFFtthU+/ox4en18AXvcWj0liee/4RIaGxLVObONLXq lbnqLkk9e9olawr3kj6iSflHw5rgBo580PZ0c=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=n0dFnXq+A9QBX2ECCMS89Jk2xXzVi6Wxav81Zr6A1wqmmC7B1N3kNuL9e5lZQofVVb 8iSateojT2mB1GbellvUs21DhIWV2ORIhg78fi+eJ5BGTdyhH4YWqH+RMlwcGqh8lEvo T/qFx8EvFyDYdRHkvMaqvDqi3MOsHsQXJUcU8=
MIME-Version: 1.0
Received: by 10.216.159.195 with SMTP id s45mr1114887wek.43.1289502953435; Thu, 11 Nov 2010 11:15:53 -0800 (PST)
Received: by 10.216.51.132 with HTTP; Thu, 11 Nov 2010 11:15:53 -0800 (PST)
In-Reply-To: <AANLkTi=yUpKZ0RbWSZp6y+idkKnEY0HuHwNugHj8YC8+@mail.gmail.com>
References: <AANLkTi=Q3oAM1rdqPHTLffN_yEGPCY9VM0CXPiNU4R79@mail.gmail.com> <AANLkTi=ACdGp535U_Lr3FWZbQGNLuRZSFatP7uBWtDtB@mail.gmail.com> <l5lmd6lv0dt84npcj00s1j6r20ul3sbv0f@hive.bjoern.hoehrmann.de> <AANLkTim9QaD5BKT3yvtOY=9ojKeKr8vV1SsG1s23ty=6@mail.gmail.com> <8qnmd6dgnpiq5mm1cui2eqhfkusc8c514d@hive.bjoern.hoehrmann.de> <AANLkTi=yUpKZ0RbWSZp6y+idkKnEY0HuHwNugHj8YC8+@mail.gmail.com>
Date: Thu, 11 Nov 2010 13:15:53 -0600
Message-ID: <AANLkTimxxhJ3y+t+mtN-LHD+JY6Lnt2QQBtFJM36APJk@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: John Tamplin <jat@google.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: Hybi <hybi@ietf.org>, Bjoern Hoehrmann <derhoermi@gmx.net>
Subject: Re: [hybi] More on Payload Masking
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: Thu, 11 Nov 2010 19:15:25 -0000

On Wed, Nov 10, 2010 at 9:26 PM, John Tamplin <jat@google.com> wrote:
> On Wed, Nov 10, 2010 at 10:20 PM, Bjoern Hoehrmann <derhoermi@gmx.net> wrote:
>> Going by <http://tools.ietf.org/html/draft-moskowitz-aes128-ctr-00>,
>>  To encrypt a message M, the sender partitions M into B-bit blocks
>>  M = M[1] M[2] ... M[n-1] M[n]. Each block of M is then XOR'd with
>>  an encrypted counter value: ...
>>
>> (the draft uses non-ASCII octets, I hope I replaced them correctly)
>> so this does not seem any better than XORing without involving AES.
>
> Unless you can produce a particular encrypted counter value, the
> presence of XOR doesn't change the unforgeability.

I assume we need a new counter for each WS frame?

Isn't it equivalent, but simpler, if each WS frame payload is XOR-ed
by a random 128 bits mask. The mask is different from frame to frame,
generated by the sender, and carried within the frame.

- Zhong Yu