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

Roman Shpount <roman@telurix.com> Wed, 14 January 2015 17:43 UTC

Return-Path: <roman@telurix.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 2454E1A9138 for <rtcweb@ietfa.amsl.com>; Wed, 14 Jan 2015 09:43:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.978
X-Spam-Level:
X-Spam-Status: No, score=-1.978 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 Lb0fniIJg3Rr for <rtcweb@ietfa.amsl.com>; Wed, 14 Jan 2015 09:43:17 -0800 (PST)
Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 194171A1A86 for <rtcweb@ietf.org>; Wed, 14 Jan 2015 09:43:17 -0800 (PST)
Received: by mail-wi0-f172.google.com with SMTP id n3so29801137wiv.5 for <rtcweb@ietf.org>; Wed, 14 Jan 2015 09:43:15 -0800 (PST)
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:date :message-id:subject:from:to:cc:content-type; bh=bhbRp+KMnjXdD1MNDIixCk1wK+bh6mxUO/9g9RAOssw=; b=mX6gNeiMU8ZNNvOoVgpquGhsYggBNO+pWWdLju8nGd8Zt3nHiUMHxLR4gAUF/pOpR0 3pTQdF5XuRNnpH53qsT1EVhxUllRboiWPxUblNJkgWcv4b36se+ok029jIqqQ7ShhbDx kRM2Mr+5dzEtxVQYGNC4+7guSXKj4pf+u1cccJgBGlixid4LtQ5oY/a2x36ziYMPEzLR /Qbh6Digsb7WEwxjjG7N2JxLTKfA7nh2+Jsl7ZLWFSvewjwm9AoE6MLFoyqii5BCS0fP 3L+nfvNtLX8ZJXGvrBnhC8BRrRVLpKqTtFRYhX9nOUQ/CJ6uw6/IbcaK8GlUXqs/alGc Ni1g==
X-Gm-Message-State: ALoCoQmS2xDx1BeXvzDYaMfpwV2/ZoDMReDQjr5JiqOqTOSq/F4/TVawX5vtXitijJ3CtwP2PCMm
X-Received: by 10.180.95.97 with SMTP id dj1mr10562445wib.43.1421257395784; Wed, 14 Jan 2015 09:43:15 -0800 (PST)
Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com. [74.125.82.45]) by mx.google.com with ESMTPSA id h2sm4260382wix.5.2015.01.14.09.43.14 for <rtcweb@ietf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Jan 2015 09:43:14 -0800 (PST)
Received: by mail-wg0-f45.google.com with SMTP id y19so10363498wgg.4 for <rtcweb@ietf.org>; Wed, 14 Jan 2015 09:43:14 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.194.92.116 with SMTP id cl20mr9595957wjb.71.1421257394558; Wed, 14 Jan 2015 09:43:14 -0800 (PST)
Received: by 10.216.97.141 with HTTP; Wed, 14 Jan 2015 09:43:14 -0800 (PST)
In-Reply-To: <CABkgnnV-irZn9N7WMTbvn4Vm1Ltqc7tzoCJo3_towfa6PSRwPw@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>
Date: Wed, 14 Jan 2015 12:43:14 -0500
Message-ID: <CAD5OKxv1UnvZTkhxqc5mWnaBtm1=hagd0yreFz_A8dOs0p_P8A@mail.gmail.com>
From: Roman Shpount <roman@telurix.com>
To: Martin Thomson <martin.thomson@gmail.com>
Content-Type: multipart/alternative; boundary="047d7bd910c22321f0050ca046b2"
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtcweb/l4JW6aDTIpyrItkq0wIP0FhjDzk>
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 17:43:19 -0000

On Wed, Jan 14, 2015 at 12:26 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 14 January 2015 at 08:34, Simon Perreault <sperreault@jive.com> wrote:
> > Without an MKI, when packets arrive you have to try to authenticate them
> > with the newest key, and if that doesn't work try progressively older
> keys.
> > It's a hassle: you have to store keys in chronological order and iterate.
>
> Yes, SRTP doesn't carry the epoch and trial decryption sucks, so the
> MKI is quite attractive... if you rekey.  However, as it stands, very
> few implementations will permit a DTLS re-handshake.  Firefox and
> Chrome actively disable renegotiation (desktop Chrome anyway, I'm not
> 100% on the BoringSSL-based versions, like Android).
>
>
You can handle the key transition based on the SRTP sequence numbers. Not
the greatest thing but it does work. BoringSSL versions do not support
renegotiation either.
_____________
Roman Shpount