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

Martin Thomson <martin.thomson@gmail.com> Thu, 20 October 2016 23:05 UTC

Return-Path: <martin.thomson@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 BFC0E129492 for <tls@ietfa.amsl.com>; Thu, 20 Oct 2016 16:05:22 -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, 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 xi7Pfx9NhmYb for <tls@ietfa.amsl.com>; Thu, 20 Oct 2016 16:05:21 -0700 (PDT)
Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (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 05E2F12940F for <tls@ietf.org>; Thu, 20 Oct 2016 16:05:21 -0700 (PDT)
Received: by mail-qk0-x229.google.com with SMTP id f128so118221062qkb.1 for <tls@ietf.org>; Thu, 20 Oct 2016 16:05:20 -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=fBKW5jCQ3G+pnggCkxncICDZlC5uFxIBJXyERv2ZscE=; b=pe0EmWJxCS2VIJBLZI9RubzEBRw57KCoZ/rik9DBP+e+Qdrp33H+3VtePYIDthxEgK ezGvfSBrgo0p6j2fJ2iDlgWAXkMRb8qBYmXO6WV8lBEwxYhJu0GROkn6WULQ3Ml8URD0 c0AKeCKrIeXnp9cl3CRsrBPLeqdGq2WWylvhA4p4Vm9Cg61uMVIEWf6LO0GqSZHLNBVE wtVRQr+JJDqZpIUCN7bzItomwjvdlgOi8NVt/UtYWYXTgVZdW8dYJkXMYTPHZFNbEnJm q7cYtNiA+3InNr9nDG8s2oMTYRFSqm0lpc+xbbuCmUHXJAbwlHx1lywVTJ3LntifDTVb Z0EA==
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=fBKW5jCQ3G+pnggCkxncICDZlC5uFxIBJXyERv2ZscE=; b=Mg10ijzqbwwHoBqrg4gTivkcd1KiSIm58FJVfOFDXfED9wM6cLeQKdNAhnaxqIZxo3 FoCPMUqYaQ3NRZ2P/tFlWsWDJQ+BlxyoSf/uIIHXYh0bBwkUCxs3aiq5rBR7uwx2AhuB 9Y/5sBzN5+kZ6epHluOJR2LOvHOYLvnnCMhCnj9RVUWphTwubWUExSwEKCzH96/zjdhm Urm7cBWF8mIudMV3dE1I4EOWJ6sETM5h/LzweSBhVBLhCPT4PZ7C3Rhk9Ir6BxrDim8C No5fT3HxkcLeehKWB97ElehWSbv91DZloZJP0Gipv/YrVW5m5oaxLdfxa16r3kGBvuz3 HsgA==
X-Gm-Message-State: ABUngvdImwN3zMUwMTdAyALex18Vy4mSf8DOzayWsxVM7UJ/h85taYbDdNtc3CSY0jSA90Br0GGhdfp7k84RLQ==
X-Received: by 10.55.158.139 with SMTP id h133mr3258382qke.202.1477004720162; Thu, 20 Oct 2016 16:05:20 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.85.7 with HTTP; Thu, 20 Oct 2016 16:05:19 -0700 (PDT)
In-Reply-To: <CANatvzygaJ6e-hNGqRR=ZE4Z5JDK7zHmuv-HNCvkBG8d2-PqCw@mail.gmail.com>
References: <CABcZeBPC2tbnFeGPKXMPCkiBW7HVNVwLaYeJTKXsCEznJXGtzw@mail.gmail.com> <CANatvzygaJ6e-hNGqRR=ZE4Z5JDK7zHmuv-HNCvkBG8d2-PqCw@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 21 Oct 2016 10:05:19 +1100
Message-ID: <CABkgnnV1bUayYAk+46RRXfB0oE5jSjeq_Gez4W8Ke_XukwcOow@mail.gmail.com>
To: Kazuho Oku <kazuhooku@gmail.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/FBKCvGONAzC3l2MT8HX9cp7isCw>
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 23:05:24 -0000

On 21 October 2016 at 06:52, Kazuho Oku <kazuhooku@gmail.com> wrote:
> 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?

draft-17 makes a simplification along the lines you suggested.  Note
that this wasn't as easy to get right as you might have imagined for a
bunch of reasons.