Re: [TLS] PR #699: Simplify traffic key expansion

Kazuho Oku <kazuhooku@gmail.com> Thu, 20 October 2016 19:52 UTC

Return-Path: <kazuhooku@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 B86D5129562 for <tls@ietfa.amsl.com>; Thu, 20 Oct 2016 12:52:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 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_LOW=-0.7, 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 0i9G7kG6ND88 for <tls@ietfa.amsl.com>; Thu, 20 Oct 2016 12:52:40 -0700 (PDT)
Received: from mail-qk0-x236.google.com (mail-qk0-x236.google.com [IPv6:2607:f8b0:400d:c09::236]) (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 3F4441296BC for <tls@ietf.org>; Thu, 20 Oct 2016 12:52:39 -0700 (PDT)
Received: by mail-qk0-x236.google.com with SMTP id o68so115356991qkf.3 for <tls@ietf.org>; Thu, 20 Oct 2016 12:52:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JCreNdjGBqu3H/+bHPNWFqfLWbU4b+4cQOHHRk0Y8/8=; b=G006aug4yvgvzAz4jpxokm+6JnjRiAId341llvBaaNorNvZpThWAmaPgiPrWuen8hG 89U4XCb6kC2RVAoVJC/oCmZV5qH8g740TopAIJXmNn7/BnsvJZ4qRDFtq2z7xG5QeHhI WmDGAbtSuVbVXKeSpWplCVXf/DSDN4qHe9m9Rn7PJLqNhQkdgasCHJPxs8LqOB8HX/aw +R8SgXLmDmzyg5+m1sIjvuG4HvP61+4Q1epNeEzFYHX3Ey5jUpTRdvp467+CS9EEDnBW V4dFB5gNoW7ZEpy9+aM/fRDSRA4sJyBPcWA4DNCVh7dxV6dW+FBdsBh3DKRjYDfBNclz OdIg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JCreNdjGBqu3H/+bHPNWFqfLWbU4b+4cQOHHRk0Y8/8=; b=NtXehBfMqXyzDB+6RDRnU9cJKm/+HJHLza1pCg0gEuyMDSnR/6H6edDBd0gahddpF7 OMEJK6H0Gnej0Lv8LQmIufGO3eGVoJtBJWHUlyFDzYouyopiBvqTf5drOynYnG0ly74V moDVxCYxWn/rgC2Hn9TpPq1Zimo17dcnnqShw4SgF5fBbqG56MCrKXmv4NSRNZXDJvtD woRAuMRiU6jgTGxhsMT9aATNrlRHc/SP48lZFT37099JQPmNRBG2j6clqPpRddtvFcyy aNCg20dE8TITj+2H97HRQNUJAvKlT9JkLvwnBUD6109yejLmZ0mqXVPZXUBNYM4Zfged Latw==
X-Gm-Message-State: AA6/9RngXhzX/Rhwo53Q4vwfjNz3GC2djPFfqEMZt6xhpKnJ7t7alRc3xElX9VBz0bsxxqdT4M7B8Wh4VjLsBA==
X-Received: by 10.194.97.69 with SMTP id dy5mr1276233wjb.53.1476993158322; Thu, 20 Oct 2016 12:52:38 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.194.163.69 with HTTP; Thu, 20 Oct 2016 12:52:37 -0700 (PDT)
In-Reply-To: <CABcZeBPC2tbnFeGPKXMPCkiBW7HVNVwLaYeJTKXsCEznJXGtzw@mail.gmail.com>
References: <CABcZeBPC2tbnFeGPKXMPCkiBW7HVNVwLaYeJTKXsCEznJXGtzw@mail.gmail.com>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Fri, 21 Oct 2016 04:52:37 +0900
Message-ID: <CANatvzygaJ6e-hNGqRR=ZE4Z5JDK7zHmuv-HNCvkBG8d2-PqCw@mail.gmail.com>
To: Eric Rescorla <ekr@rtfm.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/s7cmyurGERZOCEKCw-xhkcOYX6E>
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] PR #699: Simplify traffic key expansion
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.17
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: Thu, 20 Oct 2016 19:52:42 -0000

Hi,

While trying to implement NewSessionTicket, I have noticed that
resumption_psk is derived from resumption_secret.

Is there any need to expand resumption_psk from resumption_secret?

To me, it is unclear why resumption_secret cannot be used directly as
a psk, since the two values have the same lengths and since the secret
is only used for deriving the psk.

Maybe is this something we could also simplify?


2016-10-18 5:08 GMT+09:00 Eric Rescorla <ekr@rtfm.com>:
> Hi folks,
>
> https://github.com/tlswg/tls13-spec/pull/699/files
>
> A while back Steven Valdez pointed out that now that we have the PSK binder
> change and dual key ladders, each set of traffic keys is generated from a
> different
> base secret which has a label folded in [0], so we don't need to have the
> "phase" parameter in the traffic key calculation in Section 7.3, which
> simplifies things
> a bit. Due to an oversight, this didn't make it into the PR, but it seems
> straightforward.
>
> Please let me know ASAP if I have missed something here or you otherwise
> object.
>
> -Ekr
>
>
> [0] client_early_traffic_secret, [sender]_handshake_traffic_secret,
> [sender]_traffic_secret_N respectively
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>



-- 
Kazuho Oku