Re: [MLS] Message Protection

Richard Barnes <rlb@ipv.sx> Thu, 28 June 2018 14:21 UTC

Return-Path: <rlb@ipv.sx>
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 68A3E130FFE for <mls@ietfa.amsl.com>; Thu, 28 Jun 2018 07:21:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.908
X-Spam-Level:
X-Spam-Status: No, score=-1.908 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ipv-sx.20150623.gappssmtp.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 58x46513y8uo for <mls@ietfa.amsl.com>; Thu, 28 Jun 2018 07:21:38 -0700 (PDT)
Received: from mail-ot0-x243.google.com (mail-ot0-x243.google.com [IPv6:2607:f8b0:4003:c0f::243]) (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 B153E130DC5 for <mls@ietf.org>; Thu, 28 Jun 2018 07:21:38 -0700 (PDT)
Received: by mail-ot0-x243.google.com with SMTP id n24-v6so6311011otl.9 for <mls@ietf.org>; Thu, 28 Jun 2018 07:21:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipv-sx.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=saMqLyaRgMiA0NIQXR2/efgapysL/2cZI+QFIrhbxtE=; b=MWLmVidVr2tXqDuUKCagVLgi44RNIdHElRVBGNOIzOA+lC9JXkfdsv2B2BjKEyG9ai pTxFMxHxF/RZajU+J3BHWnUB4MUzrCR6jCRFcyrEpKPdOhzJ3BbfAl+AC0xLuE1HplJ1 94St130VPeUwhEqPET1Sp8U4aI5ywJvXTcLQ+CGLFLE1F9yaU918T1JXiD6KVPywKy7H N49qYa6komHc5vcU0fdMxkdnLV8fv/Cu5DFHY3SyqGt0UPdflsHFfMwNgdmv9Mt4pha1 gyHUs3621isWGKhGLCOYlJZt2JF/D8fzZPe7/eLiFcIjeGohMP/ZvnwLZciv02cN+6+1 8EMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=saMqLyaRgMiA0NIQXR2/efgapysL/2cZI+QFIrhbxtE=; b=DHFMUYy4BQk08/s6sMC8FPRUemFvnPRexATg6Uzn/bveoI3LDndI/KruF0OlEkrLF5 /pKfxyU/lpbL+xNFzugoJ7sGwaiKwPTSXpttd4NRgSQ0Y0CXoABu2CSKaEDYheTkA6Gp yMrCk50Jry6pdNspiSE5zBX2pwb45UDaT8ceY6mxWSX7dyVlHwOIY6DiOHdKzavDHl8u btFUsVd65J3aWhF1L2vIpuR+EVcqasm/EIvQCFA0HtYX1mqSqov7fbK4uuM2KBlNckjU w5N2RVUglvkRanAWG2OS2QjyqNqh4jZcu3MtMV8cVTd7hS8Ne7tgvIsLg6ZWSgDn/BJm /1eg==
X-Gm-Message-State: APt69E1SBRqN0QJ3sqkq6eaGKRNC+Q39d1/9+5s+E/2hulkPlHf6cUZH 0SMNzicARZY/jY4JMUwXWjebk7yXLIij4DIUGJHJ/Q==
X-Google-Smtp-Source: AAOMgpcJ7md0LayLzCL8I8xx/fyfesr3XWIZKBP/PipHE2M0Rvgj1NftmoO5QbusVeBqbz1mDb4KK9cYtgQZjq+Y+/o=
X-Received: by 2002:a9d:2e47:: with SMTP id c7-v6mr6492510otd.383.1530195697925; Thu, 28 Jun 2018 07:21:37 -0700 (PDT)
MIME-Version: 1.0
References: <CAL02cgREuhjySYZXmhaE3RuF3fZ5iwCgyW2ChtgwPYhDgdaYUQ@mail.gmail.com> <11392542-5C22-4033-99F6-009F066F48DD@vigilsec.com> <CABkgnnVZMNhrSE0mL7-yehuoR-uE-Kj3zZC9nqRY4zHE2gmVPg@mail.gmail.com>
In-Reply-To: <CABkgnnVZMNhrSE0mL7-yehuoR-uE-Kj3zZC9nqRY4zHE2gmVPg@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
Date: Thu, 28 Jun 2018 07:21:21 -0700
Message-ID: <CAL02cgQAGNcgDj-hBM_SC0LJT6YAqu=VHnY1RuZT7QdCrxKNLw@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Russ Housley <housley@vigilsec.com>, mls@ietf.org
Content-Type: multipart/alternative; boundary="000000000000031748056fb47379"
Archived-At: <https://mailarchive.ietf.org/arch/msg/mls/rWSguIIWa__ciSXhv1g6eAYOSps>
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: Thu, 28 Jun 2018 14:21:49 -0000

Yeah, when I wrote "key schedule", I was envisioning things like deriving
keys per-sender, or per-message-per-sender, hash-ratchet style.  Since you
can get some forward secrecy benefits that way if you delete older entries
in the hash ratchets.

On Wed, Jun 27, 2018 at 3:12 PM Martin Thomson <martin.thomson@gmail.com>
wrote:

> I was thinking that the nonce generation aspect would be worth looking
> into as well.  If you crib from the TLS design, maybe you could have
> per-participant keys so that each can be independently responsible for
> ensuring nonce-uniqueness.  Then they can use counters to avoid nonce
> reuse if they so choose.  Otherwise, I was tempted to suggest AES-SIV
> or another nonce-reuse-resistant scheme, but there are fewer of those
> available than straight up AEADs.
> On Thu, Jun 28, 2018 at 7:36 AM Russ Housley <housley@vigilsec.com> wrote:
> >
> >
> >
> > > On Jun 26, 2018, at 8:38 PM, Richard Barnes <rlb@ipv.sx> wrote:
> > >
> > > Hey all,
> > >
> > > One of the things we kind of waved our hands about in the charter and
> current protocol draft is message protection.  That is, the idea of
> specifying a concrete syntax for using the keys we negotiate using MLS to
> actually protect content.
> > >
> > > This is a simpler problem than key exchange (since you've already
> established a group key), but it still has some nuances that matter to the
> overall security story, so it seems worth writing some things down:
> > >
> > > - Content encapsulation (e.g., what nonces / AAD you use with AEAD)
> > > - Key schedule, i.e., how message keys are derived from the group key
> > > - ACK / NACK / replay
> > > - Transcript integrity (?)
> > > - Expiration times (?)
> > >
> > > What's missing here?
> >
> > If the tree produces a key and an identifier for that key, then the
> protocol is straightforward.
> >
> > The key identifier could be derived from the key itself so that anyone
> that knows the key also knows the identifier.
> >
> >         prk = HKDF-Extract('mls-key-id' | tree-identifier, key)
> >
> >         keyid = HKDF-Expand(prk, '', sizeof(keyid))
> >
> > Russ
> >
> > _______________________________________________
> > MLS mailing list
> > MLS@ietf.org
> > https://www.ietf.org/mailman/listinfo/mls
>