[Jingle] Negotiation of SRTP in XEP-0167

Peter Saint-Andre stpeter at stpeter.im
Thu Apr 23 13:58:13 CDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/23/09 6:26 AM, Paul Witty wrote:
> And another thing:
> The SDP example:
>    a=crypto:1 AES_CM_128_HMAC_SHA1_80
>    inline:WVNfX19zZW1jdGwgKCkgewkyMjA7fQp9CnVubGVz|2^20|1:32
>    session-params:KDR=1;UNENCRYPTED_SRTCP
> is wrong, and should be:
>    a=crypto:1 AES_CM_128_HMAC_SHA1_80
>    inline:WVNfX19zZW1jdGwgKCkgewkyMjA7fQp9CnVubGVz|2^20|1:32
>    KDR=1;UNENCRYPTED_SRTCP
> 

I don't see ";" in the ABNF for srtp-session-param in RFC 4568:

      srtp-session-param  = kdr /
                            "UNENCRYPTED_SRTP" /
                            "UNENCRYPTED_SRTCP" /
                            "UNAUTHENTICATED_SRTP" /
                            fec-order /
                            fec-key /
                            wsh /
                            srtp-session-extension

Therefore I think it would be:

   a=crypto:1 AES_CM_128_HMAC_SHA1_80
   inline:WVNfX19zZW1jdGwgKCkgewkyMjA7fQp9CnVubGVz|2^20|1:32
   KDR=1 UNENCRYPTED_SRTCP

That would be mapped to Jingle XML as follows:

<encryption required='1'>
  <crypto
      crypto-suite='AES_CM_128_HMAC_SHA1_80'

key-params='inline:WVNfX19zZW1jdGwgKCkgewkyMjA7fQp9CnVubGVz|2^20|1:32'
      session-params='KDR=1 UNENCRYPTED_SRTCP'
      tag='1'/>
</encryption>

Peter

- --
Peter Saint-Andre
https://stpeter.im/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknwukUACgkQNL8k5A2w/vy3PwCg5ujILdTlTzwKzZvGLVDgYHMR
+fgAn3IgbG3Q4VfBihdvJ7y1uXzm7S19
=AlNk
-----END PGP SIGNATURE-----


More information about the Jingle mailing list