Re: [rtcweb] Question about srtp_mki in DTLS/SRTP

Martin Thomson <martin.thomson@gmail.com> Wed, 14 January 2015 22:52 UTC

Return-Path: <martin.thomson@gmail.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9F3851ACED8 for <rtcweb@ietfa.amsl.com>; Wed, 14 Jan 2015 14:52:42 -0800 (PST)
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 McKWzBpkn1QK for <rtcweb@ietfa.amsl.com>; Wed, 14 Jan 2015 14:52:39 -0800 (PST)
Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A8E601AD072 for <rtcweb@ietf.org>; Wed, 14 Jan 2015 14:51:36 -0800 (PST)
Received: by mail-oi0-f49.google.com with SMTP id a141so9735697oig.8 for <rtcweb@ietf.org>; Wed, 14 Jan 2015 14:51:36 -0800 (PST)
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=Q3Pcba2koJ3AsAQlWHKqewz+BvkExPqKbdvcAlLuQtA=; b=dV+mbgtvSd+hcgaR1gQx5OO1CI6dQelB+xopcebEefyOq/1EMLBEqPBYmMXdZMKei7 DYLLonM6TVk5L4h4EFRlRtaVxN1WbDJWM7OPXjoBOFQWUWOrznTzIGwTEWcnHHaZ38WM Egi7n/7d1Plp8tSdEXJO4SDIgp08ETNIA/47ii0bQldNUmK410BQwDSuTbLRnjwe1gRK L3ZuRpCCqgQs8gTnu7FmPdHBHktwx6vDvteSb4NxtzIuqDo8mYWRh8TU4m3imnUROFJn DzXQgtrydGkdCiuWx90thsZ8CBS3iaiswVcv547EEJfTrqlYvKn83+2+iHXCzpPlIbsJ iM0g==
MIME-Version: 1.0
X-Received: by 10.202.79.149 with SMTP id d143mr3832461oib.16.1421275895980; Wed, 14 Jan 2015 14:51:35 -0800 (PST)
Received: by 10.202.226.136 with HTTP; Wed, 14 Jan 2015 14:51:35 -0800 (PST)
In-Reply-To: <CANO7kWA-hkV4mYzZSQ4GhyOozXV6EZRpUEvz2Sd6JomTLTqdMg@mail.gmail.com>
References: <CAOW+2dvhEzAfyV51p1YWZoc41vih3TKhoArq3CGXzHvSdHEdcA@mail.gmail.com> <CANO7kWBjs4AwyTXXhOBSDqG=y9ThM=XkLyO_S1xPe3naL9za_Q@mail.gmail.com> <CAOW+2dt5k+dbxRbdodu5Sh+t6zzX0bVgXBUMnmSe+kJP2R+LLw@mail.gmail.com> <CANO7kWATfQdMapdCSDYdke+GFxh8OO6NJQob9hNQUDiASrpDtQ@mail.gmail.com> <CABkgnnV-irZn9N7WMTbvn4Vm1Ltqc7tzoCJo3_towfa6PSRwPw@mail.gmail.com> <CANO7kWADQLXheo6mhgrEt-0XYwXHYbiq8=oOnOxOsqz4diw6nA@mail.gmail.com> <CABkgnnW4pxL+rqF41b==wqHjMEP_7bKs_jJ4SXgGbyMpPP_rQg@mail.gmail.com> <CANO7kWC2G+r8jRmoPrYdMy0s+TiPuzy4TvgRSQ_QTyA3cW-njw@mail.gmail.com> <CABkgnnWyHd=qwoY9SrAcYhydoaDSKfm3y5QN0vMYgRoD5+j=zg@mail.gmail.com> <CANO7kWA-hkV4mYzZSQ4GhyOozXV6EZRpUEvz2Sd6JomTLTqdMg@mail.gmail.com>
Date: Wed, 14 Jan 2015 14:51:35 -0800
Message-ID: <CABkgnnXS=M4ZCe0QGTkAxNS+wdTNbg3GauO7fZ6MY2gRjw9g=g@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Simon Perreault <sperreault@jive.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtcweb/7_pyHZ2jTf00UdwhDwmKy6CqqNQ>
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Question about srtp_mki in DTLS/SRTP
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2015 22:52:42 -0000

On 14 January 2015 at 14:43, Simon Perreault <sperreault@jive.com> wrote:
> Ok.... but I think you may have missed my point. My point is that srtp_mki,
> being part of use_srtp, only gets renewed upon renegotiation. So if you just
> export new keying material without renegotiating, you don't have a new MKI
> for those new keys you just exported. So removing renegotiation effectively
> makes srtp_mki useless. Unless I misunderstand the difference between
> renegotiation and rekey...

OK, my bad.  Yes, the srtp_mki field in the DTLS handshake is
effectively useless without renegotiation.  If you rekey without
renegotiation, you will need a new scheme for signaling in SRTP proper
when those changes were applied (like Roman's seqno hack).