Re: [MLS] Question regarding ClientInitKey message format

Pascal Junod <pascalj@snap.com> Thu, 03 October 2019 08:09 UTC

Return-Path: <pjunod@snapchat.com>
X-Original-To: mls@ietfa.amsl.com
Delivered-To: mls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5CBFD120825 for <mls@ietfa.amsl.com>; Thu, 3 Oct 2019 01:09:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.649
X-Spam-Level:
X-Spam-Status: No, score=-1.649 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.25, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=snap.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 C5ntNoQJUK6V for <mls@ietfa.amsl.com>; Thu, 3 Oct 2019 01:09:33 -0700 (PDT)
Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1DD69120288 for <mls@ietf.org>; Thu, 3 Oct 2019 01:09:33 -0700 (PDT)
Received: by mail-io1-xd2a.google.com with SMTP id v2so3394530iob.10 for <mls@ietf.org>; Thu, 03 Oct 2019 01:09:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=l8cmuPO8e/awMYC6GulsABKYa4vm2Kjk7KGNkCJwmLk=; b=OfCmF/LYGcpZD5QoMrcx+9sj5OjngwfnmZDqz2BCLwoIdfOhfoXB8OJ8umIX9Os4Kt lW68i1HwRF7dFiZot1udcRz4VpqNOxbd48S35U42VwziHEoU40FSUwbzz59P0dYw25xu VQWHYQ+U4842uvB0ypczKdFETl6xh8ssnuIeg=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=l8cmuPO8e/awMYC6GulsABKYa4vm2Kjk7KGNkCJwmLk=; b=PGWx/MJ9CPByjXGP604ul7PDAOtCE74nMABy37h5HGFEWoOQPVIjNCnoxN0HhKyctZ jcqOjP8Y1e0bTBwTlRc/yIfLJB5tlG4o5ZixxbzviezKu2/Pzk+yEhPRgB2vYUw9Osfx dnQs7zSnHV7y7oKsBU0SVE1LO37naqG6QbRsPBhYqUmfzJN9z1vJKBhsm8Z3RMsXNCKo Hf1+IMH9Uv/WMj3tcGRSMJb48qLD4pxotUOIK0rYj7d9akrHxICETxrHk5gzgQDScuj6 JSXxVg0+xIhzTt25LoCj2psTOddMB0nc83nw5DGLBdVcdzzZ3LIqP/CXskHaBqp4rLs8 QoHA==
X-Gm-Message-State: APjAAAUungCderB/1hM1yBQkTHx7WrmnLSRFxmvRXaKcd6Aqw77UrYGh qjkbyenaYgDXIrxHuumTmKGdHWG8BoRBegT/DEiJJXO9OLA=
X-Google-Smtp-Source: APXvYqxp9TuOYSPwsgFKXwZ/IP5aTcfI4PPwqhlf2J20Ve+CsLvwq5dHYJy2L/CONfyt/IOzudtlYwtg0nY9EEeCmpU=
X-Received: by 2002:a05:6602:2241:: with SMTP id o1mr6879456ioo.129.1570090171848; Thu, 03 Oct 2019 01:09:31 -0700 (PDT)
MIME-Version: 1.0
References: <CAPEKH5ZhcAgUP-mNU=E1+C0z4sPRLYDX=woKdCpFd-eb-LkE-g@mail.gmail.com> <CAL02cgQ330S8gsUXwbPhhU_i7_cdaEmKKLHcff3SbLc=2tsEAQ@mail.gmail.com>
In-Reply-To: <CAL02cgQ330S8gsUXwbPhhU_i7_cdaEmKKLHcff3SbLc=2tsEAQ@mail.gmail.com>
From: Pascal Junod <pascalj@snap.com>
Date: Thu, 03 Oct 2019 10:09:20 +0200
Message-ID: <CAPOUjt6FoPN6m3nTk5xq1kyfbtGA8kWsukAJ1AiC1SDCMq+ykA@mail.gmail.com>
To: Messaging Layer Security WG <mls@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f58d430593fd1a2b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/mls/I9jBMiQIeTHvVIQHL-FQgNjMcvE>
Subject: Re: [MLS] Question regarding ClientInitKey message format
X-BeenThere: mls@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Messaging Layer Security <mls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mls>, <mailto:mls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mls/>
List-Post: <mailto:mls@ietf.org>
List-Help: <mailto:mls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mls>, <mailto:mls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Oct 2019 08:24:03 -0000

Thank you Benjamin and Richard for your quick and clear answers ! I had
missed the update in the master version and indeed, §3.4 of RFC 8446 is
clear about the byte lengths.

On Wed, Oct 2, 2019 at 11:38 PM Richard Barnes <rlb@ipv.sx> wrote:

> In addition to what Benjamin said, I think you've misunderstood the
> meaning of the length indications.  The lengths indicate the size in
> *bytes*, not in *entries*.  So the ciphersuites field can hold 128 2-byte
> ciphersuites, and the init_keys can hold however many public keys will fit
> in 65535 bytes.
>
> But as Benjamin said, this has all been obsoleted by more recent changes.
>
> --Richard
>
> On Wed, Oct 2, 2019 at 4:17 PM Pascal Junod <cryptopathe@gmail.com> wrote:
>
>> Hello,
>>
>> I am new to that list, so please accept my apologies in advance for any
>> wrong doings with respect to the list etiquette !
>>
>> I am currently reading draft-07 (Aug. 13, 2019) and something is not
>> clear to me with respect to the ClientInitKey format defined in section
>> 7. The array of ciphersuites cipher_suites is expected to have a length
>> of 0 to 255 ciphersuites, while the array of public keys init_keys is
>> expected to have between one and 65535 public keys. At the same time, an
>> above paragraph says that the init_array MUST have the same length as
>> the cipher_suites array. Shouldn't both of them having a length <1,255>
>> ? Or what did I misunderstand?
>>
>> Best,
>>
>> Pascal
>> _______________________________________________
>> MLS mailing list
>> MLS@ietf.org
>> https://www.ietf.org/mailman/listinfo/mls
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_mls&d=DwMFaQ&c=ncDTmphkJTvjIDPh0hpF_w&r=Ifbwlzxh3jRRAPiBazmj6w&m=mn-PKj1DJNfK2Rh9tm9kieCLTE80UiEIi1WgTqcoI88&s=7OSo9t-7f6c0oSTT_K93tm093Yw4WQb-1_a3uqKEMAc&e=>
>>
> _______________________________________________
> MLS mailing list
> MLS@ietf.org
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_mls&d=DwICAg&c=ncDTmphkJTvjIDPh0hpF_w&r=Ifbwlzxh3jRRAPiBazmj6w&m=mn-PKj1DJNfK2Rh9tm9kieCLTE80UiEIi1WgTqcoI88&s=7OSo9t-7f6c0oSTT_K93tm093Yw4WQb-1_a3uqKEMAc&e=
>