SRTP definitions (headers) More...
#include <srtp/srtp.h>
#include <srtp/crypto_kernel.h>
Go to the source code of this file.
Typedefs | |
typedef enum janus_srtp_profile | janus_srtp_profile |
Enumerations | |
enum | janus_srtp_profile { JANUS_SRTP_AES128_CM_SHA1_32 = 1 , JANUS_SRTP_AES128_CM_SHA1_80 , JANUS_SRTP_AEAD_AES_128_GCM , JANUS_SRTP_AEAD_AES_256_GCM } |
Functions | |
const char * | janus_srtp_error_str (int error) |
Helper method to get a string representation of a libsrtp error code. | |
SRTP definitions (headers)
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.
#define SRTP_AESGCM128_MASTER_KEY_LENGTH 16 |
#define SRTP_AESGCM128_MASTER_LENGTH (SRTP_AESGCM128_MASTER_KEY_LENGTH + SRTP_AESGCM128_MASTER_SALT_LENGTH) |
#define SRTP_AESGCM128_MASTER_SALT_LENGTH 12 |
#define SRTP_AESGCM256_MASTER_KEY_LENGTH 32 |
#define SRTP_AESGCM256_MASTER_LENGTH (SRTP_AESGCM256_MASTER_KEY_LENGTH + SRTP_AESGCM256_MASTER_SALT_LENGTH) |
#define SRTP_AESGCM256_MASTER_SALT_LENGTH 12 |
#define srtp_crypto_get_random crypto_get_random |
#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_policy_set_aes_gcm_128_16_auth crypto_policy_set_aes_gcm_128_16_auth |
#define srtp_crypto_policy_set_aes_gcm_256_16_auth crypto_policy_set_aes_gcm_256_16_auth |
#define srtp_crypto_policy_set_rtcp_default crypto_policy_set_rtcp_default |
#define srtp_crypto_policy_set_rtp_default crypto_policy_set_rtp_default |
#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_err_status_t err_status_t |
#define SRTP_MASTER_KEY_LENGTH 16 |
#define SRTP_MASTER_LENGTH (SRTP_MASTER_KEY_LENGTH + SRTP_MASTER_SALT_LENGTH) |
#define SRTP_MASTER_SALT_LENGTH 14 |
typedef enum janus_srtp_profile janus_srtp_profile |
enum janus_srtp_profile |
const char * janus_srtp_error_str | ( | int | error | ) |
Helper method to get a string representation of a libsrtp error code.
[in] | error | The libsrtp error code |