Fork me on GitHub
Macros | Functions
rtpsrtp.h File Reference

SRTP definitions (headers) More...

#include <srtp/srtp.h>
#include <srtp/crypto_kernel.h>
Include dependency graph for rtpsrtp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define srtp_err_status_t   err_status_t
 
#define srtp_err_status_ok   err_status_ok
 
#define srtp_err_status_replay_fail   err_status_replay_fail
 
#define srtp_err_status_replay_old   err_status_replay_old
 
#define srtp_crypto_policy_set_rtp_default   crypto_policy_set_rtp_default
 
#define srtp_crypto_policy_set_rtcp_default   crypto_policy_set_rtcp_default
 
#define srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32   crypto_policy_set_aes_cm_128_hmac_sha1_32
 
#define srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80   crypto_policy_set_aes_cm_128_hmac_sha1_80
 
#define srtp_crypto_get_random   crypto_get_random
 
#define SRTP_MASTER_KEY_LENGTH   16
 
#define SRTP_MASTER_SALT_LENGTH   14
 
#define SRTP_MASTER_LENGTH   (SRTP_MASTER_KEY_LENGTH + SRTP_MASTER_SALT_LENGTH)
 

Functions

const char * janus_srtp_error_str (int error)
 Helper method to get a string representation of a libsrtp error code. More...
 

Detailed Description

SRTP definitions (headers)

Author
Lorenzo Miniero loren.nosp@m.zo@m.nosp@m.eetec.nosp@m.ho.c.nosp@m.om

Definitions of the SRTP usage. This header tries to abstract the differences there may be between libsrtp and libsrtp2, with respect to the structs and defines (e.g., errors), plus adding some helpers.

Protocols

Macro Definition Documentation

◆ srtp_crypto_get_random

#define srtp_crypto_get_random   crypto_get_random

◆ srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32

#define srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32   crypto_policy_set_aes_cm_128_hmac_sha1_32

◆ srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80

#define srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80   crypto_policy_set_aes_cm_128_hmac_sha1_80

◆ srtp_crypto_policy_set_rtcp_default

#define srtp_crypto_policy_set_rtcp_default   crypto_policy_set_rtcp_default

◆ srtp_crypto_policy_set_rtp_default

#define srtp_crypto_policy_set_rtp_default   crypto_policy_set_rtp_default

◆ srtp_err_status_ok

#define srtp_err_status_ok   err_status_ok

◆ srtp_err_status_replay_fail

#define srtp_err_status_replay_fail   err_status_replay_fail

◆ srtp_err_status_replay_old

#define srtp_err_status_replay_old   err_status_replay_old

◆ srtp_err_status_t

#define srtp_err_status_t   err_status_t

◆ SRTP_MASTER_KEY_LENGTH

#define SRTP_MASTER_KEY_LENGTH   16

◆ SRTP_MASTER_LENGTH

#define SRTP_MASTER_LENGTH   (SRTP_MASTER_KEY_LENGTH + SRTP_MASTER_SALT_LENGTH)

◆ SRTP_MASTER_SALT_LENGTH

#define SRTP_MASTER_SALT_LENGTH   14

Function Documentation

◆ janus_srtp_error_str()

const char* janus_srtp_error_str ( int  error)

Helper method to get a string representation of a libsrtp error code.

Parameters
[in]errorThe libsrtp error code
Returns
A string representation of the error code