Re: [MLS] Substitute AES-128-GCM with AES-256-GCM for TreeKEM
Raphael Robert <raphael@wire.com> Thu, 20 September 2018 10:55 UTC
Return-Path: <raphael@wire.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 6EFEC130E79 for <mls@ietfa.amsl.com>; Thu, 20 Sep 2018 03:55:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 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, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=wire-com.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 iGjXCtgWBY5e for <mls@ietfa.amsl.com>; Thu, 20 Sep 2018 03:55:56 -0700 (PDT)
Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (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 9981E130E50 for <mls@ietf.org>; Thu, 20 Sep 2018 03:55:55 -0700 (PDT)
Received: by mail-wr1-x42a.google.com with SMTP id j15-v6so4830678wrt.8 for <mls@ietf.org>; Thu, 20 Sep 2018 03:55:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wire-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=JLsXGx5QvQVHieUGtzEefsXl93/Ejip/6ysuAK7WLNM=; b=G27jsIaILmvsbITtp7rGMRylWiKzMwo2LIEdIPDeVoqrAYk3ewfIbXp9ALAtUbgZoR f+zl6OFgTRE1KiyWQJY02afrk89pHDLX/HjDc2INKWE/51H2LfVg5kCW7VZ6/sEjPAwH HQcmwBlEW2Zeice/mHn3BcITvCZdzpsH6ilhOvhvHAHjck1rT7oIFz1TT+6BX7DCkyPc UpNxz624lsEBzELbWvCHdEjLfibNLj1xam7zbRyvJhqDcIC9K2meaVTCCwx/OVvZmIvT hlsrv6l/xDeYi4MsmZQZ+aXggD7uwQQdlEHoMS1wZUY1tYdhF0QKVFxCzCSZsuI8TMUg Y8Vg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=JLsXGx5QvQVHieUGtzEefsXl93/Ejip/6ysuAK7WLNM=; b=sqfXnNiK7evBjV6V1hB3kx9ZwtfSvXrj5LytyOH1H+M+H64148ex+m87kpbcNhToa2 lz8EMNfE1hr0iM3mmgccC9KlQlzwOVg0aqRt7dCfJbnmNFGmnNQRv7t29BJAOTKyMu30 cx5U7lz5LD8jV3Hu69CM3iMVcmZvZi3bkgjM7SQy+e155X6+Y31jI1s5ZTmbojCk5hNt pxK5zrmEkVCo3pxFUQ3YtvfZQVZaY4008RiaVZUC3T1tLOp7CNi5m8HSEdfgphAy3I7K GbT4jiCqM3yfGsHykaivHNGmJrevUDTL6WowjRiOm9g8/YpF8vTu+YQtZJr07SnJi4iX inmw==
X-Gm-Message-State: APzg51DaOOTUK+ZHivx1tLZ8Prw9wXfOdCIeYyPNEkfL4yXsdTlpEiXN 5TDj9WmHbg7Jpplo88TrOTVee/hf+FU=
X-Google-Smtp-Source: ANB0VdZaZi0DMBfnr5X3eiHFRYaWeUneeBAbRosm5T9G0eEQkHVa/oWscM7/sR7ZqMyD0/QC/Mq+SQ==
X-Received: by 2002:a5d:6984:: with SMTP id g4-v6mr32356979wru.232.1537440952971; Thu, 20 Sep 2018 03:55:52 -0700 (PDT)
Received: from rmbp.wire.local (h-62.96.148.44.host.de.colt.net. [62.96.148.44]) by smtp.gmail.com with ESMTPSA id 144-v6sm2520766wma.45.2018.09.20.03.55.51 for <mls@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 03:55:52 -0700 (PDT)
From: Raphael Robert <raphael@wire.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_2E6CA25A-9F95-4E32-B205-AE8EFEEA9B38"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Thu, 20 Sep 2018 12:55:50 +0200
References: <7397E576-521F-4198-9232-C59530877E19@wire.com> <CAL02cgQb0BnPKQ015Uh5VOAsvSD6iXK4AE==Vyw9WXac0Th_kg@mail.gmail.com>
To: mls@ietf.org
In-Reply-To: <CAL02cgQb0BnPKQ015Uh5VOAsvSD6iXK4AE==Vyw9WXac0Th_kg@mail.gmail.com>
Message-Id: <911130F4-8B46-45C9-A4A6-8359A950DD48@wire.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/mls/oY2FV-MovVjAm9S4lz--WXKz0jw>
Subject: Re: [MLS] Substitute AES-128-GCM with AES-256-GCM for TreeKEM
X-BeenThere: mls@ietf.org
X-Mailman-Version: 2.1.29
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, 20 Sep 2018 10:56:00 -0000
This is a good argument. Upgrading the ECDH primitive would make sense. I guess replacing P256 by P521 is somewhat straightforward, but Curve25519 is not. Ed448-Goldilocks might be a potential candidate. So the question has shifted to: Do we want to increase the security level consistently? And is the payload increase acceptable? I will close the PR for now. Raphael > On 19 Sep 2018, at 20:14, Richard Barnes <rlb@ipv.sx> wrote: > > The obvious argument against this is that you don't ultimately get the benefit of the bigger key. Since you're generating the key off of a P-256 operation, your security level to limited to 128 bits. The only way that argument wouldn't hold is if you thought for some reason that AES-128-GCM was going to degrade faster than P-256, or if you wanted to argue that AES-128-GCM isn't really providing a 128-bit security level. > > You could, of course, have a cipher suite where you upgrade everything: AES-256-GCM, P-521, SHA-512. But in that case, the size of a message basically doubles. Concretely: an element in a TreeKEM path has (1) a public key for the node (2) an encrypted node secret with is (2a) a public key (2b) an encrypted hash output and (2c) a GCM tag. With the *256 suite, that comes to 178 = 65 + (65 + 32 + 16) and with the *512 suite, 346 = 133 + (133 + 64 + 16). > > If other folks are keen on AES-256-GCM, I don't think there's any major harm in upgrading the P-256-based scheme to use AES-256-GCM, but I don't think there's much benefit either. Likewise, if folks want to add a higher-security-level suite, I wouldn't be opposed, but I don't think it'll get much use. In the Firefox TLS telemetry [1], the AES-256-GCM ciphersuites get more than 6x the use that the AES-128-GCM suites do. > > --Richard > > [1] https://mzl.la/2PPT1YL <https://mzl.la/2PPT1YL> > 1 = RSA + AES-128-GCM = 55% > 2 = ECDSA + AES-128-GCM = 18% > 13 = ECDSA + AES-256-GCM =1% > 14 = RSA + AES-256-GCM = 10% > > On Wed, Sep 19, 2018 at 12:17 PM Raphael Robert <raphael@wire.com <mailto:raphael@wire.com>> wrote: > I am proposing to substitute AES-128-GCM with AES-256-GCM for TreeKEM: > > https://github.com/mlswg/mls-protocol/pull/60 <https://github.com/mlswg/mls-protocol/pull/60> > > There was no particular reason why AES-128-GCM was chosen initially, and there is no obvious security downside to AES-256-GCM. > > Raphael > _______________________________________________ > MLS mailing list > MLS@ietf.org <mailto:MLS@ietf.org> > https://www.ietf.org/mailman/listinfo/mls <https://www.ietf.org/mailman/listinfo/mls>
- [MLS] Substitute AES-128-GCM with AES-256-GCM for… Raphael Robert
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Salz, Rich
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Richard Barnes
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Dennis Jackson
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Richard Barnes
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Dennis Jackson
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Raphael Robert
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Richard Barnes
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Salz, Rich
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Salz, Rich
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Joel Alwen
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Salz, Rich
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Joel Alwen
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Dennis Jackson
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Richard Barnes
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Salz, Rich
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Raphael Robert
- Re: [MLS] Substitute AES-128-GCM with AES-256-GCM… Joel Alwen