Re: [TLS] A small detail in HMAC key generation for Finished message
Michael StJohns <msj@nthpermutation.com> Fri, 25 December 2015 16:47 UTC
Return-Path: <msj@nthpermutation.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id 3034F1A8AD7
for <tls@ietfa.amsl.com>; Fri, 25 Dec 2015 08:47:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1] autolearn=ham
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 foqP4wz_HLjQ for <tls@ietfa.amsl.com>;
Fri, 25 Dec 2015 08:47:10 -0800 (PST)
Received: from mail-qg0-x234.google.com (mail-qg0-x234.google.com
[IPv6:2607:f8b0:400d:c04::234])
(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 B0B521A8ACB
for <tls@ietf.org>; Fri, 25 Dec 2015 08:47:10 -0800 (PST)
Received: by mail-qg0-x234.google.com with SMTP id o11so113076124qge.2
for <tls@ietf.org>; Fri, 25 Dec 2015 08:47:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=nthpermutation-com.20150623.gappssmtp.com; s=20150623;
h=subject:to:references:from:message-id:date:user-agent:mime-version
:in-reply-to:content-type:content-transfer-encoding;
bh=l89WyglNcrHEQmjwxvcQy6oJfjNhho30kty+8C6WfTw=;
b=r2MiBt9OjLn8fHJpYb0A3Nv/xkF6MyNZrvhST24h4PBvASbYpfxLrQZQIYhG0Jk4yH
H6naTz5fElDVKxkC8Ti7v7edoRUqXFr9bIcMnozQdJggo8uCyrRJxSRA/e3FfjiiQ7n5
zLK0LmfO2K5hoTh+qm/ArGFZB0QhN8/InE8aEF6Kaa8vbh4Wu/nv7ScJzTyrrYPD0uNL
rtL6+zZ5k7gubRxaE6zpqiJUXlKEEHfXKS3I2ZKqGyi/5fZSGEHeHq5fNmJaETJnlYES
C9Pz8KfPEKKY4wMQoGH8RFGrHNJO+Ou+E8qO4jL1m7JYJOjsBq4elVp9Cvt3EOr0+5RZ
TSOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:subject:to:references:from:message-id:date
:user-agent:mime-version:in-reply-to:content-type
:content-transfer-encoding;
bh=l89WyglNcrHEQmjwxvcQy6oJfjNhho30kty+8C6WfTw=;
b=MygNoZ6JsHQq04Faqb/B+PeOKUQAIGJxYs2x0QziIbu1OVmfN0Igr3B7EOSPLntVgZ
69xlkFtMoT8mXNs4fjDxVgFoPv9mZjQt2UwEM2cqvF6a5G/PpXzDxw18dRX9SKWxbtKh
esqtPELEv7wcpvm55fTo7sjGh1gj1edp729vMc7gUmbrqp2STFdzbhAUBx4+5vvnnKl0
GJd2CFvp9AUQfhUoQK+wbxh6CXJEhQ3G3IOSCAHw/9Gzt533NGhXjZx+jdcvp50Y3KSs
JLI+1xV8yfadO0B7bXAxRaDLXS4715y1KrTjGM6KWja/bc1VfXpBmlgdCS11b8t2/2Iu
UO2w==
X-Gm-Message-State: ALoCoQkIPkGKuYBidQOk+4wecPlZV954882DJ03NulbnnwvbBV4Ya3bHkWy8nYzPlIyPBu5KIil8yuoUzK+Baw/kqEweLYoVsA==
X-Received: by 10.140.92.84 with SMTP id a78mr42953903qge.10.1451062029441;
Fri, 25 Dec 2015 08:47:09 -0800 (PST)
Received: from ?IPv6:2601:148:c000:1bb4:b55d:8057:c951:6bd8?
([2601:148:c000:1bb4:b55d:8057:c951:6bd8])
by smtp.gmail.com with ESMTPSA id l107sm6860222qge.22.2015.12.25.08.47.08
for <tls@ietf.org>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Fri, 25 Dec 2015 08:47:08 -0800 (PST)
To: tls@ietf.org
References: <DM2PR0301MB06550A43EC188A16E8C8464DA8E60@DM2PR0301MB0655.namprd03.prod.outlook.com>
<CABcZeBO6shkEF1puy+YgEzM8CgRRvmb3sypQUevpKoC=CEj0oQ@mail.gmail.com>
<DM2PR0301MB06553CF1DDF35B6B96F64290A8E70@DM2PR0301MB0655.namprd03.prod.outlook.com>
From: Michael StJohns <msj@nthpermutation.com>
Message-ID: <567D7310.7080000@nthpermutation.com>
Date: Fri, 25 Dec 2015 11:47:12 -0500
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101
Thunderbird/38.4.0
MIME-Version: 1.0
In-Reply-To: <DM2PR0301MB06553CF1DDF35B6B96F64290A8E70@DM2PR0301MB0655.namprd03.prod.outlook.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/RAqiRYCiOD94UTwmRt1UrJafS-Q>
Subject: Re: [TLS] A small detail in HMAC key generation for Finished message
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.15
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: Fri, 25 Dec 2015 16:47:12 -0000
On 12/23/2015 8:04 PM, Christian Huitema wrote: > On Wednesday, December 23, 2015 3:05 PM, Eric Rescorla wrote: >>> I wonder what the zero length string actually means. Is it a null-terminated string >>> that would encode in binary as a one octet byte string of value 0, or an empty >>> string that would encode in binary as a zero length string? >> I see what you mean about the ambiguity here. What I meant was 0 bytes >> (i.e., no trailing '\0'). > OK, makes sense. > >>> There is one example of encoding a string in section 4.8.1, and the binary representation >>> shows the encoding of the final null byte. Is that a common assumption? >> No. >> >>> Similarly, in the HKDF-Expand-Label, do we assume a final null byte for the "label"? >> No. I wonder if we should instead add the '\0' explicitly in the 4.8.1 for maximal clarity. > Either that, or just remove the trailing 00 from the binary description. Or even better. Express the label as a specific sequence of octets as the normative form for each and every label. That then avoids questions of the form "C String"? "Ascii"?, "Wide characters"?, etc. Mike > > -- Christian Huitema > > _______________________________________________ > TLS mailing list > TLS@ietf.org > https://www.ietf.org/mailman/listinfo/tls >
- [TLS] A small detail in HMAC key generation for F… Christian Huitema
- Re: [TLS] A small detail in HMAC key generation f… Eric Rescorla
- Re: [TLS] A small detail in HMAC key generation f… Christian Huitema
- Re: [TLS] A small detail in HMAC key generation f… Michael StJohns
- Re: [TLS] A small detail in HMAC key generation f… Hubert Kario
- Re: [TLS] A small detail in HMAC key generation f… Eric Rescorla
- Re: [TLS] A small detail in HMAC key generation f… Salz, Rich
- Re: [TLS] A small detail in HMAC key generation f… Hubert Kario
- Re: [TLS] A small detail in HMAC key generation f… Eric Rescorla
- Re: [TLS] A small detail in HMAC key generation f… Martin Thomson
- Re: [TLS] A small detail in HMAC key generation f… Eric Rescorla