Re: [MLS] Message Protection

"Alexey Ermishkin" <scratch@virgilsecurity.com> Sun, 01 July 2018 08:53 UTC

Return-Path: <scratch@virgilsecurity.com>
X-Original-To: mls@ietfa.amsl.com
Delivered-To: mls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 40689130E06 for <mls@ietfa.amsl.com>; Sun, 1 Jul 2018 01:53:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] 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 2pDioFxY5kkj for <mls@ietfa.amsl.com>; Sun, 1 Jul 2018 01:53:16 -0700 (PDT)
Received: from VirgilSecurity.com (mail.virgilsecurity.com [199.58.211.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 820A0127AC2 for <mls@ietf.org>; Sun, 1 Jul 2018 01:53:16 -0700 (PDT)
Received: from BIGONE (unknown [176.226.241.68]) by VirgilSecurity.com (Postfix) with ESMTPSA id A3722105AE9918; Sun, 1 Jul 2018 04:53:14 -0400 (EDT)
From: Alexey Ermishkin <scratch@virgilsecurity.com>
To: 'Martin Thomson' <martin.thomson@gmail.com>
Cc: 'Katriel Cohn-Gordon' <me@katriel.co.uk>, mls@ietf.org
References: <CAL02cgREuhjySYZXmhaE3RuF3fZ5iwCgyW2ChtgwPYhDgdaYUQ@mail.gmail.com> <11392542-5C22-4033-99F6-009F066F48DD@vigilsec.com> <CABkgnnVZMNhrSE0mL7-yehuoR-uE-Kj3zZC9nqRY4zHE2gmVPg@mail.gmail.com> <640CFF9E-5231-4188-888A-CAB4376393F6@vigilsec.com> <1530198719.3129780.1423592624.575CB8EA@webmail.messagingengine.com> <CABkgnnV81G0umQ91MFXfd3WhMA6WUJZmjUaL6=KGC4kpC3k8CQ@mail.gmail.com> <01e701d40f7c$430f3b20$c92db160$@virgilsecurity.com> <CABkgnnW+5RA=EP2Vby-guesQOnWbi6f3UxJQiD4MQw3F=m5uPQ@mail.gmail.com>
In-Reply-To: <CABkgnnW+5RA=EP2Vby-guesQOnWbi6f3UxJQiD4MQw3F=m5uPQ@mail.gmail.com>
Date: Sun, 01 Jul 2018 13:53:11 +0500
Message-ID: <023e01d41118$f30d2800$d9277800$@virgilsecurity.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQLM+wAwts1qVAaFZnL+MDvDWV6A7AFj57CLAgaUFXIB7TBkbAEN949wAmCsBOYB+p50lwIpOgLsoiDonaA=
Content-Language: ru
Archived-At: <https://mailarchive.ietf.org/arch/msg/mls/Q3GIj3XeGDKkLl5dKNpIKtYuf0A>
Subject: Re: [MLS] Message Protection
X-BeenThere: mls@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Messaging Layer Security <mls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mls>, <mailto:mls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mls/>
List-Post: <mailto:mls@ietf.org>
List-Help: <mailto:mls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mls>, <mailto:mls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Jul 2018 08:53:19 -0000

You a right. Even though Double Ratchet spec allows fixing nonce to a
constant, nobody seem to use it.

So, I made amends, fixed typo and did a PR
https://github.com/ekr/mls-protocol/pull/50

-----Original Message-----
From: MLS <mls-bounces@ietf.org> On Behalf Of Martin Thomson
Sent: Friday, June 29, 2018 12:57 PM
To: scratch@virgilsecurity.com
Cc: Katriel Cohn-Gordon <me@katriel.co.uk>; mls@ietf.org
Subject: Re: [MLS] Message Protection

On Fri, Jun 29, 2018 at 5:39 PM Alexey Ermishkin
<scratch@virgilsecurity.com> wrote:
> I'm not sure if nonce should be also derived as keys will be unique 
> and used only once. It does not seem to affect security in either way. 
> Signal is also using zero nonces for one time keys.

In TLS we chose to derive nonces so that it would become less feasible to do
precomputation attacks.  Messages are often predictable, and if you can
calculate a table for common responses, it might be possible to have enough
values stored to compromise confidentiality.

(That was the argument; not sure how much weight it carries relative to just
using a stronger primitive, but there you have it.)

_______________________________________________
MLS mailing list
MLS@ietf.org
https://www.ietf.org/mailman/listinfo/mls