Skip to content

Conversation

@seyednasermoravej
Copy link

This contribution is to add support for SRTP protocol. The original library named libSRTP is developed by Cisco here.
Dependencies for this module are:
libSRTP
mbedTLS
The mbedTLS integration is made by linking its library to the libSRTP. The libSRTP can use different encryption libraries including openSSL, NSS, mbedTLS, etc. As mbedTLS is available for Zephyr RTOS, I used this library.
The original libSRTP needed just a little modification to be used in Zephyr RTOS. Just adding a file zephyr/module.yml with content cmake-ext: True and Kconfig-ext: True inside it. I pushed the modified repository into my GitHub account.
To test the result, for simplicity, I modified rtpw example. To test the sample, I used a PC as a sender/receiver and a Zephyr application as a receiver/sender. The original rtpw sample provided by Cisco only sends/receives text instead of Audio/Image. So, I did the same.
How can I integrate it in Zephyr RTOS as an internal or external module?

@github-actions
Copy link

github-actions bot commented Nov 9, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
libsrtp 🆕 None (Added) dc70159412c6fc791da8f09a994a8bf0e95cb769 N/A

DNM label due to: 1 added project and 1 unreachable repo

Note: This message is automatically posted and updated by the Manifest GitHub Action.

add libsrtp to west.yml

Signed-off-by: Sayed Naser Moravej <seyednasermoravej@gmail.com>
@maass-hamburg
Copy link
Member

as it uses mbedtls, please make sure that is uses the new psa crypto api, as zephyr is soon switching to https://github.com/Mbed-TLS/mbedtls/releases/tag/mbedtls-4.0.0 where support for the legacy mbedtls api was dropped.

seyednasermoravej and others added 3 commits November 10, 2025 21:59
gule files added so Zephyr RTOS can use libSRTP.

Signed-off-by: Sayed Naser Moravej <seyednasermoravej@gmail.com>
An RTPW is added to test the libSRTP module a hardware with
a network connectivity should be connected to a PC
and run the example as described in the README.rst file.

Signed-off-by: Sayed Naser Moravej <seyednasermoravej@gmail.com>
Introduce the first integration of the libSRTP library,
providing support for the Secure Real-time Transport Protocol (SRTP).

Co-authored-by: Josuah Demangeon <me@josuah.net>
Signed-off-by: Sayed Naser Moravej <seyednasermoravej@gmail.com>
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants