Registry / crypto / libsrtp

libsrtp

JSON →
library2.7.0vcpkgunverified

This package provides an implementation of the Secure Real-time Transport Protocol (SRTP), the Universal Security Transform (UST), and a supporting cryptographic kernel.

vcpkg install libsrtp
INSTALL
IMPORT
SIG · LIBSRTP
L
libsrtp
cryptocppv2.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

srtp2/srtp.h
#include <srtp2/srtp.h>

Initialize libSRTP, create a session with AES-128 CM HMAC-SHA1-80 policy, and clean up.

#include <srtp2/srtp.h> #include <cstring> int main() { srtp_init(); srtp_policy_t policy; memset(&policy, 0, sizeof(policy)); srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy.rtp); srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy.rtcp); policy.ssrc.type = ssrc_any_inbound; srtp_ctx_t* session; srtp_create(&session, &policy); // Use session to protect/unprotect RTP packets srtp_dealloc(session); srtp_shutdown(); return 0; }
Debug
Known issues
breakinglibSRTP requires careful key management; using weak keys or reusing keys can break security.
fix
Always generate cryptographically random keys and use unique master keys per session.
affects: *
Upgrade
Version history
2.7.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources

No resource links recorded.

libsrtp — pip install libsrtp · libregistry