Re: [Cose] Key management for MACs (was Re: Review of draft-schaad-cose-msg-01)

Ilari Liusvaara <ilari.liusvaara@elisanet.fi> Fri, 10 July 2015 17:11 UTC

Return-Path: <ilari.liusvaara@elisanet.fi>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8F8411B2A3E for <cose@ietfa.amsl.com>; Fri, 10 Jul 2015 10:11:33 -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, RCVD_IN_DNSWL_NONE=-0.0001, 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 6GvMtgXa6vX2 for <cose@ietfa.amsl.com>; Fri, 10 Jul 2015 10:11:31 -0700 (PDT)
Received: from emh02.mail.saunalahti.fi (emh02.mail.saunalahti.fi [62.142.5.108]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 818E91B2A4B for <cose@ietf.org>; Fri, 10 Jul 2015 10:11:31 -0700 (PDT)
Received: from LK-Perkele-VII (a91-155-194-207.elisa-laajakaista.fi [91.155.194.207]) by emh02.mail.saunalahti.fi (Postfix) with ESMTP id 118CE81817; Fri, 10 Jul 2015 20:11:19 +0300 (EEST)
Date: Fri, 10 Jul 2015 20:11:18 +0300
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Derek Atkins <derek@ihtfp.com>
Message-ID: <20150710171118.GA20991@LK-Perkele-VII>
References: <CA+k3eCQUPxZfWM9XcKaTLN-WOx2cHEi9SAGSRFTtv71iSCUqdQ@mail.gmail.com> <559576A9.9090002@gmx.net> <BY2PR03MB442C02F758E34B29BBD0CEAF5970@BY2PR03MB442.namprd03.prod.outlook.com> <001001d0b90c$3c874af0$b595e0d0$@augustcellars.com> <00c501d0b9a5$c8f869d0$5ae93d70$@augustcellars.com> <CA+k3eCS-7UK9RDfnkKCLK0ApTdNhSamYY3LL73+e1=rBvz7vDA@mail.gmail.com> <sjmlheo6t1j.fsf@securerf.ihtfp.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
In-Reply-To: <sjmlheo6t1j.fsf@securerf.ihtfp.org>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Archived-At: <http://mailarchive.ietf.org/arch/msg/cose/_beZ_zRs8XcMqHoGlI5O66sU1Yk>
Cc: Jim Schaad <ietf@augustcellars.com>, Brian Campbell <bcampbell@pingidentity.com>, Mike Jones <Michael.Jones@microsoft.com>, cose@ietf.org
Subject: Re: [Cose] Key management for MACs (was Re: Review of draft-schaad-cose-msg-01)
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cose>, <mailto:cose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose/>
List-Post: <mailto:cose@ietf.org>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cose>, <mailto:cose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 10 Jul 2015 17:11:33 -0000

On Fri, Jul 10, 2015 at 09:28:24AM -0400, Derek Atkins wrote:
> 
> Performing a MAC using the output of a DH (be it ECDH, AEDH, or raw DH)
> can still tell you that the transmission has not been modified between
> you and the party you're talking to.  You're right that it tells you
> nothing about the party you're talking to (i.e., without authentication
> of the DH keys you have no idea if you're talking to a MITM or the real
> endpoint).  However, using DH + MAC does tell you that you're not being
> spoofed by a "passive" eavesdropper.
> 
> So IMHO it does have some benefit.

It occurs to me that any sort of asymmetric key management with MACs
is unsafe, since knowing just public key enables message forgery.

This does not straightforwardly extend to symmetric schems (like
key wrapping), but are those useful with MACs?


-Ilari