Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix srtp_unprotect_rtcp_mki when RTP auth != RTCP #733

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

vopatek
Copy link
Contributor

@vopatek vopatek commented Dec 6, 2024

srtp_get_session_keys, which is used by both srtp_unprotect_mki and srtp_unprotect_rtcp_mki, determines the tag len from rtp_auth.

This fails when rtp_auth differ from rtcp_auth. E.g. when SRTP is used with weak authentication but SRTCP must not (RFC 3711).

This commit splits the function in two:
srtp_get_session_keys_rtp
srtp_get_session_keys_rtcp

And adds a short auth policy test to test/srtp_driver.

srtp_get_session_keys, which is used by both srtp_unprotect_mki and
srtp_unprotect_rtcp_mki, determines the tag len from rtp_auth.

This fails when rtp_auth differ from rtcp_auth. E.g. when SRTP is used
with weak authentication but SRTCP must not (RFC 3711).

This commit splits the function in two:
srtp_get_session_keys_rtp
srtp_get_session_keys_rtcp

And adds a short auth policy test to test/srtp_driver.
@pabuhler
Copy link
Member

Thanks @vopatek this does seam to be an issue, I will fist fix up the CI build problem and then we can try to merge.

@pabuhler pabuhler merged commit 596e30e into cisco:2_x_dev Dec 11, 2024
32 of 33 checks passed
@pabuhler
Copy link
Member

Hi @vopatek ,

I have now merged this into the 2_x_dev branch and created a pr #737 that cherry picks this into main. Great if you could take a look and leave a comment if it looks ok.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants