RE: [AVT] SRTCP key derivation

"Guoqiang Lu" <guoqian@nortel.com> Thu, 21 July 2005 15:09 UTC

Received: from localhost.localdomain ([127.0.0.1] helo=megatron.ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1DvcgF-0005cO-V1; Thu, 21 Jul 2005 11:09:47 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1DvcgF-0005cE-38 for avt@megatron.ietf.org; Thu, 21 Jul 2005 11:09:47 -0400
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA08445 for <avt@ietf.org>; Thu, 21 Jul 2005 11:09:41 -0400 (EDT)
Received: from zcars04e.nortelnetworks.com ([47.129.242.56] helo=zcars04e.ca.nortel.com) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1DvdAE-0006HU-Hg for avt@ietf.org; Thu, 21 Jul 2005 11:40:47 -0400
Received: from zcarhxm1.corp.nortel.com (zcarhxm1.corp.nortel.com [47.129.230.97]) by zcars04e.ca.nortel.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id j6LF6lw13951; Thu, 21 Jul 2005 11:06:47 -0400 (EDT)
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [AVT] SRTCP key derivation
Date: Thu, 21 Jul 2005 11:08:10 -0400
Message-ID: <183DD1B052A11A40B76125E42F1CBAAB04C3304A@zcarhxm1.corp.nortel.com>
Thread-Topic: [AVT] SRTCP key derivation
Thread-Index: AcV+FUV6HBMFW37sSWu/MwpHdvnY8APM2A7wACNnOJAAC5oe4A==
From: Guoqiang Lu <guoqian@nortel.com>
To: "Karl Norrman (KI/EAB)" <karl.norrman@ericsson.com>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 6cca30437e2d04f45110f2ff8dc1b1d5
Content-Transfer-Encoding: quoted-printable
Cc: mcgrew@cisco.com, avt@ietf.org, "Mats Näslund (KI/EAB)" <mats.naslund@ericsson.com>
X-BeenThere: avt@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Audio/Video Transport Working Group <avt.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/avt>, <mailto:avt-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:avt@ietf.org>
List-Help: <mailto:avt-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/avt>, <mailto:avt-request@ietf.org?subject=subscribe>
Sender: avt-bounces@ietf.org
Errors-To: avt-bounces@ietf.org

>This means that, e.g., the labels will not be in the same octet position for SRTP and SRTCP.

This seems to contradict the reference implementation by David McGrew found in srtp.sourceforge.net: The SRTCP key was derived as:

 srtp_kdf_generate(&kdf, (uint64_t) label_rtcp_encryption, 
		     tmp_key, cipher_get_key_length(srtp->rtcp_cipher));
While SRTCP key was derived as:

 srtp_kdf_generate(&kdf, (uint64_t) label_rtp_encryption, 
		     tmp_key, cipher_get_key_length(srtp->rtp_cipher));

And within the srtp_kdf_generate() function, the label is always assigned to nonce.octet[7].

Thanks!

Guoqiang Lu
ESN: 39-36277
Phone: (613) 763-6277
guoqian@nortel.com
--------------------------
The contents of the this e-mail may be Nortel Confidential! 


-----Original Message-----
From: Karl Norrman (KI/EAB) [mailto:karl.norrman@ericsson.com] 
Sent: Thursday, July 21, 2005 5:47 AM
To: Lu, Guoqiang [CAR:9D40:EXCH]
Cc: mcgrew@cisco.com; Mats Näslund (KI/EAB); avt@ietf.org
Subject: RE: [AVT] SRTCP key derivation


Hello!

The SRTCP index should not be padded with zeros to be 48 bits long.  This means that, e.g., the labels will not be in the same octet position for SRTP and SRTCP.

Regards,
Karl

> -----Original Message-----
> From: avt-bounces@ietf.org [mailto:avt-bounces@ietf.org]On Behalf Of 
> Guoqiang Lu
> Sent: den 20 juli 2005 18:40
> To: avt@ietf.org
> Cc: mcgrew@cisco.com; Mats Näslund (KI/EAB)
> Subject: [AVT] SRTCP key derivation
> 
> 
> Hi,
> In RFC3711, section 4.3.2. SRTCP Key Derivation, it says:
> 
> "Replace the SRTP index by the 32-bit quantity: 0 || SRTCP index ..."
> 
> My question is that SRTP index is a 48-bit quantity, should
> the SRTCP 32-bit quantity "0 || SRTCP index" be patched with 
> 16 leading zeros?
> 
> Thanks!
> 
> Guoqiang Lu
> ESN: 39-36277
> Phone: (613) 763-6277
> guoqian@nortel.com
> --------------------------
> The contents of the this e-mail may be Nortel Confidential!
> 
> 
> _______________________________________________
> Audio/Video Transport Working Group
> avt@ietf.org
> https://www1.ietf.org/mailman/listinfo/avt
> 


_______________________________________________
Audio/Video Transport Working Group
avt@ietf.org
https://www1.ietf.org/mailman/listinfo/avt