Re: Stream0 Proposal: CRYPTO_HS frame encoding (Re: Stream0 Design Team Proposal)

Martin Thomson <> Thu, 24 May 2018 00:41 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 52E7312D87A for <>; Wed, 23 May 2018 17:41:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[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, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (2048-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id aBqcUrAtpkC7 for <>; Wed, 23 May 2018 17:41:41 -0700 (PDT)
Received: from ( [IPv6:2607:f8b0:4003:c0f::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 2253212751F for <>; Wed, 23 May 2018 17:41:41 -0700 (PDT)
Received: by with SMTP id 77-v6so27430880otd.4 for <>; Wed, 23 May 2018 17:41:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ajt71+OAhZ8Wf0hq+AM9VPVKkdk9QoG/pvPT1A9Xqto=; b=oi51fMWwS6c3jMB58VW/aArcyeYK8OPJH3EMagN/oWNy85AgHDQwEep9iEpHjqJ8qH 5MhbPj48xiNJoRRdjASuMuyV6Bhs2MKGjG8OaClaOTasbZtTagpZOh2sGQh7KyiB7tBd IdaFSIYb2WT6WIxlZNv3tHNSN2GvPvp0k3Mg99AI40EBqAQwB+EB+WKz1gtljYElDsTe T7s3srh1WVULa1fjq/fMG+fZPTtBMuT9Ld75dg+9Z17XeqnAzjPtFO6F2ajm4xdnXU+V F7f20DdT8A7EzIJOIMnpxnOEawKqYmu+/2sAwy/mYVQUwzHIFd0GaFvi8amYM4RAmfw4 H21g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ajt71+OAhZ8Wf0hq+AM9VPVKkdk9QoG/pvPT1A9Xqto=; b=XwITRPPfUNmq16PxW0wesfhfqdKgrD2yuP5zUifk8v323jJ49gGnZ0Rwks+MvOF/rB TsvD3C0JhGSN8RMxPiuogDLGEhVK092SKxPJHscO8U6dAVRI2D3zNh/6ioIxaddAIThy xvfIxUlmv+ObPXSv5eY3Ay+UwKx1BrH6fu5PYyn9l0oQFbeHBCb4JXEJTeI7U2LF6MQl +wk1n3ZxEkItYNO54Tb44uKNiOUrzWTW7AOZVcYnQtwlbF+znK0xOP5YLkzjFr0V3ra3 v0DtpBmWJEIih31vuegyL36lZMLbLRNWFfCRZ6XBXFIeGBUEyoow2+8VSs6uQqI9tjGz 6/jw==
X-Gm-Message-State: ALKqPwfOJNDvg+CCR1E2gx7+rxBGLzeBlQmbJLnxjb493XMgPrSoiolw H6kLqPx0rM8zKdGoLeFtss4frj2+fyU1EkSbANclHA==
X-Google-Smtp-Source: AB8JxZqruk+P3CdsnecDwgWAV8UaZhgfLJmq9EgkltT81rtgxBltRjeJCMei2VtAWvhs2UKatC6V7j/plgKzJajtZbk=
X-Received: by 2002:a9d:3ea5:: with SMTP id b34-v6mr3030705otc.283.1527122500486; Wed, 23 May 2018 17:41:40 -0700 (PDT)
MIME-Version: 1.0
References: <>
In-Reply-To: <>
From: Martin Thomson <>
Date: Thu, 24 May 2018 10:41:30 +1000
Message-ID: <>
Subject: Re: Stream0 Proposal: CRYPTO_HS frame encoding (Re: Stream0 Design Team Proposal)
To: Kazuho Oku <>
Cc: Jana Iyengar <>,, QUIC WG <>, Ian Swett <>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <>
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Thu, 24 May 2018 00:41:43 -0000

On Thu, May 24, 2018 at 10:06 AM Kazuho Oku <> wrote:
> 0x10 - 0x17: STREAM frame
> 0x18: CRYPTO_HS frame
> I think that is workable, although it makes me sad because we will
> have more conditional branches.

Yeah.  We have an extremely limited space here.  And while Jana is right
that we haven't used much yet, we're only just starting.  As for
conditionals.  Maybe.  One way to implement this is a switch statement, and
those might not suffer as badly when you consider that you also have to
dispatch to other frame handlers in the same piece of code.