ice-pwd is too short, RFC5245 need at least 128 bits of randomness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, PJSIP experts, 

I am new to PJSIP, now I am trying to make call using SIP to WebRTC. 
I am using MicroSIP to simulate SIP client, and using latest Chrome/Firefox for WebRTC side. 

PJSIP should support ICE protocol RFC5245 (https://tools.ietf.org/pdf/rfc5245.pdf  )

And from RFC 5245 Page 76(section 15.4: "ice-ufrag" and "ice-pwd" Attributes) 
   The ice-ufrag and ice-pwd attributes MUST be chosen randomly at the
beginning of a session. The ice-ufrag attribute MUST contain at
least 24 bits of randomness, and the ice-pwd attribute MUST contain
at least 128 bits of randomness.

But from captured packet in Wireshark, the length "ice-pwd" generated in pjmedia is less than 128 bits,  only 8 char actually, refer to attached screenshot for details. 

Also from this page, https://trac.pjsip.org/repos/wiki/Using_Standalone_ICE
The sample ic-pwd is just 8 char. 
a=ice-ufrag:2b2c6196 
a=ice-pwd:06ea0fa8 

Because ice-pwd is too short here, the browser side rejected this. 

Anyone can help to explain this ?
Appreciate your support in advance. 

Happy New Year.
Jackson

Attachment: ice-pwd-length.jpg
Description: ice-pwd-length.jpg

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux