21# define LIBVLC_SRTP_H 1
68 const void *salt,
size_t saltlen);
int srtp_setkey(srtp_session_t *s, const void *key, size_t keylen, const void *salt, size_t saltlen)
Sets (or resets) the master key and master salt for a SRTP session.
Definition: srtp.c:266
@ SRTP_ENCR_AES_CM
Definition: srtp.h:42
@ SRTP_ENCR_NULL
Definition: srtp.h:41
@ SRTP_ENCR_AES_F8
Definition: srtp.h:43
@ SRTP_PRF_AES_CM
Definition: srtp.h:56
int srtcp_send(srtp_session_t *s, uint8_t *buf, size_t *lenp, size_t maxsiz)
Turns a RTCP packet into a SRTCP packet: encrypt it, then computes the authentication tag and appends...
Definition: srtp.c:781
void srtp_destroy(srtp_session_t *s)
Releases all resources associated with a Secure RTP session.
Definition: srtp.c:98
int srtcp_recv(srtp_session_t *s, uint8_t *buf, size_t *lenp)
Turns a SRTCP packet into a RTCP packet: authenticates the packet, then decrypts it.
Definition: srtp.c:821
@ SRTP_UNENCRYPTED
Definition: srtp.h:27
@ SRTP_RCC_MODE1
Definition: srtp.h:31
@ SRTP_RCC_MODE3
Definition: srtp.h:33
@ SRTP_FLAGS_MASK
Definition: srtp.h:35
@ SRTP_UNAUTHENTICATED
Definition: srtp.h:29
@ SRTP_RCC_MODE2
Definition: srtp.h:32
@ SRTCP_UNENCRYPTED
Definition: srtp.h:28
int srtp_recv(srtp_session_t *s, uint8_t *buf, size_t *lenp)
Turns a SRTP packet into a RTP packet: authenticates the packet, then decrypts it.
Definition: srtp.c:623
@ SRTP_AUTH_NULL
Definition: srtp.h:49
@ SRTP_AUTH_HMAC_SHA1
Definition: srtp.h:50
int srtp_send(srtp_session_t *s, uint8_t *buf, size_t *lenp, size_t maxsize)
Turns a RTP packet into a SRTP packet: encrypt it, then computes the authentication tag and appends i...
Definition: srtp.c:540
void srtp_setrcc_rate(srtp_session_t *s, uint16_t rate)
Sets Roll-over-Counter Carry (RCC) rate for the SRTP session.
Definition: srtp.c:384
srtp_session_t * srtp_create(int encr, int auth, unsigned tag_len, int prf, unsigned flags)
Allocates a Secure RTP one-way session.
Definition: srtp.c:134
int srtp_setkeystring(srtp_session_t *s, const char *key, const char *salt)
Sets (or resets) the master key and master salt for a SRTP session from hexadecimal strings.
Definition: srtp.c:352
uint8_t tag_len
Definition: srtp.c:68
unsigned flags
Definition: srtp.c:62