ultravideo / uvgRTP

An open-source library for RTP/SRTP media delivery
BSD 2-Clause "Simplified" License
318 stars 90 forks source link

RFC 6189: Initializing ZRTP with zrtp-hash attribute #190

Open jrsnen opened 1 year ago

jrsnen commented 1 year ago

According to RFC 6189, the support for ZRTP is indicated by a zrtp-hash attribute in SDP message. This attribute carries hash for ZRTP Hello message and can be used to authenticate said message.

This attributes also effectively eliminates MiTM attacks on ZRTP.

To implement this, I would keep the current implementation of ZRTP functional, but I would also add a new function to the API for starting ZRTP after the session has been created. The hash would then either be given as a parameter to that function, or probably better would be to do it via the configure_ctx function.

I would also consider what other features of ZRTP should be configurable while implementing this.