Ring Daemon 16.0.0
Loading...
Searching...
No Matches
srtp.h File Reference
Include dependency graph for srtp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SRTPContext
 

Macros

#define RTP_PT_IS_RTCP(x)    (((x) >= RTCP_FIR && (x) <= RTCP_IJ) || ((x) >= RTCP_SR && (x) <= RTCP_TOKEN))
 

Enumerations

enum  RTCPType {
  RTCP_FIR = 192 , RTCP_IJ = 195 , RTCP_SR = 200 , RTCP_TOKEN = 210 ,
  RTCP_REMB = 206
}
 

Functions

int ff_srtp_decrypt (struct SRTPContext *s, uint8_t *buf, int *lenptr)
 
int ff_srtp_encrypt (struct SRTPContext *s, const uint8_t *in, int len, uint8_t *out, int outlen)
 
void ff_srtp_free (struct SRTPContext *s)
 
int ff_srtp_set_crypto (struct SRTPContext *s, const char *suite, const char *params)
 

Macro Definition Documentation

◆ RTP_PT_IS_RTCP

#define RTP_PT_IS_RTCP (   x)     (((x) >= RTCP_FIR && (x) <= RTCP_IJ) || ((x) >= RTCP_SR && (x) <= RTCP_TOKEN))

Definition at line 54 of file srtp.h.

Enumeration Type Documentation

◆ RTCPType

enum RTCPType
Enumerator
RTCP_FIR 
RTCP_IJ 
RTCP_SR 
RTCP_TOKEN 
RTCP_REMB 

Definition at line 52 of file srtp.h.

Function Documentation

◆ ff_srtp_decrypt()

int ff_srtp_decrypt ( struct SRTPContext s,
uint8_t *  buf,
int *  lenptr 
)

◆ ff_srtp_encrypt()

int ff_srtp_encrypt ( struct SRTPContext s,
const uint8_t *  in,
int  len,
uint8_t *  out,
int  outlen 
)

◆ ff_srtp_free()

void ff_srtp_free ( struct SRTPContext s)

◆ ff_srtp_set_crypto()

int ff_srtp_set_crypto ( struct SRTPContext s,
const char *  suite,
const char *  params 
)