Re: [TLS] Comments on nonce construction and cipher text size restriction.

Ilari Liusvaara <ilariliusvaara@welho.com> Tue, 24 May 2016 18:03 UTC

Return-Path: <ilariliusvaara@welho.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 E122612D956 for <tls@ietfa.amsl.com>; Tue, 24 May 2016 11:03:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.326
X-Spam-Level:
X-Spam-Status: No, score=-3.326 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-1.426] autolearn=ham autolearn_force=no
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 BGTjGqoxT40M for <tls@ietfa.amsl.com>; Tue, 24 May 2016 11:03:22 -0700 (PDT)
Received: from welho-filter1.welho.com (welho-filter1.welho.com [83.102.41.23]) by ietfa.amsl.com (Postfix) with ESMTP id F04E712D8B7 for <tls@ietf.org>; Tue, 24 May 2016 11:03:21 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by welho-filter1.welho.com (Postfix) with ESMTP id 7FABA4BAB; Tue, 24 May 2016 21:03:20 +0300 (EEST)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp1.welho.com ([IPv6:::ffff:83.102.41.84]) by localhost (welho-filter1.welho.com [::ffff:83.102.41.23]) (amavisd-new, port 10024) with ESMTP id Jx0m5Uzsdh_c; Tue, 24 May 2016 21:03:20 +0300 (EEST)
Received: from LK-Perkele-V2 (87-100-155-121.bb.dnainternet.fi [87.100.155.121]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by welho-smtp1.welho.com (Postfix) with ESMTPSA id 3DA6B28C; Tue, 24 May 2016 21:03:20 +0300 (EEST)
Date: Tue, 24 May 2016 21:03:17 +0300
From: Ilari Liusvaara <ilariliusvaara@welho.com>
To: Colm MacCárthaigh <colm@allcosts.net>
Message-ID: <20160524180317.GA24055@LK-Perkele-V2.elisa-laajakaista.fi>
References: <D369E95C.267A5%qdang@nist.gov> <CABkgnnVAVYDuWUV0EJ=9iJ69KOwYxR=tzRRB+A96qwKmco8qEg@mail.gmail.com> <CAAF6GDfKefWHsLMEqeQb7LZ4LJ+WKRJ-3+4=Jg5Pu2WQCdY3_w@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <CAAF6GDfKefWHsLMEqeQb7LZ4LJ+WKRJ-3+4=Jg5Pu2WQCdY3_w@mail.gmail.com>
User-Agent: Mutt/1.6.0 (2016-04-01)
Sender: ilariliusvaara@welho.com
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/S2LXBTTmmWBSEm-F6viRoAE_8ak>
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Comments on nonce construction and cipher text size restriction.
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: Tue, 24 May 2016 18:03:24 -0000

On Tue, May 24, 2016 at 10:44:15AM -0700, Colm MacCárthaigh wrote:
> On Tue, May 24, 2016 at 9:13 AM, Martin Thomson <martin.thomson@gmail.com>
> wrote:
> 
> > > 3. "The padded sequence number is XORed with the static client_write_iv
> > or
> > > server_write_iv, depending on the role.” I think the ivs are not needed.
> >
> > We discussed this at quite some length.  I originally took your
> > position, but the IVs add an extra layer of safety at very little
> > cost.
> >
> 
> Is this more safe? wouldn't this disclose the key in the event that the
> HKDF and the underlying hash turned out to have some cryptanalytical flaw
> that meant it wasn't back-tracking resistant? I think otherwise TLS can
> survive such a flaw because the output of the PRF is not directly
> discernible on the wire.

It seems like failing backtracking resistance would need really major
breakage in PRF-hash. And the whole TLS will fall apart pretty badly
WAY before that point with broken PRF.


-Ilari