[TLS] TLS1.3 HkdfLabel - value of label<0..6> ?

M K Saravanan <mksarav@gmail.com> Sun, 31 March 2019 12:39 UTC

Return-Path: <mksarav@gmail.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BB8B312013D for <tls@ietfa.amsl.com>; Sun, 31 Mar 2019 05:39:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
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=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 CLGQPwFg7X2z for <tls@ietfa.amsl.com>; Sun, 31 Mar 2019 05:39:01 -0700 (PDT)
Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) (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 94C7912014C for <tls@ietf.org>; Sun, 31 Mar 2019 05:39:00 -0700 (PDT)
Received: by mail-lf1-x143.google.com with SMTP id m13so4327160lfb.6 for <tls@ietf.org>; Sun, 31 Mar 2019 05:39:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=jlaZtWS7p8LqLX6XRddPM3s1foTNXMwV2oZmtp6Svls=; b=jTusNtYoyCYwLViaQUf8HuyRJco5VK8R/xf33vNE5g2+I92+UzJpNuZBnOjNgodYTg h9I+kWqlh3JdD5CGmdkVjxLLOp5oL1lwp9WsYHYOzT6W1qB+tM1scknC45fGpLwZqyHl qaClWFMhTeZUxrET4D9Ddc+6rXkr6wanIY5RoE/8HtOWo64wtue5hbz+PzKIo8mbvRae 1DLaSiFc+2fxrdxvFGf5xZXwoyEiM7qX9CcL4hFac9fgAAqjs675lowC0ezFW8QPWrQq 5AJGvcPc/BADPtyZGFGgCbK2qWW63+MYi/Uug15dzj4B29VwbKhGx2s3pg/dGIZoiNjy MOUA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=jlaZtWS7p8LqLX6XRddPM3s1foTNXMwV2oZmtp6Svls=; b=rJKGFlp0uR2gO4loKjG/nlEMY3SfdSo0tlSUPOHmdWWBBtKgoTsFlQhConOpBru9UM 9+7MjA4/NZyrorqw0/yUyoFIiCTonjwKgtJV5ClaruNmbzW5Y8E6gUV11KrzFL5PvwMw pCA6hWxJrHd2vOEIeBj+yTUq4T4PGW9b9ye59KwbQvYLN4hNK0TIGPEGt8Yivr3zy0DW OL/pbqzRN0lVw59YIxIrYdQ1C9I88Lw6xrwIhEe3LDW01aoOzNEDmnkP08sd7qnFjrxm 21SpRNySnOzoq15pG6u10B17YJXoFdKtHcNunmIJPQc5F/TxUIrqOewdI8TjIUncwTJY sqFg==
X-Gm-Message-State: APjAAAVmJ9IpASRsxrWa88DD5I2bxCfX7RybQwfjVlXn9xhI1OJ3dr8X puLlU68Kn6RCZd03ui+E835/rdb1YMm7QZlQgJUL7yoa
X-Google-Smtp-Source: APXvYqzZalPeBE5/KIVGIP4aVzlyjQ7wkrwUI9CpMPsowwTaeA8pze4zYLglsve9oYvSc4TEHW1gC85uBPo1HSNLHlM=
X-Received: by 2002:a19:ec14:: with SMTP id b20mr16216195lfa.55.1554035938322; Sun, 31 Mar 2019 05:38:58 -0700 (PDT)
MIME-Version: 1.0
From: M K Saravanan <mksarav@gmail.com>
Date: Sun, 31 Mar 2019 20:38:47 +0800
Message-ID: <CAG5P2e-M8qAWzUjtz3fbAOOc6xmPNy19NMS2d6yFCHOegF8t8w@mail.gmail.com>
To: tls@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/xFw2A_UKY5aMYpeyHjrbDBldF2Q>
Subject: [TLS] TLS1.3 HkdfLabel - value of label<0..6> ?
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 31 Mar 2019 12:39:03 -0000

Hi,

https://tools.ietf.org/html/rfc8446
============
7.1.  Key Schedule

   The key derivation process makes use of the HKDF-Extract and
   HKDF-Expand functions as defined for HKDF [RFC5869], as well as the
   functions defined below:

       HKDF-Expand-Label(Secret, Label, Context, Length) =
            HKDF-Expand(Secret, HkdfLabel, Length)

       Where HkdfLabel is specified as:

       struct {
           uint16 length = Length;
           opaque label<7..255> = "tls13 " + Label;
           opaque context<0..255> = Context;
       } HkdfLabel;
============

In this struct, what is the value of label<0..6>?

with regards,
Saravanan