Re: [hybi] Framing take IV

Douglas Otis <dotis@mail-abuse.org> Wed, 04 August 2010 16:53 UTC

Return-Path: <dotis@mail-abuse.org>
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 7BE983A6A6A for <hybi@core3.amsl.com>; Wed, 4 Aug 2010 09:53:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.318
X-Spam-Level:
X-Spam-Status: No, score=-106.318 tagged_above=-999 required=5 tests=[AWL=0.281, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 KtZcDRheZmHY for <hybi@core3.amsl.com>; Wed, 4 Aug 2010 09:53:05 -0700 (PDT)
Received: from harry.mail-abuse.org (harry.mail-abuse.org [168.61.5.27]) by core3.amsl.com (Postfix) with ESMTP id C48ED3A6A6F for <hybi@ietf.org>; Wed, 4 Aug 2010 09:53:05 -0700 (PDT)
Received: from sjc-office-nat-210.mail-abuse.org (gateway1.sjc.mail-abuse.org [168.61.5.81]) by harry.mail-abuse.org (Postfix) with ESMTP id 1909DA944AF for <hybi@ietf.org>; Wed, 4 Aug 2010 16:53:30 +0000 (UTC)
Message-ID: <4C599B09.9050405@mail-abuse.org>
Date: Wed, 04 Aug 2010 09:53:29 -0700
From: Douglas Otis <dotis@mail-abuse.org>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: hybi@ietf.org
References: <AANLkTinyrDoG5d_Ur6HVRy=SgMPjLzJtpJ++Ye=1DQdj@mail.gmail.com> <4C58BB62.5080106@caucho.com>
In-Reply-To: <4C58BB62.5080106@caucho.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] Framing take IV
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, 04 Aug 2010 16:53:06 -0000

Please keep data handling state assertions explicit,
map out future options, and retain alignment.

     0      1      2      3          -           7
+--------------------------------------------------+
| str(1)|end(1)|cmp(1)|       Op-Code(5)           |
+--------------------------------------------------+
|                 Stream ID (8)                    |
+--------------------------------------------------+
|                 Length MS (8)                    |
+--------------------------------------------------+
|                 Length LS (8)                    |
+--------------------------------------------------+
|         Data (8) * Length + Pad to 32b           |
+--------------------------------------------------+

With this structure, the Op-Code field is independent
of data handling state.  By using "End", rather than
"Continue", null injection will not terminate handling
without error.  Detecting errors improves reliability
and security.

-Doug