Re: [TLS] Consensus for AEAD IV

Martin Thomson <martin.thomson@gmail.com> Fri, 24 April 2015 20:00 UTC

Return-Path: <martin.thomson@gmail.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 670A31A1A6D for <tls@ietfa.amsl.com>; Fri, 24 Apr 2015 13:00:52 -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
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 chgOtEhE8bZF for <tls@ietfa.amsl.com>; Fri, 24 Apr 2015 13:00:51 -0700 (PDT)
Received: from mail-yk0-x235.google.com (mail-yk0-x235.google.com [IPv6:2607:f8b0:4002:c07::235]) (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 2007D1A1A66 for <tls@ietf.org>; Fri, 24 Apr 2015 13:00:51 -0700 (PDT)
Received: by ykec202 with SMTP id c202so9245224yke.2 for <tls@ietf.org>; Fri, 24 Apr 2015 13:00:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VIkGRGTzO6OdNN9NjRwPrlyNHQtBqwQbZxMFlwRKZM4=; b=nwPyj8EkMfJ9Aw1jvT26HdD0F5HlDchE4ltRaM4eWmw0Rujg8pn1vSuKqYtlRioNIH uK69eXVbfsGip0zh6q+jDTUKihKccVVCF4MyxhFEmpkcQOGT1GzJtxQ6Na2pHGaKQmsY LGK7tiDGIFELyn7lnamGa+q6xfocFrSw5zLo6deyJtbJ0o1d6/zOeD+lC9cxAKRTiC9+ zIl7uKSvWMqcDlK9pNUvtPulyNgqsYeTTmM9PFTGFEO80UY2suH6LaeKkqZefzLp6D5W OPmDtDyCpzvJJuy7tzeZvX2YuP0q4kUDtXDF2tbVt+tAHyLLLOhqViHqfBODMp0ar/sG pF/w==
MIME-Version: 1.0
X-Received: by 10.236.106.74 with SMTP id l50mr46922yhg.143.1429905650503; Fri, 24 Apr 2015 13:00:50 -0700 (PDT)
Received: by 10.13.247.71 with HTTP; Fri, 24 Apr 2015 13:00:50 -0700 (PDT)
In-Reply-To: <CAOgPGoC14uhjrZAQvDHFQrJoyoVNELpNNd4+Hh==zwf9ipyY5g@mail.gmail.com>
References: <CAOgPGoC14uhjrZAQvDHFQrJoyoVNELpNNd4+Hh==zwf9ipyY5g@mail.gmail.com>
Date: Fri, 24 Apr 2015 13:00:50 -0700
Message-ID: <CABkgnnU50pvH+LFsN3BL9LfvYhZOxmJV1JYzODeC=-JpZSh8Lw@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Joseph Salowey <joe@salowey.net>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/0EPJyDyKeYjbPNQcTJwRxY9dzhQ>
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Consensus for AEAD IV
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: <http://www.ietf.org/mail-archive/web/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, 24 Apr 2015 20:00:52 -0000

On 24 April 2015 at 10:10, Joseph Salowey <joe@salowey.net> wrote:
> The general consensus on the list seems to prefer to derive "IV" and use it
> to make the AEAD nonce less predictable. Most folks seemed to be OK with
> this approach.    In Dallas, there was significant support for using the
> derived "IV" as a per session XOR mask for the counter.  If you have
> objections to this approach please respond on the list by May 1, 2015 .


You aren't being particularly precise about the process here.

I believe that these were the two options that were most debated:

a)  nonce = zeroes(N_MIN) XOR counter
b)  nonce = HKDF(...., N_MIN) XOR counter

Did you mean the latter option?