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

Brian Campbell <bcampbell@pingidentity.com> Sat, 11 July 2015 12:10 UTC

Return-Path: <bcampbell@pingidentity.com>
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 DCF221A92F3 for <cose@ietfa.amsl.com>; Sat, 11 Jul 2015 05:10:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.378
X-Spam-Level:
X-Spam-Status: No, score=-1.378 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=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 LE5Of-JrbrVc for <cose@ietfa.amsl.com>; Sat, 11 Jul 2015 05:10:45 -0700 (PDT)
Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (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 909A51A9096 for <cose@ietf.org>; Sat, 11 Jul 2015 05:10:45 -0700 (PDT)
Received: by igpy18 with SMTP id y18so29757507igp.0 for <cose@ietf.org>; Sat, 11 Jul 2015 05:10:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pingidentity.com; s=gmail; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=WkBkSG5Ribuzeni5PU+xLlIiBxVGmkVI7xXNZ+c0ZIU=; b=TD6ANNDWYOCb1bO8ks5yV4LdTAnFgRBsMSwwfDajkyZ3RdCzASID1Ukd063bgf2vlB 1nmYKS5icHJxFYKjRLsEN5SzVec5jyeMCZy3m/IyZuvLki3EpPG+r4j/8GtLz0HuPZnE 5Y4B3AfVaLM3N5a/SCACJ0RXygAUHg+0Fjaj8=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=WkBkSG5Ribuzeni5PU+xLlIiBxVGmkVI7xXNZ+c0ZIU=; b=eNawUS8KZJJfUJO+j1ZX9HO48wIWqSO8y7MfW1axTtu2O0ACs2RlDxAzoE6hyI90SJ dw3MtPVgiqxzO3xN/wkvoa2NMST7bQUSx1W4wDJPTQ94rZXb2EZXjq7eGTKo2FU0Qz2a u6v2F6ZJojNHjqkPEgSflj6Wm3ZtpNBQyzo/OALMtivseZs+hVE7e64xZ+kY7+IxSd/0 yGyS0k9LvyjPej/AO0QDRP5iiIOqqACYMq/z1vJxVUPLEJBHu+F3tv6s/x1I6qPcqeJL oUmf2G9ItQPpekyS20WwmHftiOV6tAksAtfvONVUu+XANdn75sSVaWXGbmVAcbm+7QH1 0g6Q==
X-Gm-Message-State: ALoCoQlVO6jeg+rt/RD87WvldfGMSMcg+hdqVh2/uiOxuRmXMCHgwIb2qE/VSAuXsGOsnoMxDr5G
X-Received: by 10.50.30.226 with SMTP id v2mr3183137igh.3.1436616644726; Sat, 11 Jul 2015 05:10:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.79.96.199 with HTTP; Sat, 11 Jul 2015 05:10:15 -0700 (PDT)
In-Reply-To: <003001d0bb65$4a55c390$df014ab0$@augustcellars.com>
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> <000f01d0baad$8a781b20$9f685160$@augustcellars.com> <CA+k3eCSHOjdWyqbRAWR8AitEA5Z-vekUcCY7XQpFj=n2vhsi=A@mail.gmail.com> <001401d0bb5f$a98fdf90$fcaf9eb0$@augustcellars.com> <CA+k3eCRe+OimGD3n_m59EogP5geeCq4SSNQu6k_ECuj_63c5pA@mail.gmail.com> <003001d0bb65$4a55c390$df014ab0$@augustcellars.com>
From: Brian Campbell <bcampbell@pingidentity.com>
Date: Sat, 11 Jul 2015 06:10:15 -0600
Message-ID: <CA+k3eCRfs8ukvqFmwkvaTb-5uK7BJawe7vo6A57dF6o9bSgy0g@mail.gmail.com>
To: Jim Schaad <ietf@augustcellars.com>
Content-Type: multipart/alternative; boundary="047d7b86d502c9b311051a986028"
Archived-At: <http://mailarchive.ietf.org/arch/msg/cose/m1tWzxJ4o0osg2BiCzn3PDseT0k>
Cc: 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: Sat, 11 Jul 2015 12:10:47 -0000

The context around the overhead was signing vs. key agreement - so ECDH-SS
+ MAC vs. ECDSA. I was presuming that ECDH-SS would need a random MAC key
and key wrap it using the agreed key.  So the wrapped key was part of the
overhead I had in mind when I said I thought they'd be similar. But yeah,
okay, a  ECDH-SS with a KDF would be smaller.

On Fri, Jul 10, 2015 at 5:08 PM, Jim Schaad <ietf@augustcellars.com> wrote:

> The overhead on key management is going to be based a lot on what you are
> doing.
>
>
>
> If you are doing direct shared secret –then you have a kid
>
> If you are doing ECDH-SS – then you need two kids and a nonce (which can
> be very short)
>
> If you are doing ECDSA – then you need a kid
>
>
>
> This means that to be the same size you have 24 bytes to express a second
> kid (which could be implicit) and a nonce (which can be a short as 2 or 3
> bytes).  I don’t think you need that much space – so yes, it would be
> smaller.
>
>
>
> The overhead from the basic messages (MAC vs Sign) is going to be about
> the same in both cases.
>
>
>
> *From:* Brian Campbell [mailto:bcampbell@pingidentity.com]
> *Sent:* Friday, July 10, 2015 3:34 PM
> *To:* Jim Schaad
> *Cc:* cose@ietf.org
> *Subject:* Re: [Cose] Key management for MACs (was Re: Review of
> draft-schaad-cose-msg-01)
>
>
>
> Really, there's no overhead from the key management part?
>
>
>
>
>
> I've admittedly not done the comparison but the message size overhead
> seems like it'd be similar with something like ECDSA (admittedly not RSA).
>
>
>
> ECDSA = 2 * SHA-256 or 32 bytes
>
> Truncated AES-CMAC is 8 bytes (64 bits)
>
>
>
>